mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +03:00
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { camelCase as camelCaseToolkit } from 'es-toolkit';
|
|
import { camelCase as camelCaseLodash } from 'lodash';
|
|
|
|
describe('camelCase', () => {
|
|
bench('es-toolkit/camelCase', () => {
|
|
const str = 'kebab-case';
|
|
camelCaseToolkit(str);
|
|
});
|
|
|
|
bench('lodash/camelCase', () => {
|
|
const str = 'kebab-case';
|
|
camelCaseLodash(str);
|
|
});
|
|
});
|