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