Run details:
Mozilla/5.0 (iPad; CPU OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.0
Tablet
2 years ago
Test name Executions per second
Array Sort 67.8 Ops/sec
TypedArray Sort 9734.8 Ops/sec
Array Sort Custom Comparer 141.4 Ops/sec
TypedArray Sort Custom Comparer 159.6 Ops/sec
Script Preparation code:
Tests:
  • Array Sort

  • TypedArray Sort

  • Array Sort Custom Comparer

  • TypedArray Sort Custom Comparer