Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Uint8Array.subarray vs Uint8Array.slice
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_5_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/138.0.7204.56 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 138
Operating system:
iOS 18.5.0
Device Platform:
Mobile
Date tested:
10 months ago
Test name
Executions per second
Uint8Array.subarray
38861884.0 Ops/sec
Uint8Array.slice
31924240.0 Ops/sec
Script Preparation code:
var bytes = [84,104,105,115,32,105,115,32,97,32,115,97,109,112,108,101,32,112,97,114,97,103,114,97,112,104,46]; var bufferArray = new Uint8Array(bytes);
Tests:
Uint8Array.subarray
bufferArray.subarray(3, 13);
Uint8Array.slice
bufferArray.slice(3, 13);