mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +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);
|
|
});
|
|
});
|