mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
Added images to the benchmark (#129)
This commit is contained in:
@@ -56,3 +56,20 @@ In summary, it is fair to say that reflect-cpp is among the fastest JSON librari
|
||||
- TOML and YAML are very slow when compared to the other formats. To be fair, these formats emphasize readability rather than speed.
|
||||
|
||||
In summary, if you are looking for a format that emphasizes speed, msgpack is probably your best bet. Not only does it perform very well on our benchmarks, but there are also many high-quality implementations in other languages. If you are looking for a good trade-off between speed and readability, you should probably just stick with JSON.
|
||||
|
||||
The benchmarks depicted below were conducted using gcc 11.4 on Ubuntu 22.4.
|
||||
|
||||
- **Canada** - dataset that is heavy on floats, few field names.
|
||||
|
||||

|
||||

|
||||
|
||||
- **Licenses** - dataset that is nested, many strings.
|
||||
|
||||

|
||||

|
||||
|
||||
- **Person** - very small dataset.
|
||||
|
||||

|
||||

|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user