good

Benchmark created on


Setup

var charSet = ["**", "bb", "cd", "**", "cc", "**", "dd", "**"];

function rpl (element) {return (element !== "**");};

Test runner

Ready to run.

Testing in
TestOps/sec
t1
var newArray = charSet.filter(function(element) {
	return (element !== "**");
})
ready
t2
var newArray = charSet.filter(rpl);
ready

Revisions

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