[perf] Spawn off benchmark-shape from perf runner

This commit is contained in:
Behdad Esfahbod 2022-04-29 15:37:11 -06:00
parent 5f43ce825a
commit ae3efc6424
3 changed files with 12 additions and 1 deletions

View File

@ -63,3 +63,5 @@ BENCHMARK_CAPTURE (shape, en-words.txt - Roboto,
"perf/texts/en-words.txt",
HB_DIRECTION_LTR, HB_SCRIPT_LATIN,
"perf/fonts/Roboto-Regular.ttf");
BENCHMARK_MAIN();

View File

@ -21,6 +21,16 @@ benchmark('perf', executable('perf', 'perf.cc',
), workdir: meson.current_source_dir() / '..', timeout: 100)
benchmark('benchmark-shape', executable('benchmark-shape', 'benchmark-shape.cc',
dependencies: [
google_benchmark_dep,
],
cpp_args: [],
include_directories: [incconfig, incsrc],
link_with: [libharfbuzz],
install: false,
), workdir: meson.current_source_dir() / '..', timeout: 100)
benchmark('benchmark-set', executable('benchmark-set', 'benchmark-set.cc',
dependencies: [
google_benchmark_dep,

View File

@ -4,7 +4,6 @@
#include "config.h"
#endif
#include "perf-shaping.hh"
#ifdef HAVE_FREETYPE
enum backend_t { HARFBUZZ, FREETYPE, TTF_PARSER };
#include "perf-extents.hh"