mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +03:00
14 lines
307 B
TypeScript
14 lines
307 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { head as headToolkit } from 'es-toolkit';
|
|
import { head as headLodash } from 'lodash';
|
|
|
|
describe('head', () => {
|
|
bench('es-toolkit/head', () => {
|
|
headToolkit([1, 2, 3, 4]);
|
|
});
|
|
|
|
bench('lodash/head', () => {
|
|
headLodash([1, 2, 3, 4]);
|
|
});
|
|
});
|