mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 12:05:41 +03:00
14 lines
423 B
TypeScript
14 lines
423 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { differenceBy as differenceByToolkit } from 'es-toolkit';
|
|
import { differenceBy as differenceByLodash } from 'lodash';
|
|
|
|
describe('differenceBy', () => {
|
|
bench('es-toolkit/differenceBy', () => {
|
|
differenceByToolkit([1.2, 2.3, 3.4], [1.2], Math.floor);
|
|
});
|
|
|
|
bench('lodash/differenceBy', () => {
|
|
differenceByLodash([1.2, 2.3, 3.4], [1.2], Math.floor);
|
|
});
|
|
});
|