diff --git a/benchmarks/object/isEmptyRecord.bench.ts b/benchmarks/object/isEmptyRecord.bench.ts index 46bb1e84..f09b0d2e 100644 --- a/benchmarks/object/isEmptyRecord.bench.ts +++ b/benchmarks/object/isEmptyRecord.bench.ts @@ -14,3 +14,13 @@ describe('isEmptyRecord', () => { isEmptyRecord({ a: 1, b: 2, c: 3 }) }) }) + +describe('Object.keys comparison', () => { + bench('empty object', () => { + Object.keys({}).length === 0 + }) + + bench('object with one property', () => { + Object.keys({ a: 1 }).length === 0 + }) +})