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 3690351.0 Ops/sec
createSet Middle 4147389.8 Ops/sec
createMap small 4354207.5 Ops/sec
createSet small 4444979.0 Ops/sec
createMap BIG 4339735.0 Ops/sec
createSet BIG 4481018.5 Ops/sec
remove from array 9945576.0 Ops/sec
remove from map 13849493.0 Ops/sec
remove from set 13554056.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