es-toolkit/benchmarks/unzip.bench.ts
seunghee 208cb09c8b
feat(unzip): add unzip (#130)
* feat: unzip function

* test: unzip test

* chore: unzip bench

* docs: unzip

* docs: unzip

* docs: unzip

* Update src/array/unzip.ts

* Update docs/ko/reference/array/unzip.md

* Update src/array/unzip.ts

* Update docs/reference/array/unzip.md

* Update unzip.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-08 21:35:45 +09:00

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],
]);
});
});