aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/http-hello.js
diff options
context:
space:
mode:
Diffstat (limited to 'bench/snippets/http-hello.js')
-rw-r--r--bench/snippets/http-hello.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bench/snippets/http-hello.js b/bench/snippets/http-hello.js
new file mode 100644
index 000000000..f92f303f4
--- /dev/null
+++ b/bench/snippets/http-hello.js
@@ -0,0 +1,7 @@
+var i = 0;
+export default {
+ fetch(req) {
+ if (i++ === 200_000 - 1) queueMicrotask(() => process.exit(0));
+ return new Response("Hello, World!" + i);
+ },
+};