Code Monkey home page Code Monkey logo

simple_benchmarks's Introduction

how to run

first build the starwars server

git clone https://github.com/async-graphql/async-graphql cd async-graphql git clone https://github.com/async-graphql/examples/ cd examples/poem/starwars cargo run -r

Run the benchmark via artillery

setup

npm install -g artillery artillery run artillery_starwars_benchmark.yml

results

errors.ECONNRESET: ............................................................. 49
errors.EPIPE: .................................................................. 8
errors.ETIMEDOUT: .............................................................. 300
http.codes.200: ................................................................ 492
http.downloaded_bytes: ......................................................... 21648
http.request_rate: ............................................................. 550/sec
http.requests: ................................................................. 5499

Run the benchmark via locust

setup

pip install locust locust -f locust_starwars_benchmark.py --host=http://localhost:8000 Go into the locust browser http://0.0.0.0:8089/ Select 1000 users, 100 ramp up, press start Wait for it to start failing

result

Requests 1520, fails 12, average ms 144.7, current failurs 0.75, current rps 138

/etc/systemd/system.conf /etc/systemd/user.conf > DefaultLimitNOFILE=500000

/etc/pam.d/common-session > session required pam_limits.so

/etc/security/limits.conf * hard nofile 500000 * soft nofile 500000 root hard nofile 500000 root soft nofile 500000

simple_benchmarks's People

Contributors

haaroon avatar

Watchers

Alhamza Alnaimi avatar Ben Steer 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.