Skip to content

Commit 1f29ba3

Browse files
committed
Use performance chart from dtoa-benchmark
1 parent 071d27c commit 1f29ba3

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ categories = ["value-formatting", "no-std", "no-std::no-alloc"]
66
description = "A double-to-string conversion algorithm based on Schubfach and yy"
77
documentation = "https://docs.rs/zmij"
88
edition = "2021"
9-
exclude = ["build.rs", "performance.png", "chart/**"]
9+
exclude = ["build.rs", "*.png", "chart/**"]
1010
keywords = ["float"]
1111
license = "MIT"
1212
repository = "https://github.com/dtolnay/zmij"

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@ fn main() {
2323
}
2424
```
2525

26-
## Performance (lower is better)
26+
## Performance
2727

28-
![performance](https://raw.githubusercontent.com/dtolnay/zmij/master/performance.png)
28+
The [dtoa-benchmark] compares this library and other Rust floating point
29+
formatting implementations across a range of precisions. The vertical axis in
30+
this chart shows nanoseconds taken by a single execution of
31+
`zmij::Buffer::new().format_finite(value)` so a lower result indicates a faster
32+
library.
33+
34+
[dtoa-benchmark]: https://github.com/dtolnay/dtoa-benchmark
35+
36+
![performance](https://raw.githubusercontent.com/dtolnay/zmij/master/dtoa-benchmark.png)
2937

3038
<br>
3139

dtoa-benchmark.png

193 KB
Loading

0 commit comments

Comments
 (0)