Coder Social home page Coder Social logo

stress's Introduction

Stress test CPU, Memory, Disk and IO with GO

  • Stress testing of CPU, RAM, Disk and IO with go.
  • CPULoad test is a port of CPULoadGenerator

Build

$ git clone https://github.com/dhoomakethu/stress.git
$ cd stress/
$ go build stress.go

Note

To cross compile for different OS and CPU architecture, set environment variables GOOS and GOARCH before running go build stress.go

E.g: to build for linux and x86_64 architecture

$ export GOOS=linux
$ export GOARCH=386
$ go build stress.go

Refer environment variables

Usage

General usage

$ ./stress


$ ./stress --help
NAME:
   Stress - tool to stress test  host !!

USAGE:
   stress [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
   cpu		load cpu , use --help for more options
   help, h	Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h		show help
   --version, -v	print the version

To load CPU to a particular value

$ ./stress cpu --help
NAME:
   stress cpu - load cpu , use --help for more options

USAGE:
   stress cpu [command options] [arguments...]

OPTIONS:
   --cpuload "0.1"	Target CPU load 0<cpuload<1
   --duration "10"	Duration to run the stress app in Seconds
   --cpucore "0"	Cpu core to stress

Examples

To load CPU core 1 to 50% for a duration of 10 seconds

$ ./stress cpu --cpuload 0.5 --duration 10 --cpu 0

stress's People

Contributors

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