Skip to content

Commit 9f42770

Browse files
committed
fix: benchmarks
1 parent 8d8239c commit 9f42770

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ruby.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
working-directory: benchmarks
4444
run: |
4545
bundle install
46-
time THREADS=4 bundle exec ruby multi_thread_comporess.rb city.json
47-
time THREADS=4 bundle exec ruby multi_thread_decomporess.rb city.json
48-
time THREADS=4 bundle exec ruby multi_thread_streaming_comporess.rb city.json
49-
time THREADS=4 bundle exec ruby multi_thread_streaming_decomporess.rb city.json
46+
time -f "real %e\nuser %U\nsys %S" THREADS=4 bundle exec ruby multi_thread_comporess.rb city.json
47+
time -f "real %e\nuser %U\nsys %S" THREADS=4 bundle exec ruby multi_thread_decomporess.rb city.json
48+
time -f "real %e\nuser %U\nsys %S" THREADS=4 bundle exec ruby multi_thread_streaming_comporess.rb city.json
49+
time -f "real %e\nuser %U\nsys %S" THREADS=4 bundle exec ruby multi_thread_streaming_decomporess.rb city.json
5050
bundle exec ruby large_bytes.rb

benchmarks/large_bytes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# source_data = ""
66
# 512.times { source_data += SecureRandom.uuid }
7-
source_data = Random.bytes(1<<17 + 15)
7+
source_data = Random.bytes(1<<16 + 15)
88

99
puts "source_data.size:#{source_data.size}"
1010

0 commit comments

Comments
 (0)