harfbuzz/perf
Behdad Esfahbod 9ad300360d [perf/perf-draw] Port to new draw API 2022-04-21 11:16:12 -06:00
..
fonts Add initial shaping performance test and profiler 2019-12-10 21:53:30 +03:30
texts Rename HBGlyphID to HBGlyphID16 2021-09-19 16:30:12 -04:00
README.md [perf] Add some instructions for building/running benchmarks. 2022-04-21 11:16:12 -06:00
benchmark-map.cc [perf/benchmark-map] Adjust range specifiers 2022-04-21 11:16:12 -06:00
benchmark-set.cc [perf] Cleanup range specifiers in set benchmark. 2022-04-21 11:16:12 -06:00
benchmark-subset.cc [perf] Rework set insert test to not use pause/resume timing. 2022-04-21 11:16:12 -06:00
meson.build [perf] Start writing subset benchmarks. 2022-04-21 11:16:12 -06:00
perf-draw.hh [perf/perf-draw] Port to new draw API 2022-04-21 11:16:12 -06:00
perf-extents.hh [blob] Add failing versions of create API 2021-06-15 13:56:30 -06:00
perf-shaping.hh [blob] Add failing versions of create API 2021-06-15 13:56:30 -06:00
perf.cc Remove remaining traces of HB_EXPERIMENTAL_API 2022-02-13 13:21:14 -06:00
run.sh [perf] More rename 2019-12-10 12:43:42 -06:00

README.md

Benchmarks are implemented using Google Benchmark.

To build the benchmarks in this directory you need to set the benchmark option while configuring the build with meson:

meson configure build -Dbenchmark=enabled

Then build the benchmark binaries with ninja:

ninja -Cbuild perf/benchmark-set

Finally, to run one of the benchmarks:

./build/perf/benchmark-set

It's possible to filter the benchmarks being run and customize the output via flags to the benchmark binary. See the Google Benchmark User Guide for more details.