mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 12:05:41 +03:00
20 lines
410 B
TypeScript
20 lines
410 B
TypeScript
|
import { bench, describe } from 'vitest';
|
||
|
import { unzip as unzipToolkit } from 'es-toolkit';
|
||
|
import { unzip as unzipLodash } from 'lodash';
|
||
|
|
||
|
describe('unzip, small arrays', () => {
|
||
|
bench('es-toolkit/unzip', () => {
|
||
|
unzipToolkit([
|
||
|
['a', 1, true],
|
||
|
['b', 2, false],
|
||
|
]);
|
||
|
});
|
||
|
|
||
|
bench('lodash/unzip', () => {
|
||
|
unzipLodash([
|
||
|
['a', 1, true],
|
||
|
['b', 2, false],
|
||
|
]);
|
||
|
});
|
||
|
});
|