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: 30 s
- memory time: 5 s
- parallel: 1
- inputs: Large map
- Estimated total run time: 2.25 min
- Benchmarking :maps.fold with input Large map...
- Benchmarking Enum.reduce with input Large map...
- Benchmarking IterReduce.iter_reduce with input Large map...
- ##### With input Large map #####
- Name ips average deviation median 99th %
- IterReduce.iter_reduce 3.53 283.18 ms ±17.52% 289.68 ms 402.31 ms
- :maps.fold 3.30 303.22 ms ±12.54% 299.51 ms 376.28 ms
- Enum.reduce 3.29 304.38 ms ±13.85% 305.96 ms 385.31 ms
- Comparison:
- IterReduce.iter_reduce 3.53
- :maps.fold 3.30 - 1.07x slower +20.04 ms
- Enum.reduce 3.29 - 1.07x slower +21.20 ms
- Memory usage statistics:
- Name Memory usage
- IterReduce.iter_reduce 114.46 MB
- :maps.fold 114.41 MB - 1.00x memory usage -0.05033 MB
- Enum.reduce 114.39 MB - 1.00x memory usage -0.07177 MB
- **All measurements for memory usage were the same**
Advertisement
Add Comment
Please, Sign In to add comment