Coder Social home page Coder Social logo

actix-benchmark's Introduction

Actix Benchmarks

Disclaimer

This benchmark was designed for a specific scenario. Do not take it into account when making decisions about your projects or your company's products.

If you are in any doubt, I suggest you do your own tests according to your scenario and using tools and methods that suit your case.

Abstract

The purpose of this benchmark is to test whether using Dynamic Dispatch, instead of Static Dispatch, exclusively on the dependencies of a Handler impacts the performance of an application considerably.

Benchmarks

Static Dispatch

$ wrk -t12 -c400 -d30s http://127.0.0.1:8080/primes

Running 30s test @ http://127.0.0.1:8080/primes
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   195.43ms   18.57ms 422.88ms   78.14%
    Req/Sec   102.81     39.24   280.00     66.58%
  36927 requests in 30.10s, 21.22GB read
  Socket errors: connect 155, read 242, write 0, timeout 0
Requests/sec:   1226.96
Transfer/sec:    722.02MB

Dynamic Dispatch

$ wrk -t12 -c400 -d30s http://127.0.0.1:8080/primes

Running 30s test @ http://127.0.0.1:8080/primes
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   197.47ms   21.05ms 423.41ms   78.12%
    Req/Sec   102.00     47.90   270.00     61.69%
  36515 requests in 30.09s, 20.98GB read
  Socket errors: connect 155, read 258, write 0, timeout 0
Requests/sec:   1213.40
Transfer/sec:    714.04MB

Conclusion

Although Dynamic Dispatch has a lower performance compared to Static Dispatch, this difference is minute and does not negatively impact the overall performance of the application.

actix-benchmark's People

Watchers

Marco Antônio 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.