mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +03:00
16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
|
import { bench, describe } from 'vitest';
|
||
|
import { lowerCase as lowerCaseToolkit } from 'es-toolkit';
|
||
|
import { lowerCase as lowerCaseLodash } from 'lodash';
|
||
|
|
||
|
describe('lowerCase', () => {
|
||
|
bench('es-toolkit/lowerCase', () => {
|
||
|
const str = 'camelCase';
|
||
|
lowerCaseToolkit(str);
|
||
|
});
|
||
|
|
||
|
bench('lodash/lowerCase', () => {
|
||
|
const str = 'camelCase';
|
||
|
lowerCaseLodash(str);
|
||
|
});
|
||
|
});
|