diff --git a/benchmarks/README.md b/benchmarks/README.md index 9c9b5c8d..85a6562e 100644 --- a/benchmarks/README.md +++ b/benchmarks/README.md @@ -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. + +![image](img/canada_read.png) +![image](img/canada_write.png) + +- **Licenses** - dataset that is nested, many strings. + +![image](img/licenses_read.png) +![image](img/licenses_write.png) + +- **Person** - very small dataset. + +![image](img/person_read.png) +![image](img/person_write.png) diff --git a/benchmarks/img/canada_read.png b/benchmarks/img/canada_read.png new file mode 100644 index 00000000..5b7871eb Binary files /dev/null and b/benchmarks/img/canada_read.png differ diff --git a/benchmarks/img/canada_write.png b/benchmarks/img/canada_write.png new file mode 100644 index 00000000..0b6010df Binary files /dev/null and b/benchmarks/img/canada_write.png differ diff --git a/benchmarks/img/licenses_read.png b/benchmarks/img/licenses_read.png new file mode 100644 index 00000000..0bfd76bc Binary files /dev/null and b/benchmarks/img/licenses_read.png differ diff --git a/benchmarks/img/licenses_write.png b/benchmarks/img/licenses_write.png new file mode 100644 index 00000000..1398bc88 Binary files /dev/null and b/benchmarks/img/licenses_write.png differ diff --git a/benchmarks/img/person_read.png b/benchmarks/img/person_read.png new file mode 100644 index 00000000..e0e3be9d Binary files /dev/null and b/benchmarks/img/person_read.png differ diff --git a/benchmarks/img/person_write.png b/benchmarks/img/person_write.png new file mode 100644 index 00000000..69937f42 Binary files /dev/null and b/benchmarks/img/person_write.png differ