2024-08-04 17:23:00 +03:00
|
|
|
import { bench, describe } from 'vitest';
|
|
|
|
import { unary as unaryToolkit } from 'es-toolkit';
|
|
|
|
import { unary as unaryLodash } from 'lodash';
|
|
|
|
|
|
|
|
describe('ary', () => {
|
|
|
|
bench('es-toolkit/unary', () => {
|
2024-08-07 12:50:42 +03:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
unaryToolkit((_a, _b, _c) => undefined);
|
2024-08-04 17:23:00 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
bench('lodash/unary', () => {
|
2024-08-07 12:50:42 +03:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
unaryLodash((_a, _b, _c) => undefined);
|
2024-08-04 17:23:00 +03:00
|
|
|
});
|
|
|
|
});
|