3 ms·
Some of the .Net examples literal calls into native code. https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/regexredux-csharpcore-8.html http
by kasperni 6y ago
Some of the .Net examples literal calls into native code.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/regexredux-csharpcore-8.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
vs
https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/regexredux-java-3.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
That is hardly a fair comparison.
- philliphaydon 6y agohttps://www.techempower.com/benchmarks/#section=test&runid=4c536195-90ff-40b8-8636-a719318a864b&hw=ph&test=plaintext https://www.techempower.com/benchmarks/#section=test&runid=4... These benchmarks are more impressive.
- thesuperbigfrog 6y agoAgreed. A fair comparison would use .Net code and not call the PCRE2 library. Otherwise, why not use JNI and have it call PCRE2 as well?
- igouy 6y agoPlease write and contribute that PCRE2 Java program. Meanwhile here's a C# program that does not use PCRE2: https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/regexredux-java-3.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... https://benchmarksgame-team.pages.debian.net/benchmarksgame/measurements/csharpcore.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 6y agoAs it says — "These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you."