JSON 3 Benchmark Suite
About
This is a mirror of the JSON 3 benchmark suite available on jsPerf.
The following implementations support parsing and serializing:
- JSON 3: Uses a modified, character-based recursive descent parser.
- JSON 2: Uses
eval
and a series of validation RegExps.
The following implementations only support parsing:
json-parse
: Uses a character-based recursive descent parser.json-parse-state
: Uses a state machine parser.json-sans-eval
: Uses a non-validating RegExp.evalJSON
: Uses a RegExp-based recursive descent parser.
Benchmark Runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test | Ops/sec | |
---|---|---|
JSON 3:
parse |
|
|
JSON 2:
parse |
|
|
json-parse-state |
|
|
json-parse |
|
|
json-sans-eval |
|
|
evalJSON |
|