Skip to content

Instantly share code, notes, and snippets.

@oestrich
Last active September 19, 2019 14:57
Show Gist options
  • Save oestrich/518cef917d8a588991f9506bd97d2d30 to your computer and use it in GitHub Desktop.
Save oestrich/518cef917d8a588991f9506bd97d2d30 to your computer and use it in GitHub Desktop.

Long

Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Number of Available Cores: 8
Available memory: 61.04 GB
Elixir 1.9.0
Erlang 22.0.4

Benchmark suite executing with the following configuration:
warmup: 2 s
time: 5 s
memory time: 0 ns
parallel: 1
inputs: none specified
Estimated total run time: 14 s

Benchmarking iodata...
Benchmarking string...

Name             ips        average  deviation         median         99th %
iodata        3.35 M        0.30 μs  ±9638.29%        0.22 μs        0.48 μs
string        0.84 M        1.18 μs   ±908.35%        1.01 μs        2.06 μs

Comparison: 
iodata        3.35 M
string        0.84 M - 3.96x slower +0.88 μs

Short

Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Number of Available Cores: 8
Available memory: 61.04 GB
Elixir 1.9.0
Erlang 22.0.4

Benchmark suite executing with the following configuration:
warmup: 2 s
time: 5 s
memory time: 0 ns
parallel: 1
inputs: none specified
Estimated total run time: 14 s

Benchmarking iodata...
Benchmarking string...

Name             ips        average  deviation         median         99th %
iodata       16.59 M       60.28 ns ±27460.84%          33 ns          99 ns
string       10.85 M       92.19 ns ±29141.09%          51 ns         113 ns

Comparison: 
iodata       16.59 M
string       10.85 M - 1.53x slower +31.91 ns

Long

Operating System: macOS
CPU Information: Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Number of Available Cores: 4
Available memory: 8 GB
Elixir 1.9.0
Erlang 22.0.4

Benchmark suite executing with the following configuration:
warmup: 2 s
time: 5 s
memory time: 0 ns
parallel: 1
inputs: none specified
Estimated total run time: 14 s

Benchmarking iodata...
Benchmarking string...

Name             ips        average  deviation         median         99th %
string       72.93 M       13.71 ns ±65299.25%           0 ns           0 ns
iodata       18.46 M       54.18 ns ±72111.58%           0 ns           0 ns

Comparison:
string       72.93 M
iodata       18.46 M - 3.95x slower +40.47 ns

Short

Operating System: macOS
CPU Information: Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Number of Available Cores: 4
Available memory: 8 GB
Elixir 1.9.0
Erlang 22.0.4

Benchmark suite executing with the following configuration:
warmup: 2 s
time: 5 s
memory time: 0 ns
parallel: 1
inputs: none specified
Estimated total run time: 14 s

Benchmarking iodata...
Benchmarking string...

Name             ips        average  deviation         median         99th %
iodata        4.41 M      226.63 ns ±11207.51%           0 ns        1000 ns
string        3.88 M      257.96 ns ±10993.33%           0 ns        1000 ns

Comparison:
iodata        4.41 M
string        3.88 M - 1.14x slower +31.33 ns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment