5 ms·
The benchmarkgame result are comparing apples to oranges. I stopped after seeing them tests Java regexes tot c# regexes which uses the native pcre library. In m
by wokkel 6y ago
The benchmarkgame result are comparing apples to oranges. I stopped after seeing them tests Java regexes tot c# regexes which uses the native pcre library. In my professional experience, the .net jit is nearly always slower than the jvm one.
- ygra 6y agoWith .NET 5 the fastest non-PCRE C# regexredux implementation there completes in five seconds on my machine, as opposed to 8 seconds for the Java implementation. Still quite a bit away from C, but I'd say respectable for a purely managed implementation. It helps that the team has done a lot of optimizations for regex and other parts of the standard lib in the past few months.
- igouy 6y ago> I stopped… You stopped without providing any alternative data beyond — .net is slower because I say it's slower. You stopped without telling us about the benchmarks game C# program which uses System.Text.RegularExpressions