[perf] Add benchmarks for CFF subsetting.

This commit is contained in:
Garret Rieger 2022-05-10 18:14:25 +00:00 committed by Behdad Esfahbod
parent 8f9f0c494b
commit 5277a5772b
1 changed files with 27 additions and 0 deletions

View File

@ -138,6 +138,33 @@ BENCHMARK_CAPTURE (BM_subset, subset_glyphs_mplus1p,
->Range(10, 10000); ->Range(10, 10000);
BENCHMARK_CAPTURE (BM_subset, subset_codepoints_sourcehansans,
subset_codepoints,
"test/subset/data/fonts/SourceHanSans-Regular_subset.otf")
->Unit(benchmark::kMillisecond)
->Range(10, 10000);
BENCHMARK_CAPTURE (BM_subset, subset_glyphs_sourcehansans,
subset_glyphs,
"test/subset/data/fonts/SourceHanSans-Regular_subset.otf")
->Unit(benchmark::kMillisecond)
->Range(10, 10000);
BENCHMARK_CAPTURE (BM_subset, subset_codepoints_sourcesanspro,
subset_codepoints,
"test/subset/data/fonts/SourceSansPro-Regular.otf")
->Unit(benchmark::kMillisecond)
->Range(10, 2048);
BENCHMARK_CAPTURE (BM_subset, subset_glyphs_sourcesanspro,
subset_glyphs,
"test/subset/data/fonts/SourceSansPro-Regular.otf")
->Unit(benchmark::kMillisecond)
->Range(10, 2048);
#if 0 #if 0
BENCHMARK_CAPTURE (BM_subset, subset_codepoints_notocjk, BENCHMARK_CAPTURE (BM_subset, subset_codepoints_notocjk,
subset_codepoints, subset_codepoints,