Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
pad start many zeros
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
while
1308.7M/s
padStart
130.7M/s
repeat
14.1M/s
View exact numbers
Test name
Executions per second
✓
while
1,308,748,288 Ops/sec
padStart
130,657,272 Ops/sec
repeat
14,055,533 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let str = '27644437'; let pad = ''
Tests:
padStart
str = str.padStart(1000, '0');
repeat
pad = '0'.repeat(999) + str;
while
while (str.length < 1008) { str = '0' + str }