es-toolkit/benchmarks/performance/inRange.bench.ts
2024-07-17 11:47:39 +09:00

14 lines
318 B
TypeScript

import { bench, describe } from 'vitest';
import { inRange as inRangeToolkit } from 'es-toolkit';
import { inRange as inRangeLodash } from 'lodash';
describe('inRange', () => {
bench('es-toolkit/inRange', () => {
inRangeToolkit(3, 5);
});
bench('lodash/inRange', () => {
inRangeLodash(3, 5);
});
});