Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pyinfra vs. Ansible: 150 hosts
root@pyinfra-perf-tests:/opt/performance# PYINFRA_TEST_HOSTS=150 ./run_tests.sh
### pyinfra Performance Tests
--> Running with 150 hosts
--> Removing any containers
--> Spawning 150 containers...
--> Resting for 5s...
--> Running tests: pyinfra -i tests/deploy/inventory.py tests/deploy/deploy.py
--> First complete in 17.239548271 seconds
--> Second complete in 8.706844236 seconds
real 0m25.964s
user 0m13.785s
sys 0m1.771s
--> Removing any containers
--> Spawning 150 containers...
--> Resting for 5s...
--> Running tests: ansible-playbook -i tests/playbook/inventory.py tests/playbook/playbook.yml -c ssh
--> First complete in 67.666165693 seconds
--> Second complete in 28.582623933 seconds
real 1m36.261s
user 0m20.361s
sys 0m31.470s
--> Removing any containers
--> Spawning 150 containers...
--> Resting for 5s...
--> Running tests: ansible-playbook -i tests/playbook/inventory.py tests/playbook/playbook.yml -c paramiko
--> First complete in 69.409395331 seconds
--> Second complete in 59.468429449 seconds
real 2m8.888s
user 0m40.879s
sys 0m11.741s
<-- All tests complete!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment