freetype-devel
[Top][All Lists]
Advanced

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

Re: ftbench update: make integrated


From: Ahmet Göksu
Subject: Re: ftbench update: make integrated
Date: Wed, 5 Jul 2023 14:35:11 +0300

Sorry, my bad to forget to add CC.
I thought you mean running make outside of the src/tools/ftbench file (as how older version works) by non-sourcedir builds. if you mean running from a seperate build directory, it is working now.

for benchmark.html (also in the attachments):
*changed .txts to font name and extension
*added another column that shows the difference in
 percent
*added warning message
*shorten commit id and linking to gitlab
*parameters and stuff are being printed once

for testing.mk:
`make baseline` is working from a separate build directory. 
(the error were caused by trying to reach to git details from different directory, solved it by "git -C $(TOP_DIR)”)

here are the things i stucked:

1) renaming bench.o to bench
i am getting this error when i trim the extension .o:
Building ftbench...
libtool: error: cannot determine name of library object from '/Users/gks/Desktop/freetype/objs/bench'
make: *** [/Users/gks/Desktop/freetype/objs/bench] Error 1
here is the makefile part related to this. 

INCLUDES = -I$(TOP_DIR)/include

# Build ftbench
$(FTBENCH_BIN): $(FTBENCH_SRC) | $(OBJ_DIR)
    @echo "Building ftbench..."
    @$(CC) $(INCLUDES) $< -lfreetype -o $@
2) multiple compiles of ftbench:
Building ftbench...
./builds/unix/libtool --mode=compile gcc -I/Users/gks/Desktop/freetype/include /Users/gks/Desktop/freetype/src/tools/ftbench/ftbench.c -lfreetype -o /Users/gks/Desktop/freetype/objs/bench.o
libtool: compile: gcc -I/Users/gks/Desktop/freetype/include /Users/gks/Desktop/freetype/src/tools/ftbench/ftbench.c -lfreetype -fno-common -DPIC -o /Users/gks/Desktop/freetype/objs/.libs/bench.o
libtool: compile: gcc -I/Users/gks/Desktop/freetype/include /Users/gks/Desktop/freetype/src/tools/ftbench/ftbench.c -lfreetype -o /Users/gks/Desktop/freetype/objs/bench.o >/dev/null 2>&1
i tried both with gcc and it works well. i think i am missing a point related to libtool (parameter?). i need some hint to fix these.

Thanks,
Goksu
goksu.in
On 2 Jul 2023 18:55 +0300, Werner LEMBERG <wl@gnu.org>, wrote:

Is it seem enough to pass mid-term evaluations or is there any other
improvements needed before the date?

Looks good in general, and see the other e-mail with a list of tasks.
By the way, it would be nice if you actually did *all* the things I'm
asking for — IIRC, this is the third time I'm talking about
non-sourcedir builds, and it still doesn't work.


Werner

Benchmark Results

Warning: Baseline and Benchmark have the same commit ID

Info

InfoBaselineBenchmark
Parameters-c 200-c 200
Commit ID1afa56191afa5619
Commit Date2023-07-05 14:00:12 +03002023-07-05 14:00:12 +0300
BranchGSoC-2023-AhmetGSoC-2023-Ahmet

Results for Roboto_subset.ttf

Test Baseline Benchmark Difference
Load5.48 us/op4.90 us/op10.61%
Load_Advances (Normal)5.65 us/op5.34 us/op5.40%
Load_Advances (Fast)0.03 us/op0.03 us/op21.21%
Load_Advances (Unscaled)0.04 us/op0.02 us/op36.84%
Render4.07 us/op3.70 us/op9.12%
Get_Glyph1.65 us/op1.48 us/op10.61%
Get_Char_Index0.03 us/op0.03 us/op-6.90%
New_Face54.10 us/op43.62 us/op19.37%
Embolden2.07 us/op1.93 us/op6.90%
Stroke34.27 us/op30.12 us/op12.13%
Get_BBox1.10 us/op0.97 us/op11.67%
Get_CBox0.90 us/op0.78 us/op13.56%

Results for Arial_subset.ttf

Test Baseline Benchmark Difference
Load8.33 us/op8.16 us/op1.98%
Load_Advances (Normal)9.55 us/op7.87 us/op17.57%
Load_Advances (Fast)0.03 us/op0.03 us/op-3.85%
Load_Advances (Unscaled)0.03 us/op0.03 us/op0.00%
Render4.16 us/op3.77 us/op9.42%
Get_Glyph2.08 us/op1.79 us/op13.76%
Get_Char_Index0.03 us/op0.03 us/op-3.45%
New_Face65.28 us/op52.30 us/op19.89%
Embolden2.38 us/op2.19 us/op7.89%
Stroke30.57 us/op29.06 us/op4.96%
Get_BBox1.18 us/op1.12 us/op5.33%
Get_CBox1.01 us/op0.79 us/op22.01%

Results for TimesNewRoman_subset.ttf

Test Baseline Benchmark Difference
Load13.59 us/op9.65 us/op28.99%
Load_Advances (Normal)13.02 us/op8.98 us/op31.03%
Load_Advances (Fast)0.03 us/op0.03 us/op7.14%
Load_Advances (Unscaled)0.03 us/op0.03 us/op3.85%
Render4.43 us/op4.42 us/op0.34%
Get_Glyph1.86 us/op1.92 us/op-3.22%
Get_Char_Index0.03 us/op0.03 us/op-3.23%
New_Face61.99 us/op60.97 us/op1.65%
Embolden3.66 us/op3.03 us/op17.17%
Stroke45.36 us/op39.35 us/op13.25%
Get_BBox1.30 us/op1.26 us/op2.62%
Get_CBox0.89 us/op0.80 us/op9.70%

Results for Tahoma_subset.ttf

Test Baseline Benchmark Difference
Load5.93 us/op5.06 us/op14.73%
Load_Advances (Normal)6.64 us/op5.71 us/op14.06%
Load_Advances (Fast)0.03 us/op0.03 us/op0.00%
Load_Advances (Unscaled)0.03 us/op0.02 us/op4.00%
Render4.18 us/op3.73 us/op10.78%
Get_Glyph2.10 us/op1.67 us/op20.59%
Get_Char_Index0.03 us/op0.03 us/op6.67%
New_Face63.95 us/op52.16 us/op18.44%
Embolden2.70 us/op2.36 us/op12.64%
Stroke31.08 us/op26.98 us/op13.20%
Get_BBox1.36 us/op1.01 us/op25.75%
Get_CBox1.13 us/op0.77 us/op31.89%

Results for Verdana_subset.ttf

Test Baseline Benchmark Difference
Load6.28 us/op4.65 us/op25.92%
Load_Advances (Normal)5.23 us/op5.32 us/op-1.68%
Load_Advances (Fast)0.03 us/op0.03 us/op3.70%
Load_Advances (Unscaled)0.02 us/op0.02 us/op0.00%
Render4.09 us/op3.61 us/op11.76%
Get_Glyph1.85 us/op1.64 us/op11.16%
Get_Char_Index0.03 us/op0.03 us/op-3.57%
New_Face52.13 us/op48.95 us/op6.10%
Embolden2.41 us/op2.19 us/op8.96%
Stroke26.89 us/op26.52 us/op1.37%
Get_BBox1.02 us/op1.06 us/op-4.31%
Get_CBox0.90 us/op0.74 us/op18.16%

Freetype Benchmark
reply via email to

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