freetype-devel
[Top][All Lists]
Advanced

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

-warmup


From: Ahmet Göksu
Subject: -warmup
Date: Thu, 3 Aug 2023 19:20:11 +0300

Hi,
I have updated the bench code. 
It is warming up as the given number of seconds with -w flag before every benchmark test.

There are still differences like 100%..
Also, 1 sec warmup means (test count)*(font count) 70 secs for the results.  

I am thinking of what else can be done and waiting for your test.

Best,
Goksu
goksu.in
On 3 Aug 2023 05:45 +0300, Werner LEMBERG <wl@gnu.org>, wrote:

I have done the changes you want.

Thanks!

36.5% run difference is baaaad. AFAICS, you haven't yet worked on
omitting 'warmup' iterations, right?

I am planning to increase the iteration count by 10% and ignore the
results for them.

You mean you are going to ignore the first 10% of the iterations?
This might be a good default. However, I still think that a
`--warmup` command-line option makes sense to control this.

Trying to figure out the benchmarking program but actually drowning
in 1500 lines of code.

:-) I hope you can eventually find what you need.


Werner

Freetype Benchmark Results

Warning: Baseline and Benchmark have the same commit ID!

Info

InfoBaselineBenchmark
Parameters-c 500 -w 1-c 500 -w 1
Commit IDfae5e8c9fae5e8c9
Commit Date2023-08-01 17:37:55 +03002023-08-01 17:37:55 +0300
BranchGSoC-2023-AhmetGSoC-2023-Ahmet

* Smaller values mean faster operation

Results for Roboto_subset.ttf

TestN * Baseline (ms) * Benchmark (ms) Difference (%)
Load59880 0.2500.270-8.0
Load_Advances (Normal)59880 0.3110.24321.9
Load_Advances (Fast)59880 0.0020.0020.0
Load_Advances (Unscaled)59880 0.0010.002-100.0
Render59880 0.2200.2180.9
Get_Glyph59880 0.0860.0860.0
Get_Char_Index46906 0.0010.0010.0
Iterate CMap499 0.0010.0010.0
New_Face499 0.0220.0220.0
Embolden59880 0.1150.1150.0
Stroke57120 1.6281.629-0.1
Get_BBox59880 0.0550.0550.0
Get_CBox59880 0.0430.0422.3
New_Face & load glyph(s)59880 0.0530.054-1.9
TOTAL1407648 2.7882.740-6.1

Results for Arial_subset.ttf

TestN * Baseline (ms) * Benchmark (ms) Difference (%)
Load47405 0.3900.3763.6
Load_Advances (Normal)47405 0.3440.3401.2
Load_Advances (Fast)47405 0.0010.0010.0
Load_Advances (Unscaled)47405 0.0010.0010.0
Render47405 0.1790.186-3.9
Get_Glyph47405 0.0750.076-1.3
Get_Char_Index46906 0.0010.0010.0
Iterate CMap499 0.0010.0010.0
New_Face499 0.0280.02510.7
Embolden47405 0.1030.1030.0
Stroke47405 1.3241.329-0.4
Get_BBox47405 0.0490.051-4.1
Get_CBox47405 0.0350.036-2.9
New_Face & load glyph(s)47405 0.0600.05410.0
TOTAL1138718 2.5912.5800.9

Results for TimesNewRoman_subset.ttf

TestN * Baseline (ms) * Benchmark (ms) Difference (%)
Load47405 0.4550.464-2.0
Load_Advances (Normal)47405 0.4190.4121.7
Load_Advances (Fast)47405 0.0010.0010.0
Load_Advances (Unscaled)47405 0.0010.0010.0
Render47405 0.2010.1972.0
Get_Glyph47405 0.0780.082-5.1
Get_Char_Index46906 0.0010.0010.0
Iterate CMap499 0.0010.0010.0
New_Face499 0.0270.0270.0
Embolden47405 0.1400.1390.7
Stroke40185 1.5451.5450.0
Get_BBox47405 0.0580.059-1.7
Get_CBox47405 0.0370.041-10.8
New_Face & load glyph(s)47405 0.0690.076-10.1
TOTAL1124278 3.0333.046-1.8

Results for Tahoma_subset.ttf

TestN * Baseline (ms) * Benchmark (ms) Difference (%)
Load47405 0.2650.289-9.1
Load_Advances (Normal)47405 0.2450.2392.4
Load_Advances (Fast)47405 0.0010.0010.0
Load_Advances (Unscaled)47405 0.0010.0010.0
Render47405 0.1660.1660.0
Get_Glyph47405 0.0750.0715.3
Get_Char_Index46906 0.0010.0010.0
Iterate CMap499 0.0010.0010.0
New_Face499 0.0250.0244.0
Embolden47405 0.1180.1088.5
Stroke47405 1.2441.2360.6
Get_BBox47405 0.0470.0470.0
Get_CBox47405 0.0340.0340.0
New_Face & load glyph(s)47405 0.0530.0521.9
TOTAL1138718 2.2762.2701.0

Results for Verdana_subset.ttf

TestN * Baseline (ms) * Benchmark (ms) Difference (%)
Load47405 0.2510.22012.4
Load_Advances (Normal)47405 0.2260.2174.0
Load_Advances (Fast)47405 0.0010.0010.0
Load_Advances (Unscaled)47405 0.0020.00150.0
Render47405 0.1690.174-3.0
Get_Glyph47405 0.0730.075-2.7
Get_Char_Index46906 0.0010.0010.0
Iterate CMap499 0.0010.0010.0
New_Face499 0.0240.0234.2
Embolden47405 0.1030.104-1.0
Stroke47405 1.2301.319-7.2
Get_BBox47405 0.0460.050-8.7
Get_CBox47405 0.0340.040-17.6
New_Face & load glyph(s)47405 0.0500.056-12.0
TOTAL1138718 2.2112.2821.3

Freetype Benchmark

reply via email to

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