es-toolkit/benchmarks/performance/tail.bench.ts
2024-08-22 23:16:01 +09:00

14 lines
307 B
TypeScript

import { bench, describe } from 'vitest';
import { tail as tailToolkit } from 'es-toolkit';
import { tail as tailLodash } from 'lodash';
describe('tail', () => {
bench('es-toolkit/tail', () => {
tailToolkit([1, 2, 3, 4]);
});
bench('lodash/tail', () => {
tailLodash([1, 2, 3, 4]);
});
});