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_symbols.rb
require 'viiite' require 'msgpack' data = :symbol Viiite.bench do |b| b.variation_point :branch, `git rev-parse --abbrev-ref HEAD` b.range_over([:symbol, :none], :reg_type) do |reg_type| packer = MessagePack::Packer.new packer.register_type(0x00, Symbol, :to_msgpack_ext) if reg_type == :symbol b.range_over([100_000, 1_000_000, 10_000_000], :count) do |count| packer.clear b.report(:multi_run) do count.times do packer.pack(data) end end packer.clear items_data = [].fill(data, 0, count) b.report(:large_run) do packer.pack(items_data) end end end end
Upload File
Create Folder