6-4

Benchmark created on


Description

성능테스트의 예시입니다.

Setup

var charSet = ['**', 'bb', 'cb', '**', 'cc', '**', 'dd', '**'];

function rpl(el) {
	return el !== '**';
}

Test runner

Ready to run.

Testing in
TestOps/sec
Anonymous function
var newArray = charSet.filter(function(el) {
	return (el !== '**')
})
ready
Naming function
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.