|
1 | 1 | # Rust JSON Benchmark
|
2 | 2 |
|
3 |
| -This is a partial port of |
4 |
| -[nativejson-benchmark](https://github.com/miloyip/nativejson-benchmark) |
5 |
| -to Rust. The libraries tested are: |
| 3 | +This is a partial port of [nativejson-benchmark] to Rust. The libraries tested |
| 4 | +are: |
6 | 5 |
|
7 |
| -- [serde\_json](https://github.com/serde-rs/json) 1.0.53 |
8 |
| -- [json-rust](https://github.com/maciejhirsz/json-rust) 0.12.4 |
9 |
| -- [rustc-serialize](https://github.com/rust-lang-nursery/rustc-serialize) 0.3.24 |
10 |
| -- [simd-json](https://github.com/Licenser/simdjson-rs) 0.1.26 (this requires a modern x86 CPU for good results) |
| 6 | +- [serde\_json] 1.0.53 |
| 7 | +- [json-rust] 0.12.4 |
| 8 | +- [rustc-serialize] 0.3.24 |
| 9 | +- [simd-json] 0.1.26 (this requires a modern x86 CPU for good results) |
| 10 | + |
| 11 | +[nativejson-benchmark]: https://github.com/miloyip/nativejson-benchmark |
| 12 | +[serde\_json]: https://github.com/serde-rs/json |
| 13 | +[json-rust]: https://github.com/maciejhirsz/json-rust |
| 14 | +[rustc-serialize]: https://github.com/rust-lang-nursery/rustc-serialize |
| 15 | +[simd-json]: https://github.com/Licenser/simdjson-rs |
11 | 16 |
|
12 | 17 | #### `$ cargo run --release`
|
13 | 18 |
|
@@ -40,10 +45,11 @@ data/twitter.json 660 MB/s 740 MB/s 900 MB/s
|
40 | 45 | To update the numbers above, I run `./json-benchmark` twice on an otherwise idle
|
41 | 46 | computer and take the greater of the two results for each number.
|
42 | 47 |
|
43 |
| -For comparison, here are results from |
44 |
| -[RapidJSON](https://github.com/miloyip/rapidjson) on the same hardware with the |
| 48 | +For comparison, here are results from [RapidJSON] on the same hardware with the |
45 | 49 | nativejson-benchmark modified to run 256 times instead of 10.
|
46 | 50 |
|
| 51 | +[RapidJSON]: https://github.com/miloyip/rapidjson |
| 52 | + |
47 | 53 | ```
|
48 | 54 | ==== rapidjson-clang ===================== parse|stringify ====
|
49 | 55 | data/canada.json 390 MB/s 200 MB/s
|
|
0 commit comments