Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kutayzorlu/ab6c91cb45d35d2489c401384c0e0e2b to your computer and use it in GitHub Desktop.
Save kutayzorlu/ab6c91cb45d35d2489c401384c0e0e2b to your computer and use it in GitHub Desktop.

Revisions

  1. @diegopacheco diegopacheco revised this gist Jan 25, 2020. No changes.
  2. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion actix_netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,10 @@ npm install -g autocannon

    Actix
    ```
    ./news-service
    git clone https://github.com/diegopacheco/rust-playground.git
    cd rust-microservice/
    cargo build --release
    ./target/release/news-service
    ```
    ```
    autocannon -c 100 -d 40 -p 10 172.17.0.2:8080/
  3. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion actix_netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    Fastify did <b>6K</b> RPS (Request per Second) <BR>
    Netty did <b>23K</b> RPS (Request Per Second) <BR>
    Actix did <b>53K</b> RPS (Request Per Second) <BR>
    <BR>

    Actix <b>1ms</b> latency <BR>
    Netty <b>4ms</b> latency <BR>
    Fastify <b>14ms</b> latency <BR>
  4. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion actix_netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    Fastify did <b>6K</b> RPS (Request per Second) <BR>
    Netty did <b>23K</b> RPS (Request Per Second) <BR>
    Actix did <b>53K</b> RPS (Request Per Second) <BR>
    <BR>
    Actix <b>1ms</b> latency <BR>
    Netty <b>4ms</b> latency <BR>
    Fastify <b>14ms</b> latency <BR>

    @@ -16,7 +18,6 @@ Actix
    autocannon -c 100 -d 40 -p 10 172.17.0.2:8080/
    ```
    ![Image of Actix](https://live.staticflickr.com/65535/49436244368_5fdde5b2f6_h_d.jpg)
    ```

    Netty
    ```
  5. @diegopacheco diegopacheco renamed this gist Jan 25, 2020. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions netty_vs_fastify.md → actix_netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,16 @@ Fastify <b>14ms</b> latency <BR>
    npm install -g autocannon
    ```

    Actix
    ```
    ./news-service
    ```
    ```
    autocannon -c 100 -d 40 -p 10 172.17.0.2:8080/
    ```
    ![Image of Actix](https://live.staticflickr.com/65535/49436244368_5fdde5b2f6_h_d.jpg)
    ```
    Netty
    ```
    docker run diegopacheco/time-microservice
  6. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    Fastify did <b>6K</b> RPS (Request per Second) <BR>
    Netty did <b>23K</b> RPS (Request Per Second) <BR>
    <BR>
    Netty 4ms latency <BR>
    Fastify 14ms latency <BR>
    Netty <b>4ms</b> latency <BR>
    Fastify <b>14ms</b> latency <BR>

    ```
    npm install -g autocannon
  7. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,8 @@
    Fastify did 6K RPS (Request per Second) <BR>
    Netty did 23K RPS (Request Per Second)
    Fastify did <b>6K</b> RPS (Request per Second) <BR>
    Netty did <b>23K</b> RPS (Request Per Second) <BR>
    <BR>
    Netty 4ms latency <BR>
    Fastify 14ms latency <BR>

    ```
    npm install -g autocannon
  8. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,27 @@
    Fastify did 6K RPS (Request per Second) <BR>
    Netty did 23K RPS (Request Per Second)


    ```
    npm install -g autocannon
    ```

    Netty
    ```
    docker run diegopacheco/time-microservice
    ```
    ```
    autocannon -c 100 -d 40 -p 10 172.17.0.2:8080/rest/datetime
    ```
    ![Image of Netty](https://live.staticflickr.com/65535/49436892462_e8c45ab72a_h_d.jpg)

    Fastify
    ```
    git clone https://github.com/diegopacheco/Diego-Pacheco-Sandbox.git
    cd scripts/node.js/fastify-fun2/
    npm install
    npm start
    ```
    ```
    autocannon -c 100 -d 40 -p 10 localhost:3000
    ```
    ![Image of Fastify](https://live.staticflickr.com/65535/49436671671_8d20670ff0_h_d.jpg)
  9. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ Netty did 23K RPS (Request Per Second)

    Netty
    ```
    utocannon -c 100 -d 40 -p 10 172.17.0.2:8080/rest/datetime
    autocannon -c 100 -d 40 -p 10 172.17.0.2:8080/rest/datetime
    ```
    ![Image of Netty](https://live.staticflickr.com/65535/49436892462_e8c45ab72a_h_d.jpg)

  10. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,13 @@ Fastify did 6K RPS (Request per Second) <BR>
    Netty did 23K RPS (Request Per Second)

    Netty
    ```
    utocannon -c 100 -d 40 -p 10 172.17.0.2:8080/rest/datetime
    ```
    ![Image of Netty](https://live.staticflickr.com/65535/49436892462_e8c45ab72a_h_d.jpg)

    Fastify
    ```
    autocannon -c 100 -d 40 -p 10 localhost:3000
    ```
    ![Image of Fastify](https://live.staticflickr.com/65535/49436671671_8d20670ff0_h_d.jpg)
  11. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ Fastify did 6K RPS (Request per Second) <BR>
    Netty did 23K RPS (Request Per Second)

    Netty
    ![Image of Netty](https://www.flickr.com/photos/diego-pacheco/49436892462/in/dateposted-public/)
    ![Image of Netty](https://live.staticflickr.com/65535/49436892462_e8c45ab72a_h_d.jpg)

    Fastify
    ![Image of Fastify](https://www.flickr.com/photos/diego-pacheco/49436671671/in/dateposted-public/)
    ![Image of Fastify](https://live.staticflickr.com/65535/49436671671_8d20670ff0_h_d.jpg)
  12. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,8 @@
    Fastify did 6K RPS (Request per Second) <BR>
    Netty did 23K RPS (Request Per Second)

    [https://www.flickr.com/photos/diego-pacheco/49436892462/in/dateposted-public/]
    [https://www.flickr.com/photos/diego-pacheco/49436671671/in/dateposted-public/]
    Netty
    ![Image of Netty](https://www.flickr.com/photos/diego-pacheco/49436892462/in/dateposted-public/)

    Fastify
    ![Image of Fastify](https://www.flickr.com/photos/diego-pacheco/49436671671/in/dateposted-public/)
  13. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,5 @@
    Fastify did 6K RPS (Request per Second) <BR>
    Netty did 23K RPS (Request Per Second)
    Netty did 23K RPS (Request Per Second)

    [https://www.flickr.com/photos/diego-pacheco/49436892462/in/dateposted-public/]
    [https://www.flickr.com/photos/diego-pacheco/49436671671/in/dateposted-public/]
  14. @diegopacheco diegopacheco revised this gist Jan 25, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    Fastify did 6K RPS (Request per Second)
    Fastify did 6K RPS (Request per Second) <BR>
    Netty did 23K RPS (Request Per Second)
  15. @diegopacheco diegopacheco created this gist Jan 25, 2020.
    2 changes: 2 additions & 0 deletions netty_vs_fastify.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    Fastify did 6K RPS (Request per Second)
    Netty did 23K RPS (Request Per Second)