# 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.

Testing in
Test | Ops/sec
--- | ---
JSON 3: `parse` |
    JSON3.parse(…);
JSON 2: `parse` |
    JSON2.parse(…);
`json-parse-state` |
    json_parse_state(…);
`json-parse` |
    json_parse(…);
`json-sans-eval` |
    jsonParse(…);
`evalJSON` |
    evalJSON(…);