Make ruby2crystal convert
Signed-off-by: Zhang Yale ylzhangah@qq.com --- stats/crystal/hackbench-git.cr | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 stats/crystal/hackbench-git.cr
diff --git a/stats/crystal/hackbench-git.cr b/stats/crystal/hackbench-git.cr new file mode 100644 index 00000000..214dcd02 --- /dev/null +++ b/stats/crystal/hackbench-git.cr @@ -0,0 +1,23 @@ +#!/usr/bin/env crystal + +# --------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 +# ... + +time = [] of Float64 + +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}"
Title shoule be stats/crystal ....
Thanks, Zhangyu
On Wed, Nov 25, 2020 at 07:40:21PM +0800, Zhang Yale wrote:
Make ruby2crystal convert
Signed-off-by: Zhang Yale ylzhangah@qq.com
stats/crystal/hackbench-git.cr | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 stats/crystal/hackbench-git.cr
diff --git a/stats/crystal/hackbench-git.cr b/stats/crystal/hackbench-git.cr new file mode 100644 index 00000000..214dcd02 --- /dev/null +++ b/stats/crystal/hackbench-git.cr @@ -0,0 +1,23 @@ +#!/usr/bin/env crystal
+# --------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 +# ...
+time = [] of Float64
+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 Thu, Nov 26, 2020 at 09:52:53AM +0800, Zhang Yu wrote:
Title shoule be stats/crystal ....
Thanks, Zhangyu
Good!
Thanks, Yale
On Wed, Nov 25, 2020 at 07:40:21PM +0800, Zhang Yale wrote:
Make ruby2crystal convert
Signed-off-by: Zhang Yale ylzhangah@qq.com
stats/crystal/hackbench-git.cr | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 stats/crystal/hackbench-git.cr
diff --git a/stats/crystal/hackbench-git.cr b/stats/crystal/hackbench-git.cr new file mode 100644 index 00000000..214dcd02 --- /dev/null +++ b/stats/crystal/hackbench-git.cr @@ -0,0 +1,23 @@ +#!/usr/bin/env crystal
+# --------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 +# ...
+time = [] of Float64
+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