mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +03:00
8600129813
* Fix lint error * Style format * Add class, map, set
16 lines
472 B
TypeScript
16 lines
472 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { unary as unaryToolkit } from 'es-toolkit';
|
|
import { unary as unaryLodash } from 'lodash';
|
|
|
|
describe('ary', () => {
|
|
bench('es-toolkit/unary', () => {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
unaryToolkit((_a, _b, _c) => undefined);
|
|
});
|
|
|
|
bench('lodash/unary', () => {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
unaryLodash((_a, _b, _c) => undefined);
|
|
});
|
|
});
|