mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +03:00
14 lines
365 B
TypeScript
14 lines
365 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { difference as differenceToolkit } from 'es-toolkit';
|
|
import { difference as differenceLodash } from 'lodash';
|
|
|
|
describe('difference', () => {
|
|
bench('es-toolkit/difference', () => {
|
|
differenceToolkit([1, 2, 3], [2]);
|
|
});
|
|
|
|
bench('lodash/difference', () => {
|
|
differenceLodash([1, 2, 3], [2]);
|
|
});
|
|
});
|