News for hackers. Stuff that matters.
Re:Rust's regex-dna benchmark results by towelguy on Thursday June 25, 2015 @03:54PM (#9780508)
Wait, the second fastest is the Javascript one?
Re:Rust's regex-dna benchmark results by eddyb on Thursday June 25, 2015 @04:54PM (#9780847)
I'm not surprised, v8 has a RegExp JIT (irregexp IIRC) which used to be 20x faster than SpiderMonkey's RegExp for simple patterns.

Back when I was playing with parsers in JS, the fastest approach to anything string-related was through RegExp, even trivial tasks like "first character is X".

The caveat, of course, was that you would only get that performance under v8.

Nowadays it should be more balanced, but I have no idea how v8 compares to SM anymore.