es-toolkit/benchmarks/performance/unary.bench.ts
Dayong Lee 8600129813
style: Fix all lint errors (#351)
* Fix lint error

* Style format

* Add class, map, set
2024-08-07 18:50:42 +09:00

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