es-toolkit/benchmarks/drop.bench.ts

13 lines
312 B
TypeScript
Raw Normal View History

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