summaryrefslogtreecommitdiff
path: root/benchmark/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/fixtures')
-rw-r--r--benchmark/fixtures/require-cachable.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmark/fixtures/require-cachable.js b/benchmark/fixtures/require-cachable.js
new file mode 100644
index 0000000000..f651728dc7
--- /dev/null
+++ b/benchmark/fixtures/require-cachable.js
@@ -0,0 +1,13 @@
+'use strict';
+
+const list = require('internal/bootstrap/cache');
+const {
+ isMainThread
+} = require('worker_threads');
+
+for (const key of list.cachableBuiltins) {
+ if (!isMainThread && key === 'trace_events') {
+ continue;
+ }
+ require(key);
+}