Parser perf research Writing a parser in js is a tricky business. Tweaking it for speed seems to be a black art by itself. There are a lot of engines, each with their own tricks. It's very difficult to create fast performing code that's still platform agnostic. TL;DR: parsing's tricky business. Check out this jsperf case to see an attempt at getting a grip on which approach might be best. The blog