Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
createMap Middle 3537684.5 Ops/sec
createSet Middle 4031577.2 Ops/sec
createMap small 3964593.2 Ops/sec
createSet small 4105140.2 Ops/sec
createMap BIG 4015378.8 Ops/sec
createSet BIG 3445329.0 Ops/sec
remove from array 9933735.0 Ops/sec
remove from map 12726327.0 Ops/sec
remove from set 13269979.0 Ops/sec
Script Preparation code:
Tests:
  • createMap Middle

  • createSet Middle

  • createMap small

  • createSet small

  • createMap BIG

  • createSet BIG

  • remove from array

  • remove from map

  • remove from set