mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-29 04:34:01 +03:00
13 lines
281 B
TypeScript
13 lines
281 B
TypeScript
|
import { bench, describe } from 'vitest';
|
||
|
import { sum as sumToolkit } from 'es-toolkit';
|
||
|
import { sum as sumLodash } from 'lodash';
|
||
|
|
||
|
describe('sum', () => {
|
||
|
bench('es-toolkit', () => {
|
||
|
sumToolkit([1, 2, 3]);
|
||
|
})
|
||
|
|
||
|
bench('lodash', () => {
|
||
|
sumLodash([1, 2, 3]);
|
||
|
})
|
||
|
});
|