Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Windows
Desktop
2 years ago
Test name Executions per second
Create holey 815021.7 Ops/sec
Create packed (push) 7769.5 Ops/sec
Create packed (assign) 8504.4 Ops/sec
Read holey 5844664.0 Ops/sec
Read packed 5861577.0 Ops/sec
Read object 5867948.0 Ops/sec
Read value 5633871.0 Ops/sec
Math 1310617984.0 Ops/sec
Create empty 10000388.0 Ops/sec
Create empty, set length 832133.4 Ops/sec
Create empty, set last 588540.2 Ops/sec
Create holey, fill 334158.5 Ops/sec
Script Preparation code:
Tests:
  • Create holey

  • Create packed (push)

  • Create packed (assign)

  • Read holey

  • Read packed

  • Read object

  • Read value

  • Math

  • Create empty

  • Create empty, set length

  • Create empty, set last

  • Create holey, fill