[input] --------socket thread num=20-------- 2020-11-10 19:51:31 /lkp/benchmarks/hackbench-git/hackbench/hackbench 20 thread 1000 Running with 20*40 (== 800) tasks. Time: 0.495 ... 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] socket_thread_num_800: 0.5016
Signed-off-by: Zhang Yale ylzhangah@qq.com --- stats/hackbench-git | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 stats/hackbench-git
diff --git a/stats/hackbench-git b/stats/hackbench-git new file mode 100755 index 00000000..187f1c19 --- /dev/null +++ b/stats/hackbench-git @@ -0,0 +1,20 @@ +#!/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 /^-+(\w+ \w+ \w+)/ + args = $1.tr(' ', '_') + when /^Running with .* (== (\d+)) tasks/ + tasks = $1.to_i + when /^Time:/ + seconds = line.split[1] + time << seconds.to_f + end +end + +puts "#{args}_#{tasks}: #{time.sum / time.size}"
On Fri, Nov 13, 2020 at 10:41:44AM +0800, Zhang Yale wrote:
[input] --------socket thread num=20-------- 2020-11-10 19:51:31 /lkp/benchmarks/hackbench-git/hackbench/hackbench 20 thread 1000 Running with 20*40 (== 800) tasks. Time: 0.495 ... 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] socket_thread_num_800: 0.5016
Signed-off-by: Zhang Yale ylzhangah@qq.com
stats/hackbench-git | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 stats/hackbench-git
diff --git a/stats/hackbench-git b/stats/hackbench-git new file mode 100755 index 00000000..187f1c19 --- /dev/null +++ b/stats/hackbench-git @@ -0,0 +1,20 @@ +#!/usr/bin/env ruby
+LKP_SRC = ENV['LKP_SRC'] || File.dirname(File.dirname(File.realpath($PROGRAM_NAME)))
+require "#{LKP_SRC}/lib/statistics"
+time = []
add blank line.
Thanks, Baijing
+while (line = gets)
- case line
- when /^-+(\w+ \w+ \w+)/
- args = $1.tr(' ', '_')
- when /^Running with .* (== (\d+)) tasks/
- tasks = $1.to_i
- when /^Time:/
- seconds = line.split[1]
- time << seconds.to_f
- end
+end
+puts "#{args}_#{tasks}: #{time.sum / time.size}"
2.23.0
On Fri, Nov 13, 2020 at 02:45:08PM +0800, Bai Jing wrote:
On Fri, Nov 13, 2020 at 10:41:44AM +0800, Zhang Yale wrote:
[input] --------socket thread num=20-------- 2020-11-10 19:51:31 /lkp/benchmarks/hackbench-git/hackbench/hackbench 20 thread 1000 Running with 20*40 (== 800) tasks. Time: 0.495 ... 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] socket_thread_num_800: 0.5016
Signed-off-by: Zhang Yale ylzhangah@qq.com
stats/hackbench-git | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 stats/hackbench-git
diff --git a/stats/hackbench-git b/stats/hackbench-git new file mode 100755 index 00000000..187f1c19 --- /dev/null +++ b/stats/hackbench-git @@ -0,0 +1,20 @@ +#!/usr/bin/env ruby
+LKP_SRC = ENV['LKP_SRC'] || File.dirname(File.dirname(File.realpath($PROGRAM_NAME)))
+require "#{LKP_SRC}/lib/statistics"
+time = []
add blank line.
Thanks, Baijing
Good! I'll change it.
Thanks, Yale
+while (line = gets)
- case line
- when /^-+(\w+ \w+ \w+)/
- args = $1.tr(' ', '_')
- when /^Running with .* (== (\d+)) tasks/
- tasks = $1.to_i
- when /^Time:/
- seconds = line.split[1]
- time << seconds.to_f
- end
+end
+puts "#{args}_#{tasks}: #{time.sum / time.size}"
2.23.0