Test Object.keys

Benchmark created on


Description

filters test

Setup


var filters ={
	
};

Test runner

Ready to run.

Testing in
TestOps/sec
Test

function chkfilters(filters) {
	return filters && Object.keys(filters).length > 0;
}
chkfilters(filters);
ready
Test mod proto

function chkfilters(filters) {
	return Object.keys(filters || {}).length;
}
chkfilters(filters);
ready

Revisions

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