Code Monkey home page Code Monkey logo

deno-simple-server's Introduction

deno-simple-server

A very simple HTTP server with Deno and a single worker

The server will be launched on the 1111 port

You can launch the server on any port if you specify it:

export PORT=1111

Deploy

git clone https://github.com/peterdee/deno-simple-server
cd ./deno-simple-server

Launch

deno run --allow-net --allow-env --allow-read --unstable server.ts

Benchmarking

Tested with wrk

peter: ~/Playground $ wrk -c 100 -d 30 -t 4 http://127.0.0.1:1111
Running 30s test @ http://127.0.0.1:1111
  4 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.63ms    1.92ms 108.65ms   91.56%
    Req/Sec     6.99k   813.61     8.20k    87.42%
  835261 requests in 30.02s, 50.18MB read
Requests/sec:  27826.33
Transfer/sec:      1.67MB

deno-simple-server's People

Contributors

peterdee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.