es-toolkit/benchmarks/range.bench.ts
Changwan 41a3008984
feat(range): Add range function (#77)
* wip range

* feat(range):  range function

* chore(range): update bench name

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-06-28 21:26:27 +09:00

14 lines
310 B
TypeScript

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);
});
});