es-toolkit/benchmarks/xor.bench.ts

13 lines
315 B
TypeScript
Raw Normal View History

2024-04-25 14:56:13 +03:00
import { bench, describe } from 'vitest';
import { xor as xorToolkit } from 'es-toolkit';
import { xor as xorLodash } from 'lodash';
describe('xor', () => {
bench('es-toolkit', () => {
xorToolkit([1, 2, 3, 4], [3, 4, 5, 6]);
})
bench('lodash', () => {
xorLodash([1, 2, 3, 4], [3, 4, 5, 6]);
})
});