Speed Comparison keeps everything in perspective

Please wait...

Every parser produces the syntax tree with location marking in every syntax node.

Time measurement is carried out using Benchmark.js.

When the checkbox above is checked, a new thread (Web Worker) is started for every benchmark cycle, to simulate parsing a single file for the first time.

When the checkbox above is not checked, all benchmark cycles are run in the same thread. This allows the JIT compiler to heavily optimize the parsers, simulating parsing the files many times.

In both cases, the reported times only include parsing the listed files, not loading and executing the parser's script file.