Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic benchmarks to set a baseline (#17)
I figure these benchmarks are good to have as a baseline. ``` Operating System: Linux CPU Information: AMD Ryzen 9 5900X 12-Core Processor Number of Available Cores: 24 Available memory: 125.72 GB Elixir 1.14.0 Erlang 25.0.4 Benchmark suite executing with the following configuration: warmup: 1 s time: 5 s memory time: 2 s reduction time: 2 s parallel: 1 inputs: none specified Estimated total run time: 1.17 min Benchmarking map_multiplcation ... Benchmarking nested_filter_comparison ... Benchmarking reduce_list_and_accumulate ... Benchmarking resolving_nested_value ... Benchmarking resolving_value ... Benchmarking simple_equals_equal ... Benchmarking simple_equals_not_equal ... Name ips average deviation median 99th % resolving_nested_value 1653.02 K 0.60 μs ±4165.86% 0.55 μs 0.78 μs resolving_value 1424.66 K 0.70 μs ±3379.18% 0.65 μs 0.84 μs simple_equals_not_equal 640.97 K 1.56 μs ±1441.87% 1.46 μs 1.89 μs simple_equals_equal 616.39 K 1.62 μs ±1537.39% 1.58 μs 1.84 μs map_multiplcation 348.05 K 2.87 μs ±986.31% 2.69 μs 3.67 μs nested_filter_comparison 256.74 K 3.89 μs ±531.92% 3.62 μs 4.75 μs reduce_list_and_accumulate 160.26 K 6.24 μs ±225.73% 4.59 μs 8.15 μs Comparison: resolving_nested_value 1653.02 K resolving_value 1424.66 K - 1.16x slower +0.0970 μs simple_equals_not_equal 640.97 K - 2.58x slower +0.96 μs simple_equals_equal 616.39 K - 2.68x slower +1.02 μs map_multiplcation 348.05 K - 4.75x slower +2.27 μs nested_filter_comparison 256.74 K - 6.44x slower +3.29 μs reduce_list_and_accumulate 160.26 K - 10.31x slower +5.63 μs Memory usage statistics: Name Memory usage resolving_nested_value 192 B resolving_value 128 B - 0.67x memory usage -64 B simple_equals_not_equal 784 B - 4.08x memory usage +592 B simple_equals_equal 784 B - 4.08x memory usage +592 B map_multiplcation 2320 B - 12.08x memory usage +2128 B nested_filter_comparison 4672 B - 24.33x memory usage +4480 B reduce_list_and_accumulate 2880 B - 15.00x memory usage +2688 B **All measurements for memory usage were the same** Reduction count statistics: Name Reduction count resolving_nested_value 0.0340 K resolving_value 4 K - 117.65x reduction count +3.97 K simple_equals_not_equal 4.05 K - 119.06x reduction count +4.01 K simple_equals_equal 4.05 K - 119.15x reduction count +4.02 K map_multiplcation 0.31 K - 9.03x reduction count +0.27 K nested_filter_comparison 0.42 K - 12.47x reduction count +0.39 K reduce_list_and_accumulate 20.05 K - 589.74x reduction count +20.02 K **All measurements for reduction count were the same** ```
- Loading branch information