aboutsummaryrefslogtreecommitdiff
path: root/bench/react-hello-world.deno.jsx
diff options
context:
space:
mode:
authorGravatar evan <github@evan.lol> 2022-07-12 04:40:12 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-12 01:40:12 -0700
commita9e4ff2029a769737982fcf7e0b7d76d35cf35e4 (patch)
tree497832408d926e2bed779fcec4ba655624a29792 /bench/react-hello-world.deno.jsx
parent7eea306b0ff46a27f134809a9b3c12bf4b38fa7e (diff)
downloadbun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.tar.gz
bun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.tar.zst
bun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.zip
cleanup benchmarks folder (#587)
* cleanup benchmarks * run prettier
Diffstat (limited to 'bench/react-hello-world.deno.jsx')
-rw-r--r--bench/react-hello-world.deno.jsx25
1 files changed, 0 insertions, 25 deletions
diff --git a/bench/react-hello-world.deno.jsx b/bench/react-hello-world.deno.jsx
deleted file mode 100644
index df4eb3cc9..000000000
--- a/bench/react-hello-world.deno.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { renderToReadableStream } from "https://esm.run/react-dom/server";
-import { serve } from "https://deno.land/std@0.146.0/http/server.ts";
-import * as React from "https://esm.run/react";
-
-const App = () => (
- <html>
- <body>
- <h1>Hello World</h1>
- </body>
- </html>
-);
-
-const headers = {
- headers: {
- "Content-Type": "text/html",
- "Cache-Control": "no-transform" // disables response body auto compression, see https://deno.land/manual/runtime/http_server_apis#automatic-body-compression
- },
-};
-
-await serve(
- async (req) => {
- return new Response(await renderToReadableStream(<App />), headers);
- },
- { port: 8080 }
-);