Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
byte to hex
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0
Browser:
Firefox 152
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one month ago
string concatenation
1476.7M/s
padStart
125.6M/s
View exact numbers
Test name
Executions per second
✓
string concatenation
1,476,706,304 Ops/sec
padStart
125,569,128 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
byte = crypto.getRandomValues(new Uint8Array(1))[0]
Tests:
string concatenation
(byte < 16 ? '0' : '') + byte.toString(16)
padStart
byte.toString(16).padStart(2, '0')