mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-29 04:34:01 +03:00
13 lines
444 B
TypeScript
13 lines
444 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { isMatch as isMatchToolkit } from 'es-toolkit/compat';
|
|
import { isMatch as isMatchLodash } from 'lodash';
|
|
|
|
describe('isMatch', () => {
|
|
bench('es-toolkit/isMatch', () => {
|
|
isMatchToolkit({ a: { b: { c: 1, d: 2 }, e: 3 }, f: 4 }, { a: { b: { c: 1 } } });
|
|
});
|
|
bench('lodash/isMatch', () => {
|
|
isMatchLodash({ a: { b: { c: 1, d: 2 }, e: 3 }, f: 4 }, { a: { b: { c: 1 } } });
|
|
});
|
|
});
|