msgpack 1.5.3
“MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages like…”
Backtick shell command-substitution syntaxBasename is uppercase README.md
SHA-256e7f16a698fb6cc695a0c043b3f1740e20b91b8310ffe1ea7c695ed09ae4f0e2f
Evidence
1source 'https://rubygems.org/'
2
3gemspec
⋯6 lines
1# viiite report --regroup bench,threads bench/pack_log_long.rb
2
3require 'viiite'
4require 'msgpack'
5
6data_plain = { 'message' => '127.0.0.1 - - [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"' }
7data_structure = {
8 'remote_host' => '127.0.0.1',
9 'remote_user' => '-',
10 'date' => '10/Oct/2000:13:55:36 -0700',
11 'request' => 'GET /apache_pb.gif HTTP/1.0',
12 'method' => 'GET',
13 'path' => '/apache_pb.gif',
14 'protocol' => 'HTTP/1.0',
15 'status' => 200,
16 'bytes' => 2326,
17 'referer' => 'http://www.example.com/start.html',
18 'agent' => 'Mozilla/4.08 [en] (Win98; I ;Nav)',
19}
⋯7 lines
27 end_at = Time.now + seconds
28 threads.times do
29 t = Thread.new do
30 packs = 0
31 while Time.now < end_at
⋯5 lines
37 packs
38 end
39 ths.push t
40 end
41 sum = ths.reduce(0){|r,t| r + t.value }
⋯7 lines
1require 'viiite'
2require 'msgpack'
3
4data_plain = MessagePack.pack({ 'message' => '127.0.0.1 - - [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"' })
5
6data_structure = MessagePack.pack({
7 'remote_host' => '127.0.0.1',
8 'remote_user' => '-',
9 'date' => '10/Oct/2000:13:55:36 -0700',
10 'request' => 'GET /apache_pb.gif HTTP/1.0',
11 'method' => 'GET',
12 'path' => '/apache_pb.gif',
13 'protocol' => 'HTTP/1.0',
14 'status' => 200,
15 'bytes' => 2326,
16 'referer' => 'http://www.example.com/start.html',
17 'agent' => 'Mozilla/4.08 [en] (Win98; I ;Nav)',
18})
⋯16 lines
1require "set"
2
3if ENV['SIMPLE_COV']
4 require 'simplecov'
5 SimpleCov.start do
6 add_filter 'spec/'
⋯8 lines
15end
16
17require 'msgpack'
18require "msgpack/bigint"
19
20if GC.respond_to?(:verify_compaction_references)
21 # This method was added in Ruby 3.0.0. Calling it this way asks the GC to
22 # move objects around, helping to find object movement bugs.
23 begin
⋯25 lines
Showing the top 5 files — 2 more files (14 regions) not shown.
No evidence locations were recorded for this file. Raw result