Update benchmarks in the lib.rs as well
This commit is contained in:
parent
437d9b6280
commit
3cc5a260fb
2 changed files with 12 additions and 10 deletions
|
@ -33,7 +33,6 @@ assert_eq!(decoded, pixels);
|
||||||
|
|
||||||
```
|
```
|
||||||
decode:Mp/s encode:Mp/s decode:MB/s encode:MB/s
|
decode:Mp/s encode:Mp/s decode:MB/s encode:MB/s
|
||||||
|
|
||||||
qoi.h 282.9 225.3 978.3 778.9
|
qoi.h 282.9 225.3 978.3 778.9
|
||||||
qoi-fast 427.4 290.0 1477.7 1002.9
|
qoi-fast 427.4 290.0 1477.7 1002.9
|
||||||
```
|
```
|
||||||
|
|
21
src/lib.rs
21
src/lib.rs
|
@ -22,24 +22,27 @@
|
||||||
//!
|
//!
|
||||||
//! ### 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.h 282.9 225.3 978.3 778.9
|
||||||
//! qoi-c 4389.75 5524.18 283.5 225.3
|
//! qoi-fast 427.4 290.0 1477.7 1002.9
|
||||||
//! qoi-fast 3026.68 4304.26 411.2 289.2
|
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
//! - 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.
|
||||||
//!
|
//!
|
||||||
//! ### Rust version
|
//! ### Rust version
|
||||||
//!
|
//!
|
||||||
//! The minimum required Rust version is 1.51.0 (any changes to this would be
|
//! The minimum supported Rust version is 1.51.0 (any changes to this would be
|
||||||
//! considered to be a breaking change).
|
//! considered to be a breaking change).
|
||||||
//!
|
//!
|
||||||
//! ### `no_std`
|
//! ### `no_std`
|
||||||
|
|
Loading…
Reference in a new issue