Skip to content

Instantly share code, notes, and snippets.

@wyukawa
Created July 5, 2017 06:16
Show Gist options
  • Save wyukawa/1d7ce29449dfdeaff0ce2d6e5e8a8f34 to your computer and use it in GitHub Desktop.
Save wyukawa/1d7ce29449dfdeaff0ce2d6e5e8a8f34 to your computer and use it in GitHub Desktop.
yajl
```
==================================
Mode: cpu(1000)
Samples: 18273 (14.76% miss rate)
GC: 5962 (32.63%)
==================================
TOTAL (pct) SAMPLES (pct) FRAME
20057 (109.8%) 4698 (25.7%) Fluent::ElasticsearchOutput#write_objects
4348 (23.8%) 4348 (23.8%) Yajl::Encoder.encode
4716 (25.8%) 365 (2.0%) Fluent::ElasticsearchOutput#append_record_to_messages
235 (1.3%) 235 (1.3%) IO#read_nonblock
183 (1.0%) 183 (1.0%) URI::RFC2396_Parser#initialize_regexp
541 (3.0%) 112 (0.6%) Fluent::MonitorAgentInput#get_monitor_info
111 (0.6%) 111 (0.6%) IO#write_nonblock
308 (1.7%) 109 (0.6%) #<Module:0x007f168eaf9320>.labels
95 (0.5%) 95 (0.5%) MultiJson::Adapters::Yajl#load
19008 (104.0%) 85 (0.5%) Fluent::BufferChunk#msgpack_each
231 (1.3%) 82 (0.4%) Excon::Socket#read_nonblock
296 (1.6%) 79 (0.4%) Excon::Connection#request_call
347 (1.9%) 75 (0.4%) Fluent::ElasticsearchOutput#configure
62 (0.3%) 62 (0.3%) #<Module:0x007f168eaf9320>.escape
61 (0.3%) 61 (0.3%) Fluent::OutputThread#cond_wait
10943 (59.9%) 54 (0.3%) Fluent::OutputThread#run
154 (0.8%) 51 (0.3%) Prometheus::Client::Metric#values
48 (0.3%) 48 (0.3%) MonitorMixin#mon_enter
403 (2.2%) 46 (0.3%) Excon::Response.parse
10870 (59.5%) 44 (0.2%) Fluent::BufferedOutput#try_flush
44 (0.2%) 44 (0.2%) Fluent::FileBufferChunk#purge
138 (0.8%) 42 (0.2%) Excon::Socket#readline
38 (0.2%) 38 (0.2%) Excon::Socket#select_with_timeout
75 (0.4%) 38 (0.2%) Prometheus::Client::Gauge#set
35 (0.2%) 35 (0.2%) URI::RFC3986_Parser#split
34 (0.2%) 34 (0.2%) Fluent::BasicBuffer#queue_size
37 (0.2%) 33 (0.2%) Prometheus::Client::LabelSetValidator#validate
31 (0.2%) 31 (0.2%) #<Module:0x007f168eaf9320>.metric
24 (0.1%) 24 (0.1%) Fluent::FileBufferChunk#<<
1013 (5.5%) 23 (0.1%) Coolio::Loop#run
```
oj
```
==================================
Mode: cpu(1000)
Samples: 19297 (7.00% miss rate)
GC: 5225 (27.08%)
==================================
TOTAL (pct) SAMPLES (pct) FRAME
18939 (98.1%) 6304 (32.7%) Fluent::ElasticsearchOutput#write_objects
2206 (11.4%) 2206 (11.4%) Fluent::ElasticsearchOutput#append_record_to_messages
1715 (8.9%) 356 (1.8%) Fluent::MonitorAgentInput#get_monitor_info
347 (1.8%) 347 (1.8%) IO#read_nonblock
866 (4.5%) 270 (1.4%) #<Module:0x007fe6f7d34038>.labels
251 (1.3%) 251 (1.3%) URI::RFC2396_Parser#initialize_regexp
201 (1.0%) 201 (1.0%) #<Module:0x007fe6f7d34038>.escape
188 (1.0%) 188 (1.0%) Fluent::OutputThread#cond_wait
185 (1.0%) 185 (1.0%) IO#write_nonblock
11243 (58.3%) 181 (0.9%) Fluent::OutputThread#run
468 (2.4%) 156 (0.8%) Prometheus::Client::Metric#values
17358 (90.0%) 155 (0.8%) Fluent::BufferChunk#msgpack_each
144 (0.7%) 144 (0.7%) MonitorMixin#mon_enter
124 (0.6%) 124 (0.6%) Fluent::BasicBuffer#queue_size
124 (0.6%) 124 (0.6%) MultiJson::Adapters::Oj#load
10970 (56.8%) 123 (0.6%) Fluent::BufferedOutput#try_flush
243 (1.3%) 121 (0.6%) Prometheus::Client::Gauge#set
481 (2.5%) 113 (0.6%) Excon::Connection#request_call
121 (0.6%) 109 (0.6%) Prometheus::Client::LabelSetValidator#validate
286 (1.5%) 90 (0.5%) Excon::Socket#read_nonblock
83 (0.4%) 83 (0.4%) #<Module:0x007fe6f7d34038>.metric
78 (0.4%) 78 (0.4%) Fluent::FileBufferChunk#purge
1750 (9.1%) 71 (0.4%) Fluent::ElasticsearchOutput#send_bulk
66 (0.3%) 66 (0.3%) URI::RFC3986_Parser#split
62 (0.3%) 62 (0.3%) Excon::Socket#select_with_timeout
518 (2.7%) 61 (0.3%) Excon::Response.parse
660 (3.4%) 59 (0.3%) #<Module:0x007fe6f7d34038>.representation
104 (0.5%) 53 (0.3%) Fluent::PluginClass#lookup_name_from_class
1895 (9.8%) 48 (0.2%) Coolio::Loop#run
193 (1.0%) 44 (0.2%) Excon::Socket#readline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment