Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
ArrayBuffer.slice vs Uint8Array.slice
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Browser:
Chrome 129
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
ArrayBuffer.slice
4629817.0 Ops/sec
Uint8Array.slice
18173438.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 buffer = new ArrayBuffer(bytes); var bufferArray = new Uint8Array(bytes);
Tests:
ArrayBuffer.slice
buffer.slice(3, 13);
Uint8Array.slice
bufferArray.slice(3, 13);