mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 12:05:41 +03:00
14 lines
299 B
TypeScript
14 lines
299 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { min as minToolkit } from 'es-toolkit/compat';
|
|
import { min as minLodash } from 'lodash';
|
|
|
|
describe('min', () => {
|
|
bench('es-toolkit/min', () => {
|
|
minToolkit([1, 2, 3]);
|
|
});
|
|
|
|
bench('lodash/min', () => {
|
|
minLodash([1, 2, 3]);
|
|
});
|
|
});
|