Created
February 12, 2017 07:26
-
-
Save jeffbean/b2a067658aee658672d473584d7be42d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jbean@Jeffreys-MacBook-Pro ~/go/src/github.com/yarpc/yab [logging] | |
± % ulimit -n !5767 | |
1024 | |
jbean@Jeffreys-MacBook-Pro ~/go/src/github.com/yarpc/yab [logging *] | |
± % make test !5751 | |
go test -cover -race ./encoding/... ./internal/... ./limiter/... ./ratelimit/... ./sorted/... ./statsd/... ./testdata/... ./thrift/... ./transport/... ./unmarshal/... . | |
warning: "./testdata/..." matched no packages | |
ok github.com/yarpc/yab/encoding 1.087s coverage: 96.8% of statements | |
? github.com/yarpc/yab/internal/thrifttest [no test files] | |
ok github.com/yarpc/yab/limiter 1.200s coverage: 100.0% of statements | |
? github.com/yarpc/yab/ratelimit [no test files] | |
ok github.com/yarpc/yab/sorted 1.038s coverage: 100.0% of statements | |
ok github.com/yarpc/yab/statsd 1.042s coverage: 100.0% of statements | |
ok github.com/yarpc/yab/thrift 1.039s coverage: 96.8% of statements | |
ok github.com/yarpc/yab/transport 1.161s coverage: 89.0% of statements | |
ok github.com/yarpc/yab/unmarshal 1.032s coverage: 100.0% of statements | |
--- FAIL: TestBenchmark (3.17s) | |
Error Trace: benchmark_test.go:109 | |
Error: Should be true | |
Messages: Capped by RPS * duration: Took 1.085629149s, wanted duration 500ms | |
Error Trace: benchmark_test.go:109 | |
Error: Should be true | |
Messages: Capped by duration: Took 1.275731981s, wanted duration 500ms | |
{ | |
"body": {}, | |
"ok": true, | |
"trace": "0" | |
} | |
{ | |
"body": {}, | |
"headers": { | |
"header": "values" | |
}, | |
"ok": true, | |
"trace": "0" | |
} | |
{ | |
"body": { | |
"result": { | |
"ok": true | |
} | |
}, | |
"ok": true, | |
"trace": "0" | |
} | |
{ | |
"body": { | |
"result": { | |
"ok": true | |
} | |
}, | |
"ok": true, | |
"trace": "0" | |
} | |
Benchmark parameters: | |
CPUs: 4 | |
Connections: 8 | |
Concurrency: 1 | |
Max requests: 100 | |
Max duration: 5s | |
Max RPS: 0 | |
Latencies: | |
0.5000: 7.284742ms | |
0.9000: 12.861982ms | |
0.9500: 20.158536ms | |
0.9900: 23.745949ms | |
0.9990: 23.874553ms | |
0.9995: 23.881698ms | |
1.0000: 23.888843ms | |
Elapsed time: 108ms | |
Total requests: 100 | |
RPS: 923.10 | |
{ | |
"body": { | |
"result": { | |
"ok": true | |
} | |
}, | |
"ok": true, | |
"trace": "0" | |
} | |
Benchmark parameters: | |
CPUs: 4 | |
Connections: 3 | |
Concurrency: 1 | |
Max requests: 0 | |
Max duration: 100ms | |
Max RPS: 1 | |
Latencies: | |
0.5000: 5.474976ms | |
0.9000: 6.472526ms | |
0.9500: 6.551663ms | |
0.9900: 6.614972ms | |
0.9990: 6.629217ms | |
0.9995: 6.630008ms | |
1.0000: 6.6308ms | |
Elapsed time: 109ms | |
Total requests: 4 | |
RPS: 36.42 | |
{ | |
"body": {}, | |
"headers": { | |
"header1": "value1", | |
"header2": "value2" | |
}, | |
"ok": true, | |
"trace": "0" | |
} | |
FAIL | |
coverage: 95.1% of statements | |
FAIL github.com/yarpc/yab 4.621s | |
make: *** [test] Error 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking at the actual time for the tests we determined it was the warmup connections skewing the duration.