negative modulo (v107)

Revision 107 of this benchmark created on


Preparation HTML

<script>
function filter(ar, h) {
	return ar.filter(a => a != h);
}
function spliceAr(ar, h) {
	const index = ar.indexOf(h);
	return index === -1 ? ar : ar.slpice(index, 1);
}

var ar = [0, 1, 2, 3, 4, 5, 6, 7, 8];
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
filter
filter(ar, 4)
ready
spliceAr
spliceAr(ar, 4)
ready

Revisions

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