mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
13 lines
268 B
JavaScript
13 lines
268 B
JavaScript
import { bench, run } from "../runner.mjs";
|
|
|
|
function doIt(...args) {
|
|
// we use .at() to prevent constant folding optimizations
|
|
return args.slice().at(0);
|
|
}
|
|
|
|
bench("Array.prototype.slice.call(arguments)", () => {
|
|
return doIt(1, 2, 3, 4, 5, 6);
|
|
});
|
|
|
|
await run();
|