mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +03:00
28 lines
566 B
TypeScript
28 lines
566 B
TypeScript
import { unzipWith as unzipWithToolkit } from 'es-toolkit';
|
|
import { unzipWith as unzipWithLodash } from 'lodash';
|
|
import { bench, describe } from 'vitest';
|
|
|
|
describe('unzipWith', () => {
|
|
bench('es-toolkit/unzipWith', () => {
|
|
unzipWithToolkit(
|
|
[
|
|
[1000, 2000],
|
|
[3000, 4000],
|
|
[50000, 60000],
|
|
],
|
|
(a, b, c) => a + b + c
|
|
);
|
|
});
|
|
|
|
bench('lodash/unzipWith', () => {
|
|
unzipWithLodash(
|
|
[
|
|
[1000, 2000],
|
|
[3000, 4000],
|
|
[50000, 60000],
|
|
],
|
|
(a, b, c) => a + b + c
|
|
);
|
|
});
|
|
});
|