mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 02:33:54 +03:00
14 lines
318 B
TypeScript
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);
|
|
});
|
|
});
|