Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: 1.1.5
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.218 kB
require 'benchmark'
def bench_pack(bm)
large_str_ary = ["X" * 2_000_000]
bm.report("pack('m'), large string") do
large_str_ary.pack('m')
end
end
if $0 == __FILE__
Benchmark.bmbm {|bm| bench_pack(bm)}
end
Jump to Line
Something went wrong with that request. Please try again.