Hackfut Security File Manager
Current Path:
/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/msgpack-1.2.9/bench
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.4.0
/
gems
/
msgpack-1.2.9
/
bench
/
📁
..
📄
pack.rb
(545 B)
📄
pack_log.rb
(905 B)
📄
pack_log_long.rb
(1.79 KB)
📄
pack_symbols.rb
(656 B)
📄
run.sh
(363 B)
📄
run_long.sh
(787 B)
📄
run_symbols.sh
(603 B)
📄
unpack.rb
(459 B)
📄
unpack_log.rb
(946 B)
📄
unpack_log_long.rb
(1.83 KB)
Editing: pack.rb
require 'viiite' require 'msgpack' data = { 'hello' => 'world', 'nested' => ['structure', {value: 42}] } data_sym = { hello: 'world', nested: ['structure', {value: 42}] } data = MessagePack.pack(:hello => 'world', :nested => ['structure', {:value => 42}]) Viiite.bench do |b| b.range_over([10_000, 100_000, 1000_000], :runs) do |runs| b.report(:strings) do runs.times do MessagePack.pack(data) end end b.report(:symbols) do runs.times do MessagePack.pack(data_sym) end end end end
Upload File
Create Folder