es-toolkit/benchmarks/performance/negate.bench.ts

14 lines
312 B
TypeScript
Raw Normal View History

import { bench, describe } from 'vitest';
import { negate as negateToolkit } from 'es-toolkit';
import { negate as negateLodash } from 'lodash';
describe('compact', () => {
bench('es-toolkit', () => {
negateToolkit(() => true)();
});
bench('lodash', () => {
negateLodash(() => true)();
});
});