]> git.lizzy.rs Git - rust.git/commit
test: Fix a bug in bench result formatting
authorUlrik Sverdrup <root@localhost>
Tue, 16 Jun 2015 11:10:27 +0000 (13:10 +0200)
committerUlrik Sverdrup <root@localhost>
Tue, 16 Jun 2015 11:10:27 +0000 (13:10 +0200)
commit04315949fb33fdce8353157a5d3dd10619bf5b37
treed5cf846c3a7c17865040a2894d2ec94627abe24f
parentf6341a878e46084b3afca1f331ed470fb2bd092e
test: Fix a bug in bench result formatting

It would skip the middle part if it was 0, displaying a number a 1000
times too small. The MB/s number next to it gave it away.

Fixed it looks like this:

```
test h ... bench:   1,000,129 ns/iter (+/- 4,730)
```
src/libtest/lib.rs