Skip to content

Instantly share code, notes, and snippets.

@jancajthaml
Created September 25, 2017 13:27
Show Gist options
  • Save jancajthaml/604566739d16a8e1d28b93be7383c014 to your computer and use it in GitHub Desktop.
Save jancajthaml/604566739d16a8e1d28b93be7383c014 to your computer and use it in GitHub Desktop.
#!/bin/sh -eo pipefail
sh ./dev-env/performance.sh
watch progress of core at `docker logs -f 8af03c7da3d966260b25ca9b841c7334753fe5189948907379a36f8b8c0dab51`
info | limit set to 20
info | prefix uri set to http://core:8080/v1/E7Y4MXCN
debug | starting tests
info | discovering containers
>> bash | docker ps -a | grep performance | awk -F " " '{ print $2,$1 }'
75 ms
info | found mysql(1x)
info | found transaction_core(1x)
debug | waiting util services are UP
info | start tests
debug | reference test of http API
info | preparing creation of 100 health check spams
info | sending 100 requests
info | processed: 14, passed: 14, failed: 0
pass | all passed
315 ms ... 3 ms per unit
debug | random accounts from scratch with random transactions
info | preparing creation of 141 accounts
info | sending 141 requests
info | processed: 2, passed: 2, failed: 0
info | processed: 115, passed: 115, failed: 0
pass | all passed
870 ms ... 6 ms per unit
info | preparing creation of 480 transactions with 74 debit and 67 credit accounts
info | sending 480 requests
info | processed: 28, passed: 28, failed: 0
info | processed: 92, passed: 92, failed: 0
info | processed: 151, passed: 151, failed: 0
info | processed: 208, passed: 208, failed: 0
info | processed: 268, passed: 268, failed: 0
info | processed: 336, passed: 336, failed: 0
info | processed: 410, passed: 410, failed: 0
pass | all passed
4 sec 370 ms ... 9 ms per unit
info | preparing checking balance of 141 accounts
info | sending 141 requests
pass | all passed
417 ms ... 2 ms per unit
info | checking that sum of all balances is 0.0
pass | all balances cancels out
52.0000 ys
debug | reset core / verify rehydration
>> bash | docker container restart 8af03c7da3d9 2> /dev/null || :
69 ms
debug | waiting util service is ready
info | preparing checking balance of 141 accounts
info | sending 141 requests
pass | all passed
379 ms ... 2 ms per unit
debug | ending tests
deleting core container 8af03c7da3d966260b25ca9b841c7334753fe5189948907379a36f8b8c0dab51
deleting mysql container 396fb9235143c20c03fad7400f447a0e4f3941013022b05f8714e2e3cd34bf18
deleting localfs volume
deleting test container 396fb9235143c20c03fad7400f447a0e4f3941013022b05f8714e2e3cd34bf18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment