Skip to content

arashrasoulzadeh/GoStreestTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO API Stress Test

Use this appication to stress test your api

Writeen by Arash Rasoulzadeh , special thanks to amiraliamhh

Example usage

Run with a single thread:

go run main.go single

Run using multiple threads:

runs using 4 threads go run main.go multiple 4

Scenario

go run composer.go

This command runs the composer , composer reads the configuration from scenario.conf , you may see the example configuration file here

schema for configation file is :

scenarios:
      --
        label: "light"
        config: "config.yaml"
        sleep: 1
      --
        label: "medium"
        config: "config4.yaml"
        sleep : 1

scenarios key is an array of

  • label - its just a label
  • config - is the config file name
  • sleep - sleep in seconds after running this part

changelog

  • readme fixed
  • colorized labels in scenario
  • scenario added
  • fixed bugs in multi-threading

Releases

No releases published

Packages

No packages published

Languages