freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ftbench: last updates


From: Ahmet Göksu
Subject: ftbench: last updates
Date: Tue, 12 Sep 2023 13:11:55 +0300

Hi,
It is a late message, sorry for this.
BTW, have you checked whether replacing `CLOCK_REALTIME` with 
`CLOCK_MONOTONIC` gives better results? 

What platform do you actually develop on? What #if clause in 
function `get_time` of `ftbench.c` is run on your computer? 
I tried to change the CLOCK_MONOTONIC but my system is not even run this if clause. I am running on a mac. It is runnning only this part
...
#else    /* clock() accuracy has improved since glibc 2.18 */    return 1E6 * (double)clock() / (double)CLOCKS_PER_SEC;#endif /* _POSIX_TIMERS */
--
With 'bulk test' I mean that you don't time single iterations but do timings for 10 iterations in a group, say, thus avoiding issues with the granularity of the OS timing functions. 
I already changed the working way of the timing. I only start the benchmark at beginning and stop at the end.
Please separate this line slightly from the rest of the table
and print the *cumulated timing* (in 's', not 'µs') of all tests,
something like
 I wouldn't use '**' – this looks like a footnote, and people start 
searching where it belongs to. Instead, please use a simple 
itemization. 

* I suggest to rename column 'N' to 'Iterations' or '#Iterations' (or 
something similar). 

* The sentence about '(X | Y') is cryptic. Maybe simply start with 
done!
The links for `Baseline` and `Benchmark` to the `.txt` files are 
absolute and thus not portable. They must be relative. 
I didnt get this clear. Since objs dir and the source dir different, I needed to give abs path.

Best,
Goksu
goksu.in

Freetype Benchmark Results

Warning: Baseline and Benchmark have the same commit ID!

Info

InfoBaselineBenchmark
Parameters-c 1000 -w 100-c 1000 -w 100
Commit ID267f1914267f1914
Commit Date2023-08-30 18:15:08 +03002023-08-30 18:15:08 +0300
BranchGSoC-2023-AhmetGSoC-2023-Ahmet

* Average time for single iteration. Smaller values are better.

If two values are given in the 'Iterations' column, those are belong to baseline and benchmark in order.

Total Results

TestIterations* Baseline (µs) * Benchmark (µs)Difference (%)
Load100000 635.3 591.86.9
Load_Advances (Normal)100000 593.4 608.9-2.6
Load_Advances (Fast)100000 2.2 2.21.8
Load_Advances (Unscaled)100000 2.1 2.01.0
Render100000 933.3 935.3-0.2
Get_Glyph100000 677.8 679.8-0.3
Get_Char_Index94000 2.0 2.0-1.0
Iterate CMap1000 1.3 1.31.5
New_Face1000 51.3 48.06.5
Embolden100000 749.5 749.50.0
Stroke58550 | 57600 2555.1 2567.4-0.5
Get_BBox100000 555.2 554.00.2
Get_CBox100000 679.4 680.6-0.2
New_Face & load glyph(s)100000 112.7 111.41.1
Total duration for all tests:80 s

Results for Roboto_subset.ttf

TestIterations * Baseline (µs) * Benchmark (µs) Difference (%)
Load120000 486.6485.60.2
Load_Advances (Normal)120000 489.4485.10.9
Load_Advances (Fast)120000 2.62.60.0
Load_Advances (Unscaled)120000 2.42.40.0
Render120000 885.6881.90.4
Get_Glyph120000 593.6589.60.7
Get_Char_Index94000 1.91.90.0
Iterate CMap1000 1.31.30.0
New_Face1000 44.341.66.1
Embolden120000 640.0639.30.1
Stroke60000 2335.82323.60.5
Get_BBox120000 148.7138.66.8
Get_CBox120000 594.0590.80.5
New_Face & load glyph(s)120000 114.3104.78.4
Total duration for the font:14 s

Results for Arial_subset.ttf

TestIterations * Baseline (µs) * Benchmark (µs) Difference (%)
Load95000 892.1713.220.1
Load_Advances (Normal)95000 753.4788.9-4.7
Load_Advances (Fast)95000 2.02.1-5.0
Load_Advances (Unscaled)95000 1.91.90.0
Render95000 1057.41037.11.9
Get_Glyph95000 812.5779.64.0
Get_Char_Index94000 2.42.40.0
Iterate CMap1000 1.41.37.1
New_Face1000 65.351.820.7
Embolden95000 874.6835.54.5
Stroke57000 3458.13425.70.9
Get_BBox95000 764.6719.45.9
Get_CBox95000 816.4766.26.1
New_Face & load glyph(s)95000 110.7111.9-1.1
Total duration for the font:18 s

Results for TimesNewRoman_subset.ttf

TestIterations * Baseline (µs) * Benchmark (µs) Difference (%)
Load95000 836.4821.01.8
Load_Advances (Normal)95000 818.6825.4-0.8
Load_Advances (Fast)95000 2.12.04.8
Load_Advances (Unscaled)95000 1.91.90.0
Render95000 1200.31188.21.0
Get_Glyph95000 900.1906.8-0.7
Get_Char_Index94000 1.81.80.0
Iterate CMap1000 1.31.30.0
New_Face1000 53.252.80.8
Embolden95000 1024.71031.6-0.7
Stroke42750 1036.11042.9-0.7
Get_BBox95000 882.8883.7-0.1
Get_CBox95000 905.2908.9-0.4
New_Face & load glyph(s)95000 135.7133.91.3
Total duration for the font:20 s

Results for Tahoma_subset.ttf

TestIterations * Baseline (µs) * Benchmark (µs) Difference (%)
Load95000 468.9510.9-9.0
Load_Advances (Normal)95000 467.9516.5-10.4
Load_Advances (Fast)95000 2.22.14.5
Load_Advances (Unscaled)95000 2.01.95.0
Render95000 769.0827.5-7.6
Get_Glyph95000 558.6607.6-8.8
Get_Char_Index94000 1.81.9-5.6
Iterate CMap1000 1.31.30.0
New_Face1000 46.847.6-1.7
Embolden95000 625.4665.5-6.4
Stroke66500 | 61750 3020.93125.7-3.5
Get_BBox95000 509.9557.3-9.3
Get_CBox95000 560.1613.1-9.5
New_Face & load glyph(s)95000 101.2104.5-3.3
Total duration for the font:14 s

Results for Verdana_subset.ttf

TestIterations * Baseline (µs) * Benchmark (µs) Difference (%)
Load95000 492.5428.113.1
Load_Advances (Normal)95000 437.8428.82.1
Load_Advances (Fast)95000 2.32.24.3
Load_Advances (Unscaled)95000 2.12.10.0
Render95000 754.2741.81.6
Get_Glyph95000 524.4515.61.7
Get_Char_Index94000 1.91.90.0
Iterate CMap1000 1.31.30.0
New_Face1000 46.846.01.7
Embolden95000 583.0575.81.2
Stroke66500 2924.42919.10.2
Get_BBox95000 469.9471.0-0.2
Get_CBox95000 521.2523.9-0.5
New_Face & load glyph(s)95000 101.4101.9-0.5
Total duration for the font:14 s
Freetype Benchmark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]