appleboy / gofight

Testing API Handler written in Golang.
MIT License
440 stars 42 forks source link

Benchmark examples? #73

Open kaihendry opened 5 years ago

kaihendry commented 5 years ago

I need to be able to test my endpoint can handle say 5 simultaneous requests.

Does gofight + "*testing.B" make sense? I can't find an example. Or should I reach for another tool?

https://github.com/search?q=%22*testing.B%22+%22github.com%2Fappleboy%2Fgofight%22&type=Code

kaihendry commented 5 years ago

I'm struggling to get a brench mark running in parallel here: https://github.com/unee-t/unit/commit/20e4f6a0001ab9a49027f4de0e969c3af3377929 https://media.dev.unee-t.com/2019-04-22/parallel.mp4 What am I missing?

SO question too: https://stackoverflow.com/questions/55789373/run-a-benchmark-in-parallel-i-e-simulate-simultaneous-requests