mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +03:00
20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
|
import { bench, describe } from 'vitest';
|
||
|
import { isString as isStringToolkit } from 'es-toolkit';
|
||
|
import { isString as isStringLodash } from 'lodash';
|
||
|
|
||
|
describe('isString', () => {
|
||
|
bench('es-toolkit/isString', () => {
|
||
|
isStringToolkit('');
|
||
|
isStringToolkit(true);
|
||
|
isStringToolkit(undefined);
|
||
|
isStringToolkit(123);
|
||
|
});
|
||
|
|
||
|
bench('lodash/isString', () => {
|
||
|
isStringLodash('');
|
||
|
isStringLodash(true);
|
||
|
isStringLodash(undefined);
|
||
|
isStringLodash(123);
|
||
|
});
|
||
|
});
|