Sign inSign up

felipeagger/go-api-simulate-bench

By felipeagger

•Updated almost 2 years ago

Image
Languages & frameworks
0

316

felipeagger/go-api-simulate-bench repository overview

⁠go-api-simulate-bench

Is a Golang API for benchmarks using valyala/fasthttp.

This Application use github.com/uber-go/automaxprocs.

⁠Default port is 8080. (EnvVar is PORT)

⁠Endpoints:

  • /health-check: just return hostname
  • /api/io-bound: simulate io-bound with delay
  • /api/io-bound-alternative: simulate io-bound with tcp communication localhost
  • /api/cpu-bound: simulate cpu-bound with prime numbers
  • /api/cpu-bound-alternative: simulate cpu-bound with hashes sha256

This endpoints support any methods.

⁠Params QueryString

  • timeout: in ms (default is 10ms)
  • resp_size: in bytes (default is 20 bytes)

⁠Entrypoints:

  • /home/appX8664 (amd64 or x86)
  • /home/appArm64 (arm64)

Tag summary

Content type

Image

Digest

sha256:c6ec216d8…

Size

7.4 MB

Last updated

almost 2 years ago

docker pull felipeagger/go-api-simulate-bench