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: 1
- 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 748.84 K 1.34 μs ±2768.76% 0.94 μs 2.97 μs
- :maps.fold 674.12 K 1.48 μs ±2657.87% 1.08 μs 3.33 μs
- Enum.reduce 639.52 K 1.56 μs ±2401.52% 1.19 μs 3.27 μs
- Comparison:
- IterReduce.iter_reduce 748.84 K
- :maps.fold 674.12 K - 1.11x slower +0.148 μs
- Enum.reduce 639.52 K - 1.17x slower +0.23 μ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