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