On Thu, Nov 12, 2020 at 06:10:42PM +0800, Zhang Yale wrote:
Signed-off-by: Zhang Yale ylzhangah@qq.com
Pls ignore this email, thanks
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/
- tasks = $1.to_i
- when /^Time:/
- _name, seconds = line.split
- time << seconds.to_f
- end
+end
+puts "tasks: #{tasks}"
+puts "Time: #{time.sum / time.size}"
2.23.0