Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
O(n2) * 100 101596.9 Ops/sec
O(n2) * 100 - With Extra Map 31256.1 Ops/sec
O(n) * 100 147020.3 Ops/sec
O(n2) * 1000 5668.4 Ops/sec
O(n2) * 1000 - With Extra Map 532.8 Ops/sec
O(n) * 1000 22992.3 Ops/sec
O(n2) * 10000 90.3 Ops/sec
O(n2) * 10000 - With Extra Map 5.3 Ops/sec
O(n) * 10000 2057.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • 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


;