https://github.com/vrnvu/go-pool
sync pool example
https://github.com/vrnvu/go-pool
Last synced: 10 months ago
JSON representation
sync pool example
- Host: GitHub
- URL: https://github.com/vrnvu/go-pool
- Owner: vrnvu
- Created: 2022-04-15T20:33:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-15T20:34:47.000Z (over 4 years ago)
- Last Synced: 2024-06-20T22:18:53.546Z (about 2 years ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-pool
We simulate an expensive routine by allocating a buffer of 5MiB at each procedure call.
Usage:
```
go run main.go (-c CALLS) (-p POOL)
Options:
-c, --calls Number of expensive calls to simulate
-p, --pool If present enables pool
Output:
Generates a mem.pprof file in the wd.
Example:
go run main.go --calls 1_000_000 --pool
go run main.go --calls 1_000_000
```