We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d9544 commit 95166ddCopy full SHA for 95166dd
benchmarks/large_bytes.rb
@@ -2,9 +2,8 @@
2
require 'zstd-ruby'
3
require 'securerandom'
4
5
-# source_data = ""
6
-# 512.times { source_data += SecureRandom.uuid }
7
-source_data = Random.bytes(1<<16 + 15)
+# 1<<17 だと GitHub ActionsでOOMになる
+source_data = Random.bytes(1<<16)
8
9
puts "source_data.size:#{source_data.size}"
10
@@ -16,8 +15,5 @@
16
15
unless expanded_data == source_data
17
puts "Error: expanded data does not match source data"
18
end
19
- # if i % 10 == 0
20
- puts " - #{i}: c:#{compressed_data.size} e:#{expanded_data.size} memory:#{`ps -o rss= -p #{Process.pid}`.to_i}"
21
- # end
22
-
+ puts " - #{i}: c:#{compressed_data.size} e:#{expanded_data.size} memory:#{`ps -o rss= -p #{Process.pid}`.to_i}"
23
0 commit comments