es-toolkit/benchmarks/tail.bench.ts
Lich 27b6c8f521
feat(tail): add tail function (#143)
* feat(tail): add tail function

* feat(tail): add tail test code

* feat(tail): add tail benchmark

* feat(tail): add tail docs

* Update docs/ko/reference/array/tail.md

* Update docs/ko/reference/array/tail.md

* Update docs/reference/array/tail.md

* Update docs/reference/array/tail.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-10 09:52:12 +09:00

14 lines
305 B
TypeScript

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