mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +03:00
14 lines
310 B
TypeScript
14 lines
310 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { round as roundToolkit } from 'es-toolkit';
|
|
import { round as roundLodash } from 'lodash';
|
|
|
|
describe('round', () => {
|
|
bench('es-toolkit/round', () => {
|
|
roundToolkit(1.2345, 2);
|
|
});
|
|
|
|
bench('lodash/round', () => {
|
|
roundLodash(1.2345, 2);
|
|
});
|
|
});
|