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