|
From: | Anurag Thakur |
Subject: | Re: Progress update on alternative rendering engines project |
Date: | Thu, 10 Aug 2023 22:00:21 +0000 |
I tested different variations of the benchmark, by changing iteration counts and it appears that as the number of iterations increase fontdue fares better against FreeType (`smooth`)
I have attached graphs for the benchmark results, green represents fontdue is faster and red represents FreeType is faster, and the radius of circle represents percentage difference.
And I stand corrected, even without SIMD, there are some cases where fontdue is faster (as demonstrated by the green circles in arm64 benchmarks).
I will try to port its approach to outline storage and send another round of benchmark results within a couple of days.
Notes:
X64 benchmark performed on a ryzen 5500u laptop (plugged in)
arm64 benchmark performed on a dimensity 920 5G android phone under termux (plugged in)
Used `taskset -c 0` to minimize variance
Regards
Anurag
From: freetype-devel-bounces+anurag105csec21=bpitindia.edu.in@nongnu.org <freetype-devel-bounces+anurag105csec21=bpitindia.edu.in@nongnu.org>
On Behalf Of Anurag Thakur
Sent: Saturday, August 5, 2023 12:42 PM
To: Werner LEMBERG <wl@gnu.org>
Cc: freetype-devel@nongnu.org; raph.levien@gmail.com
Subject: Re: Progress update on alternative rendering engines project
Added my benchmark program here:
Usage:
Clone the repo, and execute "cargo build --release" under `duetest/`
The binary can be found under `target/release`
It needs the location of the font file as an argument.
> With 'FreeType' you mean the standard rasterizer in `src/smooth`,
right?
Yes, all these benchmarks were done with `smooth`. To be exact the project uses "freetype-rs" which itself seems to use "freetype-sys" which according to their GitHub uses FreeType 2.12.1, I couldn't find the function to print the library version in the binding so can't confirm.
> What exactly did you compare time-wise with FreeType's 'smooth'
render?
The original rust version.
I am now trying to run my port under this benchmark by modifying the freetype-sys create, will report my findings.
Also, I was running the benchmark with 500 iterations, however increasing the iteration count to 5000 seems to give fontdue an advantage.
Another caveat, it is currently only testing the lowercase English alphabet.
I am working on graphing my findings so that it's easier to draw conclusions.
Regards,
Anurag
[Prev in Thread] | Current Thread | [Next in Thread] |