Update benchmarks info in the readme

This commit is contained in:
Ivan Smirnov 2022-01-06 03:12:32 +03:00
parent 7ac43c442c
commit a75e7fe445

View file

@ -31,17 +31,21 @@ assert_eq!(decoded, pixels);
### Benchmarks ### Benchmarks
Comparison to the reference C implementation
(as of [00e34217](https://github.com/phoboslab/qoi/commit/00e34217)),
benchmarks timings collected on Apple M1 (1782 images, 1187 MB total):
``` ```
codec decode:ms encode:ms decode:mp/s encode:mp/s decode:Mp/s encode:Mp/s decode:MB/s encode:MB/s
qoi-c 4389.75 5524.18 283.5 225.3 qoi.h 282.9 225.3 978.3 778.9
qoi-fast 3026.68 4304.26 411.2 289.2 qoi-fast 427.4 290.0 1477.7 1002.9
``` ```
- Reference C implementation:
[phoboslab/qoi@00e34217](https://github.com/phoboslab/qoi/commit/00e34217).
- Benchmark timings were collected on an Apple M1 laptop.
- 2846 images from the suite provided upstream
([tarball](https://phoboslab.org/files/qoibench/qoi_benchmark_suite.tar)):
all pngs except two with broken checksums.
- 1.32 GPixels in total with 4.46 GB of raw pixel data.
Benchmarks have also been run for all of the other Rust implementations Benchmarks have also been run for all of the other Rust implementations
of QOI for comparison purposes and, at the time of writing this document, of QOI for comparison purposes and, at the time of writing this document,
this library proved to be the fastest one by a noticeable margin. this library proved to be the fastest one by a noticeable margin.