parseInt

Benchmark created on


Preparation HTML

<script>
const parseInteger = (target) => target|0
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
parseInteger
for (let index = 0; index  < 900_000_000; index ++) {
	parseInteger(index)
}
ready
parseInt
for (let index = 0; index  < 900_000_000; index ++) {
	parseInt(index, 10)
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.