mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +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']);
|
|
});
|
|
});
|