pkg / profile

Simple profiling for Go
BSD 2-Clause "Simplified" License
2k stars 122 forks source link

Where do I go to learn what the output means? #28

Closed xDinomode closed 8 years ago

xDinomode commented 8 years ago

I'm writing a web app and using /wg/wrk to stress test it along with this tool but don't understand the output. Here's the CPU profile output after running wrk -t12 -c400 -d7s http://127.0.0.1:8080

davecheney commented 8 years ago

Can you please paste the .svg output.

xDinomode commented 8 years ago

@davecheney Not sure if you wanted the text output or an svg image but here's the text output

Also this is the stress tester's output in case that's relevant

Running 7s test @ http://127.0.0.1:9000
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   232.52ms  329.40ms   1.99s    87.67%
    Req/Sec   274.25    266.36     1.87k    89.10%
  21381 requests in 7.10s, 7.77MB read
  Socket errors: connect 0, read 0, write 0, timeout 1
Requests/sec:   3010.93
Transfer/sec:      1.09MB
davecheney commented 8 years ago

Looking at that profile it looks like most of the time is being spent in writing to the network, this doesn't look unexpected because this is a web server after all.

On Sat, Aug 27, 2016 at 2:30 AM, xDinomode notifications@github.com wrote:

Not sure if you wanted the text output or an svg image but here's the text output http://sprunge.us/jKSb

Also this is the stress tester's output in case that's relevant

Running 7s test @ http://127.0.0.1:9000 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 232.52ms 329.40ms 1.99s 87.67% Req/Sec 274.25 266.36 1.87k 89.10% 21381 requests in 7.10s, 7.77MB read Socket errors: connect 0, read 0, write 0, timeout 1 Requests/sec: 3010.93 Transfer/sec: 1.09MB

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pkg/profile/issues/28#issuecomment-242784037, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAcA1HKQBTLz7KwjNZ3t0UfaMiXChtSks5qjxSqgaJpZM4JopZ7 .

xDinomode commented 8 years ago

@davecheney Yeah It's a simple web server but I was just curious as to what the numbers mean. Thanks anyway.