big string

Benchmark created on


Setup

const numbers = [];
for (let i = 0; i < 10000; i++) {
	numbers.push(Math.random())
}

Test runner

Ready to run.

Testing in
TestOps/sec
join
const parts = [];
for (const number of numbers) {
	parts.push(`${number}`)
}
parts.join()
ready
append
let s = '';
for (const number of numbers) {
	s += `${number}`;
}
ready

Revisions

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