Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add benchmarks to documentation #161

@aeneasr

Description

@aeneasr

JWKS endpoint (GET)

$ gobench  -u "http://localhost:4444/keys/hydra.tls" -c 10000 -t 5 -auth "bearer o9RoOGORCtFeTe6HA6x0ZPKz6TikuJwDLHZSRMkPvS4.s3Q_o3uwPVfxaeAYoezvLBXgoqHFMsLnxyS0PELt-bg"
Dispatching 10000 clients
Waiting for results...
2016/07/24 18:24:11 not supported by windows

Requests:                           464951 hits
Successful requests:                378513 hits
Network failed:                      86438 hits
Bad requests failed (!2xx):              0 hits
Successful requests rate:             3674 hits/sec
Read throughput:                   3678587 bytes/sec
Write throughput:                   807390 bytes/sec
Test time:                             103 sec

Warden allowed endpoint (POST)

$ gobench -u "http://localhost:4444/warden/allowed" -c 10000 -t 100 -auth "bearer PhUhkkxPqBuI0OqxrrF_UEiBs_5_HvMX8Nkn_izbFCI.hl7IbI3FJzyWtJz2XVu0a3EPgQrWjh6ff_7PofbXZtk" -d "d:\warden-allowed.txt"
Dispatching 10000 clients
Waiting for results...

Requests:                           524632 hits
Successful requests:                429437 hits
Network failed:                      95195 hits
Bad requests failed (!2xx):              0 hits
Successful requests rate:             4719 hits/sec
Read throughput:                   1529742 bytes/sec
Write throughput:                  2147564 bytes/sec
Test time:                              91 sec

Warden authorized endpoint (POST)

$ gobench  -u "http://localhost:4444/warden/authorized" -c 10000 -t 100 -auth "bearer PhUhkkxPqBuI0OqxrrF_UEiBs_5_HvMX8Nkn_izbFCI.hl7IbI3FJzyWtJz2XVu0a3EPgQrWjh6ff_7PofbXZtk" -d "d:\warden-authorized.txt"
Dispatching 10000 clients
Waiting for results...
2016/07/24 18:38:37 not supported by windows

Requests:                          4207074 hits
Successful requests:               4200933 hits
Network failed:                       6141 hits
Bad requests failed (!2xx):              0 hits
Successful requests rate:            37508 hits/sec
Read throughput:                  12077688 bytes/sec
Write throughput:                 14646568 bytes/sec
Test time:                             112 sec

OAuth2 Client Credentials Flow

Note: This is much slower because the client credentials are validated using bcrypt.

$ gobench -u "http://localhost:4444/oauth2/token?scope=core&grant_type=client_credentials" -c 10000 -t 100 -auth "Basic YmQzZTBkZjUtYjVmYi00NzI3LWI1YzMtMzI3ODEzM2JlNzFiOlhGeWtEVUkxNlp0PD5USVQ=" -d "D:\clientcredentials.txt"
Dispatching 10000 clients
Waiting for results...
2016/07/24 18:56:54 not supported by windows

Requests:                            57934 hits
Successful requests:                  3448 hits
Network failed:                      54486 hits
Bad requests failed (!2xx):              0 hits
Successful requests rate:               32 hits/sec
Read throughput:                     10819 bytes/sec
Write throughput:                    14458 bytes/sec
Test time:                             105 sec

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions