mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +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]);
|
|
});
|
|
});
|