aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/noop.js
blob: 789e6abbb1905c80d5365479999d282391d93045 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { bench, run } from "mitata";

var noop = globalThis[Symbol.for("Bun.lazy")]("noop");

bench("function", function () {
  noop.function();
});

bench("setter", function () {
  noop.getterSetter = 1;
});

bench("getter", function () {
  noop.getterSetter;
});

run();