String from char testing

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
SpreadOp
spreadOp = function(arr) {
	return String.fromCharCode(...arr);
}
ready
Iterative
iterative = function(arr) {
	let bigStr = "";
	for(let i=0; i < arr.length; i++) {
		bigStr += String.fromCharCode(arr[i]);
	}
	return bigStr;
}
ready

Revisions

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