Hacker News new | ask | show | jobs
by obviyus 1381 days ago
Great update! I wonder if Fresh plans to use Deno's (new) HTTP server[1]. Benchmarks for that look incredible (compared to Express).

Off-topic but how does the video[2] under Preact Dev Tools look so sharp yet only weight 43KB? Edit: nevermind, the downloaded file's 2.9MB. Must be something up with Chrome's network tab.

[1]: https://deno.com/blog/v1.25#new-experimental-http-server-api

[2]: https://deno.com/fresh-1.1/preact_devtools.mp4

1 comments

You also need to pass a `experimentalDenoServe: true` option in the options bag passed to `start()` in your `main.ts` file.

I forgot to add this to the post initially. Have retroactively added it now :)

Are there any benchmarks with the new server yet? Would be keen to see how it compares to the existing server as benchmarking on my machine showed a significant improvement over the existing http server in stdlib.