mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 12:05:41 +03:00
14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
|
import { bench, describe } from 'vitest';
|
||
|
import { zipObject as zipObjectToolkit } from 'es-toolkit';
|
||
|
import { zipObject as zipObjectLodash } from 'lodash';
|
||
|
|
||
|
describe('zipObject', () => {
|
||
|
bench('es-toolkit/zipObject', () => {
|
||
|
zipObjectToolkit([1, 2, 3, 4], ['a', 'b', 'c', 'd']);
|
||
|
});
|
||
|
|
||
|
bench('lodash/zipObject', () => {
|
||
|
zipObjectLodash([1, 2, 3, 4], ['a', 'b', 'c', 'd']);
|
||
|
});
|
||
|
});
|