Run details:
Mozilla/5.0 (Linux; Android 8.1.0; M1852 Build/OPM1.171019.026) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android 8.1.0
Mobile
one year ago
TypedArray.reverse()
97K/s
Array.reverse()
22K/s
TypedArray.sort()
10K/s
Array.sort()
178/s
TypedArray[i] (sequential)
162/s
Array[i] (sequential)
154/s
TypedArray[i] (random)
55/s
Array[i] (random)
52/s
Array.toSorted()
0/s
TypedArray.toSorted()
0/s
View exact numbers
Test name Executions per second
TypedArray.reverse() 97,001 Ops/sec
Array.reverse() 21,957 Ops/sec
TypedArray.sort() 9,915 Ops/sec
Array.sort() 178 Ops/sec
TypedArray[i] (sequential) 162 Ops/sec
Array[i] (sequential) 154 Ops/sec
TypedArray[i] (random) 55 Ops/sec
Array[i] (random) 52 Ops/sec
Array.toSorted() 0 Ops/sec
TypedArray.toSorted() 0 Ops/sec
Script Preparation code:
Tests: