
the colon is not required. add sysbench-threads-git result parse file On Wed, Nov 18, 2020 at 03:10:31PM +0800, Li Ping wrote:
Reply-To: In-Reply-To: <20201118065209.1071046-1-1034502035@qq.com>
On Wed, Nov 18, 2020 at 02:52:09PM +0800, Hu Xuejiao wrote:
[input] General statistics: total time: 0.3987s total number of events: 10000 total time taken by event execution: 0.3971 response time: min: 0.04ms
It has written in your patch.
[output] total time: 0.3987s
Signed-off-by: Hu XueJiao <1034502035@qq.com> --- stats/sysbench-threads-git | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 stats/sysbench-threads-git
diff --git a/stats/sysbench-threads-git b/stats/sysbench-threads-git new file mode 100755 index 00000000..afe5d664 --- /dev/null +++ b/stats/sysbench-threads-git @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby + +# General statistics: +# total time: 0.2671s +# total number of events: 10000 +# total time taken by event execution: 0.3971s +# response time: +# min: 0.04ms + +$stdin.each_line do |line| + next unless line =~ /^\s+total time:\s+([0-9.]+)/ + + puts "total time: #{$1.to_f}s" +end -- 2.23.0