Test case name | Result |
---|---|
O(n2) * 100 | |
O(n2) * 100 - With Extra Map | |
O(n) * 100 | |
O(n2) * 1000 | |
O(n2) * 1000 - With Extra Map | |
O(n) * 1000 | |
O(n2) * 10000 | |
O(n2) * 10000 - With Extra Map | |
O(n) * 10000 |
Test name | Executions per second |
---|---|
O(n2) * 100 | 58174.5 Ops/sec |
O(n2) * 100 - With Extra Map | 26455.6 Ops/sec |
O(n) * 100 | 73519.1 Ops/sec |
O(n2) * 1000 | 5055.1 Ops/sec |
O(n2) * 1000 - With Extra Map | 518.3 Ops/sec |
O(n) * 1000 | 25231.6 Ops/sec |
O(n2) * 10000 | 87.1 Ops/sec |
O(n2) * 10000 - With Extra Map | 5.1 Ops/sec |
O(n) * 10000 | 1979.5 Ops/sec |