
On Thu, Nov 12, 2020 at 06:22:33PM +0800, Zhang Yale wrote:
[input] #Iterations: 1 2020-11-10 19:51:31 /lkp/benchmarks/hackbench-git/hackbench/hackbench 20 thread 1000 Running with 20*40 (== 800) tasks. Time: 0.495 ... #Iterations: 10 2020-11-10 19:51:38 /lkp/benchmarks/hackbench-git/hackbench/hackbench 20 thread 1000 Running with 20*40 (== 800) tasks. Time: 0.512
[output] tasks: 800 Time: 0.5016
Signed-off-by: Zhang Yale <ylzhangah@qq.com> --- stats/hackbench-git | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 stats/hackbench-git
diff --git a/stats/hackbench-git b/stats/hackbench-git new file mode 100755 index 00000000..435948ea --- /dev/null +++ b/stats/hackbench-git @@ -0,0 +1,19 @@ +#!/usr/bin/env ruby + +LKP_SRC = ENV['LKP_SRC'] || File.dirname(File.dirname(File.realpath($PROGRAM_NAME))) + +require "#{LKP_SRC}/lib/statistics" + +time = [] +while (line = gets) + case line + when /^Running with .* \(== (\d+)\) tasks/
/^Running with.*(\d{3})\)/
+ tasks = $1.to_i + when /^Time:/ + _name, seconds = line.split
What is the use of _name? Thanks, Jiaxin