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