es-toolkit/benchmarks/performance/unary.bench.ts
D-Sketon ec1a55850c
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
feat(ary/unary): implement ary/unary (#325)
* feat(ary/unary): implement ary/unary

* fix

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-08-04 23:23:00 +09:00

14 lines
334 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', () => {
unaryToolkit((a, b, c) => undefined);
});
bench('lodash/unary', () => {
unaryLodash((a, b, c) => undefined);
});
});