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: 8
- 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 %
- Enum.reduce 1.09 917.60 ms ±15.64% 911.89 ms 1224.08 ms
- IterReduce.iter_reduce 1.07 935.28 ms ±17.72% 934.53 ms 1241.06 ms
- :maps.fold 1.06 940.14 ms ±15.81% 935.02 ms 1249.78 ms
- Comparison:
- Enum.reduce 1.09
- IterReduce.iter_reduce 1.07 - 1.02x slower +17.68 ms
- :maps.fold 1.06 - 1.02x slower +22.53 ms
- Memory usage statistics:
- Name Memory usage
- Enum.reduce 114.39 MB
- IterReduce.iter_reduce 114.46 MB - 1.00x memory usage +0.0718 MB
- :maps.fold 114.41 MB - 1.00x memory usage +0.0214 MB
- **All measurements for memory usage were the same**
Advertisement
Add Comment
Please, Sign In to add comment