mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +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);
|
|
});
|
|
});
|