simdjson/benchmark
John Keiser 8e7d1a5f09
Separate document state from ParsedJson
This creates a "document" class with only user-facing document state (no parser internals).

- document: user-facing document state
- document::iterator: iterator (equivalent of ParsedJsonIterator)
- document::parser: parser state plus a "docked" document we parse into (equivalent of ParsedJson)

Usage:

```c++
auto doc = simdjson::document::parse(buf, len); // less efficient but simplest
```

```c++
simdjson::document::parser parser; // reusable parser
parser.allocate_capacity(len);
simdjson::document* doc = parser.parse(buf, len); // pointer to doc inside parser
doc = parser.parse(buf2, len); // reuses all buffers and overwrites doc; more efficient
```
2020-02-07 10:02:36 -08:00
..
linux Measure impact of utf-8 blocks and structurals per block directly 2019-12-17 11:41:13 -08:00
miss-templates Measure impact of utf-8 blocks and structurals per block directly 2019-12-17 11:41:13 -08:00
CMakeLists.txt Adding a "get_corpus" benchmark. (#456) 2020-01-20 17:27:25 -05:00
Dockerfile check for performance degradation in CI (#270) 2019-08-12 16:03:56 -04:00
benchfeatures.cpp Some minor nitpicking. 2020-02-07 10:41:45 -05:00
benchmark.h Style uniformization (#238) 2019-07-30 17:18:10 -04:00
benchmarker.h Separate document state from ParsedJson 2020-02-07 10:02:36 -08:00
distinctuseridcompetition.cpp Separate document state from ParsedJson 2020-02-07 10:02:36 -08:00
event_counter.h Some minor nitpicking. 2020-02-07 10:41:45 -05:00
genfeaturejson.rb Benchmark escapes (#464) 2020-01-27 09:58:14 -05:00
genfeaturejsonseed.rb Measure impact of utf-8 blocks and structurals per block directly 2019-12-17 11:41:13 -08:00
get_corpus_benchmark.cpp Adding a "get_corpus" benchmark. (#456) 2020-01-20 17:27:25 -05:00
json_parser.h Removing all stdout, stderr from main library. (#455) 2020-01-20 16:03:15 -05:00
minifiercompetition.cpp Updating the json minifier benchmark to match that of the new API. 2019-12-02 10:46:03 -05:00
parse.cpp Add option to make buffers hot and remove recent benchmarking changes (#443) 2020-01-15 19:48:00 -05:00
parse_stream.cpp fix for Issue 467 (#469) 2020-01-29 19:00:18 -05:00
parseandstatcompetition.cpp Separate document state from ParsedJson 2020-02-07 10:02:36 -08:00
parsingcompetition.cpp Adding a getline benchmark (#344) 2019-11-20 20:33:16 -05:00
perfdiff.cpp This should lower false positives. (#299) 2019-08-25 09:33:00 -04:00
statisticalmodel.cpp Separate document state from ParsedJson 2020-02-07 10:02:36 -08:00