es-toolkit/benchmarks/performance/zipObjectDeep.bench.ts
Dayong Lee 8600129813
style: Fix all lint errors (#351)
* Fix lint error

* Style format

* Add class, map, set
2024-08-07 18:50:42 +09:00

14 lines
435 B
TypeScript

import { bench, describe } from 'vitest';
import { zipObjectDeep as zipObjectDeepToolkit } from 'es-toolkit/compat';
import { zipObjectDeep as zipObjectDeepLodash } from 'lodash';
describe('zipObjectDeep', () => {
bench('es-toolkit/zipObjectDeep', () => {
zipObjectDeepToolkit(['a.b[0].c', 'a.b[1].d'], [1, 2]);
});
bench('lodash/zipObjectDeep', () => {
zipObjectDeepLodash(['a.b[0].c', 'a.b[1].d'], [1, 2]);
});
});