diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-10-24 22:19:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 23:19:58 +0200 |
commit | fd8bf0827104407dca12fa57259a0d32380adcd5 (patch) | |
tree | 2432b0e08fabc050910446d043d93243610b1e1b /cli/bench/http/deno_reactdom_ssr_flash.jsx | |
parent | 09e36d41b007604378525828047085cbaa7b948c (diff) |
bench: remove http benchmarks (#26484)
These benchmarks run on GitHub Actions and are extremely noisy, thus
not providing much value.
Diffstat (limited to 'cli/bench/http/deno_reactdom_ssr_flash.jsx')
-rw-r--r-- | cli/bench/http/deno_reactdom_ssr_flash.jsx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cli/bench/http/deno_reactdom_ssr_flash.jsx b/cli/bench/http/deno_reactdom_ssr_flash.jsx deleted file mode 100644 index eaabf8912..000000000 --- a/cli/bench/http/deno_reactdom_ssr_flash.jsx +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. - -import { renderToReadableStream } from "https://esm.run/react-dom/server"; -import * as React from "https://esm.run/react"; -const { serve } = Deno; -const addr = Deno.args[0] || "127.0.0.1:4500"; -const [hostname, port] = addr.split(":"); - -const App = () => ( - <html> - <body> - <h1>Hello World</h1> - </body> - </html> -); - -const headers = { - headers: { - "Content-Type": "text/html", - }, -}; - -serve({ hostname, port: Number(port) }, async () => { - return new Response(await renderToReadableStream(<App />), headers); -}); |