Skip to content

Commit

Permalink
fix performance
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed May 21, 2022
1 parent af0eccc commit 6f12822
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ log data-> | main channel(crossbeam) | ->
```
//MACOS(Apple M1MAX-32GB)
Time: 221.079ms ,each:221 ns/op
QPS: 4523139 TPS/s
QPS: 4523139 Iter/s
```

> support Future mode,async await based on mpsc channel, tokio or async_std
Expand Down
2 changes: 1 addition & 1 deletion README_CH.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ log data-> | main channel(crossbeam) | ->
```
//MACOS(Apple M1MAX-32GB)
Time: 221.079ms ,each:221 ns/op
QPS: 4523139 TPS/s
QPS: 4523139 Iter/s
```

> support Future mode,async await based on mpsc channel, tokio or async_std
Expand Down
2 changes: 1 addition & 1 deletion src/bencher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ impl QPS for std::time::Instant {
fn qps(&self, total: u64) {
let time = self.elapsed();
println!(
"QPS: {} TPS/s",
"QPS: {} Iter/s",
(total as u128 * 1000000000 as u128 / time.as_nanos() as u128)
);
}
Expand Down

0 comments on commit 6f12822

Please sign in to comment.