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

14 lines
310 B
TypeScript
Raw Normal View History

import { bench, describe } from 'vitest';
import { range as rangeToolkit } from 'es-toolkit';
import { range as rangeLodash } from 'lodash';
describe('range', () => {
bench('es-toolkit/range', () => {
rangeToolkit(0, 100, 1);
});
bench('lodash/range', () => {
rangeLodash(0, 100, 1);
});
});