Skip to content

Commit 55c15a1

Browse files
committed
Use performance chart from itoa-benchmark
1 parent cf33343 commit 55c15a1

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
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 = "Fast integer primitive to string conversion"
77
documentation = "https://docs.rs/itoa"
88
edition = "2021"
9-
exclude = ["performance.png", "chart/**"]
9+
exclude = ["*.png", "chart/**"]
1010
keywords = ["integer"]
1111
license = "MIT OR Apache-2.0"
1212
repository = "https://github.com/dtolnay/itoa"

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,17 @@ fn main() {
3535

3636
<br>
3737

38-
## Performance (lower is better)
38+
## Performance
3939

40-
![performance](https://raw.githubusercontent.com/dtolnay/itoa/master/performance.png)
40+
The [itoa-benchmark] compares this library and other Rust integer formatting
41+
implementations across a range of integer sizes. The vertical axis in this chart
42+
shows nanoseconds taken by a single execution of
43+
`itoa::Buffer::new().format(value)` so a lower result indicates a faster
44+
library.
45+
46+
[itoa-benchmark]: https://github.com/dtolnay/itoa-benchmark
47+
48+
![performance](https://raw.githubusercontent.com/dtolnay/itoa/master/itoa-benchmark.png)
4149

4250
<br>
4351

itoa-benchmark.png

164 KB
Loading

src/lib.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@
2525
//! }
2626
//! ```
2727
//!
28-
//! # Performance (lower is better)
28+
//! # Performance
2929
//!
30-
//! ![performance](https://raw.githubusercontent.com/dtolnay/itoa/master/performance.png)
30+
//! The [itoa-benchmark] compares this library and other Rust integer formatting
31+
//! implementations across a range of integer sizes. The vertical axis in this
32+
//! chart shows nanoseconds taken by a single execution of
33+
//! `itoa::Buffer::new().format(value)` so a lower result indicates a faster
34+
//! library.
35+
//!
36+
//! [itoa-benchmark]: https://github.com/dtolnay/itoa-benchmark
37+
//!
38+
//! ![performance](https://raw.githubusercontent.com/dtolnay/itoa/master/itoa-benchmark.png)
3139
3240
#![doc(html_root_url = "https://docs.rs/itoa/1.0.16")]
3341
#![no_std]

0 commit comments

Comments
 (0)