es-toolkit/benchmarks/xor.bench.ts
Minsoo Kim cf65b2c601
style(*): Setup prettier and apply formatting (#24)
* chore: add prettierrc

* chore: apply format with prettier config

* chore: eslint error fix
2024-06-04 17:19:26 +09:00

14 lines
318 B
TypeScript

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]);
});
});