Giter VIP home page Giter VIP logo

fasthttp-test-task's Introduction

fasthttp-test-task

Tool for testing: https://github.com/RomanFrom710/fasthttp-test-task-load-tester

Installation

  • Save your AWS credentials in the home directory (see AWS docs for more information)
  • Replace region and bucket constants in amazon.go with your data

QPS and memory usage

The average QPS value is around 2000. I used simple tool that I wrote to send requests with random data and measure QPS. It's possible to retrieve better results if use static mock data and well-optimized benchmark framework.

Most of the memory is taken by buffer arrays for storing data to be sent to AWS, so the memory usage is about 150MB. It's suitable for 10 clients, but in case their amount grows it's better to consider other option, such as Redis for example.

Possible ways to improve

  • Use optimized json parser (for example fastjson)
  • Use better algorithm to determine when gzip'ed data chunk exceeds 5 MiB

Spent time

Five 6-hours days were spent (i.e. 30 hours)

fasthttp-test-task's People

Contributors

romanfrom710 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.