mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 02:33:54 +03:00
16 lines
386 B
TypeScript
16 lines
386 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { padEnd as padStartToolkit } from 'es-toolkit/compat';
|
|
import { padEnd as padStartLodash } from 'lodash';
|
|
|
|
describe('padEnd', () => {
|
|
bench('es-toolkit/padEnd', () => {
|
|
const str = 'abc';
|
|
padStartToolkit(str, 6, '_-');
|
|
});
|
|
|
|
bench('lodash/padEnd', () => {
|
|
const str = 'abc';
|
|
padStartLodash(str, 6, '_-');
|
|
});
|
|
});
|