1
|
1
|
ftbench
|
2
|
2
|
========
|
3
|
3
|
|
4
|
|
-ftbench is a program designed to run FreeType benchmarks. It accepts various options and a font name to run specific tests on font rendering operations.
|
|
4
|
+ftbench is a program designed to run FreeType benchmarks between versions.
|
|
5
|
+It accepts various options to run specific tests on font rendering operations.
|
5
|
6
|
|
6
|
7
|
Each test may involve tasks such as:
|
7
|
8
|
|
8
|
9
|
. Initializing the library
|
9
|
10
|
. Opening the font file
|
10
|
|
-. Loading and optionally rendering each glyph
|
11
|
11
|
. Comparing results with cached versions (if available)
|
12
|
12
|
. Configuring specific charmap indices, load flags, etc.
|
13
|
13
|
|
14
|
|
-Usage is time-limited or can be explicitly set to use a maximum number of iterations per test.
|
|
14
|
+Usage is iterations-limited or can be explicitly set to use a maximum
|
|
15
|
+number of iterations per test.
|
15
|
16
|
|
16
|
17
|
|
17
|
18
|
Command line options
|
... |
... |
@@ -20,7 +21,8 @@ Command line options |
20
|
21
|
-C Compare with cached version (if available).
|
21
|
22
|
-c N Use at most N iterations for each test (0 means time-limited).
|
22
|
23
|
-e E Set specific charmap index E.
|
23
|
|
--f L Use hex number L as load flags (see FT_LOAD_XXX'). -H NAME Use PS hinting engine NAME (default is adobe').
|
|
24
|
+-f L Use hex number L as load flags (see FT_LOAD_XXX').
|
|
25
|
+-H NAME Use PS hinting engine NAME (default is adobe').
|
24
|
26
|
-I VER Use TT interpreter version VER (default is version 40).
|
25
|
27
|
-i I-J Forward or reverse range of glyph indices to use.
|
26
|
28
|
-l N Set LCD filter to N (default is 0: none).
|
... |
... |
@@ -34,12 +36,16 @@ Command line options |
34
|
36
|
-b tests Perform chosen tests (default is all).
|
35
|
37
|
-v Show version.
|
36
|
38
|
|
37
|
|
-Compilation
|
|
39
|
+Usage
|
38
|
40
|
-----------
|
39
|
41
|
|
40
|
|
-make baseline To create a baseline for your benchmarks, use the `make baseline` command. This will compile the ftbench.c and create a set of baseline measurements in the objs/baseline/ directory.
|
|
42
|
+make baseline <flags> To create a baseline for your benchmarks,
|
|
43
|
+use the `make baseline` command. This will compile the ftbench.c and
|
|
44
|
+create a set of baseline measurements in the objs/baseline/ directory.
|
41
|
45
|
|
42
|
|
-make benchmark To run the benchmarks, use the `make benchmark` command. The results will be stored in the objs/benchmark/ directory. It will copy tohtml.py script to objs/ and generate a html file.
|
43
|
|
-
|
44
|
|
-make clean-benchmark To remove all generated benchmark files and clean the objs directory, use the `make clean-benchmark` command.
|
|
46
|
+make benchmark <flags> To run the benchmarks, use the `make benchmark` command.
|
|
47
|
+The results will be stored in the objs/benchmark/ directory.
|
|
48
|
+It will copy tohtml.py script to objs/ and generate a html file.
|
45
|
49
|
|
|
50
|
+make clean-benchmark To remove all generated benchmark files and
|
|
51
|
+clean the objs directory, use the `make clean-benchmark` command. |