Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ mix bench
- Compiling 1 file (.ex)
- Not all of your protocols have been consolidated. In order to achieve the
- best possible accuracy for benchmarks, please ensure protocol
- consolidation is enabled in your benchmarking environment.
- Operating System: Linux
- CPU Information: Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz
- Number of Available Cores: 8
- Available memory: 15.52 GB
- Elixir 1.10.3
- Erlang 23.0
- Benchmark suite executing with the following configuration:
- warmup: 10 s
- time: 10 s
- memory time: 5 s
- parallel: 8
- inputs: Small map
- Estimated total run time: 1.25 min
- Benchmarking :maps.fold with input Small map...
- Benchmarking Enum.reduce with input Small map...
- Benchmarking IterReduce.iter_reduce with input Small map...
- ##### With input Small map #####
- Name ips average deviation median 99th %
- IterReduce.iter_reduce 285.67 K 3.50 μs ±1479.67% 2.40 μs 10.31 μs
- :maps.fold 260.79 K 3.83 μs ±1360.34% 2.80 μs 8.13 μs
- Enum.reduce 240.31 K 4.16 μs ±1074.83% 3.09 μs 9.65 μs
- Comparison:
- IterReduce.iter_reduce 285.67 K
- :maps.fold 260.79 K - 1.10x slower +0.33 μs
- Enum.reduce 240.31 K - 1.19x slower +0.66 μs
- Memory usage statistics:
- Name Memory usage
- IterReduce.iter_reduce 1.23 KB
- :maps.fold 1.29 KB - 1.04x memory usage +0.0547 KB
- Enum.reduce 1.29 KB - 1.04x memory usage +0.0547 KB
- **All measurements for memory usage were the same**
Advertisement
Add Comment
Please, Sign In to add comment