emptyobject

Benchmark created on


Setup

var x = {};
var y = {
	x: 1,
	z: 2,
	j: 3
}

Test runner

Ready to run.

Testing in
TestOps/sec
keys
Object.keys(x) === 0;
Object.keys(y) === 0;
ready
json
JSON.stringify(x) === '{}'
JSON.stringify(y) === '{}'
ready

Revisions

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