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