Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137
Windows
Desktop
one year ago
forIn emptyPlainObject
74.1M/s
forIn emptyNullProtoObject
48.8M/s
objectKeys emptyPlainObject
43.1M/s
objectValues emptyPlainObject
42.8M/s
jqueryIsEmptyObject emptyNullProtoObject
34.9M/s
jqueryIsEmptyObject emptyPlainObject
24.2M/s
objectKeys emptyNullProtoObject
20.4M/s
lodashIsEmpty emptyNullProtoObject
13.3M/s
lodashIsEmpty emptyPlainObject
12.1M/s
objectValues emptyNullProtoObject
8.5M/s
objectValues mediumObject
2.3M/s
forIn mediumObject
825K/s
jqueryIsEmptyObject mediumObject
798K/s
objectValues largeObject
604K/s
objectKeys mediumObject
587K/s
lodashIsEmpty mediumObject
443K/s
jqueryIsEmptyObject largeObject
189K/s
forIn largeObject
183K/s
objectKeys largeObject
168K/s
lodashIsEmpty largeObject
143K/s
objectValues veryLargeObject
120K/s
jqueryIsEmptyObject veryLargeObject
45K/s
forIn veryLargeObject
41K/s
objectKeys veryLargeObject
36K/s
lodashIsEmpty veryLargeObject
35K/s
View exact numbers
Test name Executions per second
forIn emptyPlainObject 74,122,032 Ops/sec
forIn emptyNullProtoObject 48,843,660 Ops/sec
objectKeys emptyPlainObject 43,121,356 Ops/sec
objectValues emptyPlainObject 42,781,512 Ops/sec
jqueryIsEmptyObject emptyNullProtoObject 34,878,460 Ops/sec
jqueryIsEmptyObject emptyPlainObject 24,211,510 Ops/sec
objectKeys emptyNullProtoObject 20,439,332 Ops/sec
lodashIsEmpty emptyNullProtoObject 13,323,639 Ops/sec
lodashIsEmpty emptyPlainObject 12,104,477 Ops/sec
objectValues emptyNullProtoObject 8,490,040 Ops/sec
objectValues mediumObject 2,325,927 Ops/sec
forIn mediumObject 824,522 Ops/sec
jqueryIsEmptyObject mediumObject 798,240 Ops/sec
objectValues largeObject 603,598 Ops/sec
objectKeys mediumObject 586,900 Ops/sec
lodashIsEmpty mediumObject 443,387 Ops/sec
jqueryIsEmptyObject largeObject 188,986 Ops/sec
forIn largeObject 182,649 Ops/sec
objectKeys largeObject 168,224 Ops/sec
lodashIsEmpty largeObject 143,134 Ops/sec
objectValues veryLargeObject 119,959 Ops/sec
jqueryIsEmptyObject veryLargeObject 44,802 Ops/sec
forIn veryLargeObject 41,196 Ops/sec
objectKeys veryLargeObject 36,435 Ops/sec
lodashIsEmpty veryLargeObject 34,569 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: