Skip to content

Instantly share code, notes, and snippets.

@matiasinsaurralde
Created November 18, 2016 22:41
Show Gist options
  • Save matiasinsaurralde/8e413a0eaa0d12291f13e2759b35feaf to your computer and use it in GitHub Desktop.
Save matiasinsaurralde/8e413a0eaa0d12291f13e2759b35feaf to your computer and use it in GitHub Desktop.
Protocol Buffer Benchmarks on
* BM_perform_serialization: No arena allocation - Using optimize_for = SPEED
% ./bench
Run on (8 X 2200 MHz CPU s)
2016-11-18 19:14:25
Benchmark Time CPU Iterations
---------------------------------------------------------------
BM_perform_serialization 2109 ns 2107 ns 325317
% ./bench
Run on (8 X 2200 MHz CPU s)
2016-11-18 19:14:26
Benchmark Time CPU Iterations
---------------------------------------------------------------
BM_perform_serialization 2175 ns 2174 ns 309069
% ./bench
Run on (8 X 2200 MHz CPU s)
2016-11-18 19:14:28
Benchmark Time CPU Iterations
---------------------------------------------------------------
BM_perform_serialization 2164 ns 2162 ns 311402
Comparing:
* BM_perform_serialization: Arena allocation - Using optimize_for = LITE_RUNTIME
* BM_perform_arena_serialization: No arena allocation - Using optimize_for = LITE_RUNTIME
% ./bench
Run on (8 X 2200 MHz CPU s)
2016-11-18 19:38:46
Benchmark Time CPU Iterations
---------------------------------------------------------------------
BM_perform_serialization 1690 ns 1687 ns 428851
BM_perform_arena_serialization 1124 ns 1123 ns 613497
% ./bench
Run on (8 X 2200 MHz CPU s)
2016-11-18 19:38:49
Benchmark Time CPU Iterations
---------------------------------------------------------------------
BM_perform_serialization 1737 ns 1735 ns 411276
BM_perform_arena_serialization 1138 ns 1136 ns 626499
% ./bench
Run on (8 X 2200 MHz CPU s)
2016-11-18 19:38:52
Benchmark Time CPU Iterations
---------------------------------------------------------------------
BM_perform_serialization 1776 ns 1765 ns 426322
BM_perform_arena_serialization 1218 ns 1213 ns 549748
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment