https://github.com/tilebox/call-in-parallel
https://github.com/tilebox/call-in-parallel
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tilebox/call-in-parallel
- Owner: tilebox
- License: mit
- Created: 2023-12-13T15:39:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T10:48:57.000Z (over 2 years ago)
- Last Synced: 2024-06-21T14:14:07.900Z (about 2 years ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# call-in-parallel
```
call-in-parallel - Run a command multiple times in parallel
Flags:
--version Displays the program version string.
-h --help Displays help with available flag, subcommand, and positional value parameters.
-n number of instances to start (default: 1)
-d --delay delay between starting each instance (default: 10ms)
```
## Installation
```
go install github.com/tilebox/call-in-parallel@latest
```
## Usage Examples
Print "hello" 3 times in parallel, with a default delay of 10ms between each command
```bash
> call-in-parallel -n 3 -- echo Hello World!
```
Fetch the [tilebox.com](https://tilebox.com) website 5 times in parallel, with a delay of 1s in-between
```bash
> call-in-parallel -n 5 -d 1s -- curl https://tilebox.com
```