An open API service indexing awesome lists of open source software.

https://github.com/drewalth/stress

Run the provided command many times in parallel
https://github.com/drewalth/stress

go stress test

Last synced: 13 days ago
JSON representation

Run the provided command many times in parallel

Awesome Lists containing this project

README

          

# stress

[![Build](https://github.com/drewalth/stress/actions/workflows/go.yml/badge.svg)](https://github.com/drewalth/stress/actions/workflows/go.yml)

```bash
NAME:
stress - A tool for stress testing commands

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

COMMANDS:
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--cmd value Command to run for stress testing
--runs value, -r value Number of times to run the command (default: 100)
--parallel value, -p value Number of parallel executions (default: 4)
--help, -h show help
```

## Install

### Mac

```bash
sudo make install_stress_mac
```

## Usage

```bash
stress --cmd "npm test --workspaces" --runs 100 --parallel 10
```

### CI

#### Github Actions

> If you just want to copy the go file. Go is installed on most if not all GHA runners.

```yaml
name: Stress Test
run: go run ./stress.go --cmd "npm test --workspaces" --runs 100 --parallel 10
```