es-toolkit/benchmarks/performance/zip.bench.ts

14 lines
326 B
TypeScript
Raw Normal View History

2024-04-25 14:56:13 +03:00
import { bench, describe } from 'vitest';
import { zip as zipToolkit } from 'es-toolkit';
import { zip as zipLodash } from 'lodash';
describe('zip', () => {
bench('es-toolkit/zip', () => {
2024-04-25 14:56:13 +03:00
zipToolkit([1, 2, 3, 4], [3, 4, 5, 6]);
});
2024-04-25 14:56:13 +03:00
bench('lodash/zip', () => {
2024-04-25 14:56:13 +03:00
zipLodash([1, 2, 3, 4], [3, 4, 5, 6]);
});
});