Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 99 percentile information #13

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions benchmark.sh
Expand Up @@ -18,6 +18,10 @@ if ! grep -q 'Failed requests: 0' results/create_token; then
fi
git diff --color results/create_token | grep --fixed-strings ' [ms] (mean)' || true
git diff --color results/create_token | grep --fixed-strings ' [#/sec] (mean)' || true
git diff --color results/create_token | grep --fixed-strings 'Percentage' || true
git diff --color results/create_token | grep --fixed-strings ' 99%' || true

echo "" # Blank line between results

echo "Benchmarking token validation..."
ab -r -c 1 -n 1000 -T 'application/json' -H "X-Auth-Token: $ADMIN_TOKEN\n" -H "X-Subject-Token: $SUBJECT_TOKEN\n" http://$HOST:35357/v3/auth/tokens > results/validate_token
Expand All @@ -26,3 +30,5 @@ if ! grep -q 'Failed requests: 0' results/validate_token; then
fi
git diff --color results/validate_token | grep --fixed-strings ' [ms] (mean)' || true
git diff --color results/validate_token | grep --fixed-strings ' [#/sec] (mean)' || true
git diff --color results/create_token | grep --fixed-strings 'Percentage' || true
git diff --color results/create_token | grep --fixed-strings ' 99%' || true