From 6f12822955e636a8f5c9391b62e8b38aabbb88cb Mon Sep 17 00:00:00 2001 From: zxj Date: Sun, 22 May 2022 05:11:27 +0800 Subject: [PATCH] fix performance --- README.md | 2 +- README_CH.md | 2 +- src/bencher.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 33507df..36bd1e8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_CH.md b/README_CH.md index 84e78e9..884d2c0 100644 --- a/README_CH.md +++ b/README_CH.md @@ -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 diff --git a/src/bencher.rs b/src/bencher.rs index ec97ae6..6927962 100644 --- a/src/bencher.rs +++ b/src/bencher.rs @@ -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) ); }