Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15
Safari 18
Mac OS X 10.15.7
Desktop
4 days ago
Test name Executions per second
array sort 1149.9 Ops/sec
typedArray sort 38877.2 Ops/sec
array i/o 121869.5 Ops/sec
typedArray i/o 228000.0 Ops/sec
typedArray i/o w convert back to array 3768.9 Ops/sec
create arrays 10974.8 Ops/sec
create typed arrays 2232.9 Ops/sec
create typed arrays in typed array 335.4 Ops/sec
Script Preparation code:
Tests:
  • array sort

  • typedArray sort

  • array i/o

  • typedArray i/o

  • typedArray i/o w convert back to array

  • create arrays

  • create typed arrays

  • create typed arrays in typed array