mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +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]);
|
|
});
|
|
});
|