Commit Graph
40 Commits
Author SHA1 Message Date
Behdad Esfahbod 3aa1868b23 [benchmark-font] Accept empty --variations 2025-11-20 13:37:58 -07:00
Behdad Esfahbod 5087e53be9 [perf] Use GOption (#5422)
* [perf] Don't build benchmarks if no glib

Also remove unnecessary deps.

* [benchmark-shape/font] Port to GOption
2025-07-26 04:02:41 -06:00
Behdad Esfahbod 0c3606b513 [benchmark-font] Respect HB_BENCHMARK_TEXT 2025-07-23 17:06:50 -06:00
Behdad Esfahbod b3765e7c40 [benchmark-font] Call the plural glyph-v-origins API
Ouch!
2025-07-20 07:19:23 -06:00
Behdad Esfahbod cbc928fa79 [benchmark-font] malloc hygiene 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 266c0f8e3e [benchmark-font] Add --max-glyphs argument
--max-glyphs 256 can be used to measure the cached behavior
of many ops, like glyph_h_advance, glyph_v_advance,
and glyph_v_origin.
2025-07-20 00:12:26 -06:00
Behdad Esfahbod 94efb343cb [benchmark-font] Benchmark v_advances and v_origin 2025-07-20 00:12:20 -06:00
Behdad Esfahbod 88b9feb917 [benchmark-font] Allow specifying variations on cmdline 2025-05-20 20:40:40 -06:00
Behdad Esfahbod 60c4b9cb61 [benchmark-font] Minor refactor
In prep for accepting arbitrary variations on the cmdline.
2025-05-20 20:36:39 -06:00
Behdad Esfahbod 2a878b1b76 [font-funcs] Add two new API
+ hb_font_set_funcs_using()
+ hb_font_list_funcs()

Part of https://github.com/harfbuzz/harfbuzz/issues/5117
2025-03-08 11:50:53 -07:00
Behdad Esfahbod e054db4ae2 [fontations] Hook up to benchmark-font 2025-03-06 04:23:24 +02:00
Behdad Esfahbod a2ea5d28cb [benchmark-font] Report draw times in ms, not us 2025-02-18 21:43:39 -07:00
Behdad Esfahbod c224178a09 [perf] Add hb-benchmark.hh 2024-10-15 14:58:13 -06:00
Behdad Esfahbod 8a805271a1 [coretext] Start implementing CoreText font-funcs
Does nominal glyph mapping, horiz advances, and draw so far.
2024-10-13 13:04:29 -06:00
Behdad Esfahbod 9a7afe922b [perf] Benchmark glyph painting 2023-08-09 12:00:41 -06:00
Behdad Esfahbod ebdfa9838b [perf] Measure freetype face loading as well 2023-07-30 12:22:55 -06:00
Behdad Esfahbod 13438da16e [benchmark-font] Minor move a variable 2023-07-02 12:56:13 -06:00
Behdad Esfahbod 7d72fdd5bf [benchmark-font] Do some work in draw_glyph callbacks
For no good reason other than matching what I'm adding to
skrifa benchmark.  Doesn't seem to affect benchmarks whatsoever.
2023-07-02 09:56:09 -06:00
Behdad Esfahbod 547dc1a40e [benchmark-font] Add load_face_and_shape benchmark
To measure face-loading performance
2023-06-30 08:48:43 -06:00
Behdad Esfahbod fcf70af134 [perf] Fix break 2023-06-30 08:43:10 -06:00
Behdad Esfahbod 17f29c8111 [benchmark_font/draw_glyphs] Implement quadratic_to
Not interested in the fallback implementation here.
2023-06-29 13:27:09 -06:00
Behdad Esfahbod 41f85d0179 [benchmark-font] Add RobotoFlex
We didn't have a variable TTF before!
2023-06-27 12:50:04 -06:00
Behdad Esfahbod fc8dfe64d0 [benchmark-font] Minor rename 2023-04-24 14:39:20 -06:00
Behdad Esfahbod 3c972867b9 More s/hb_font_get_glyph_shape/hb_font_draw_glyph/ 2022-12-23 13:37:59 -07:00
Behdad Esfahbod 98fbe87a26 [benchmark-font] Disable quadratic callback
We are interested in the quadratic-to-cubic codepath benchmarking.
2022-06-27 12:10:16 -06:00
Behdad Esfahbod f371789b40 Sprinkle static around 2022-05-30 05:09:53 -06:00
Behdad Esfahbod 33c990f0a9 Include cassert to fix bots 2022-05-30 05:09:53 -06:00
Behdad Esfahbod 1bf2d5f885 [perf/benchmark-shape] Allow taking text-file/font-file args from cmdline 2022-05-21 14:44:00 -06:00
Behdad Esfahbod 852a8f04eb [perf/benchmark-font] Allow benchmarking fonts specified on cmdline 2022-05-21 14:43:49 -06:00
Behdad Esfahbod 629fa8ee87 [perf/benchmark-font] Test Roboto as variable even though it's not 2022-05-16 17:49:36 -06:00
Behdad Esfahbod 71a0cda869 [perf/benchmark-font] Only certain fonts are variable
Don't test every font as variable.
2022-05-16 17:49:36 -06:00
Behdad Esfahbod f67e6bf79c [perf/benchmark-font] Add benchmark for glyph_h_advance 2022-05-02 16:59:48 -06:00
Behdad Esfahbod 1c0a3d4d16 [perf/benchmark-font] Add a couple Noto fonts 2022-05-02 16:50:54 -06:00
Behdad Esfahbod 3fff2e9182 [perf/benchmark-font] Cosmetic 2022-05-02 16:42:10 -06:00
Behdad Esfahbod 0d1f8dcaf3 [perf/benchmark-font] Actually make nominal_glyph bench work 2022-05-02 16:18:53 -06:00
Behdad Esfahbod 6cf69d10e7 [perf/benchmark-font] Add back testing of is_variable 2022-05-02 16:07:32 -06:00
Behdad Esfahbod 3aa2ff7988 [perf/benchmark-font] Fix build without freetype 2022-05-02 16:01:22 -06:00
Behdad Esfahbod 58a0988b57 [perf/benchmark-font] Benchmark get_nominal_glyph 2022-05-02 15:57:19 -06:00
Behdad Esfahbod 6d29903e86 [perf/benchmark-font] Parametrize test 2022-05-02 14:03:15 -06:00
Behdad Esfahbod 636c90e81c [perf/perf] Rename to benchmark-font 2022-05-02 13:41:49 -06:00