$ time ANSIBLE_STRATEGY=linear ansible --one-line localhost -mping
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS => {"changed": false,"ping": "pong"}
ANSIBLE_STRATEGY=linear ansible --one-line localhost -mping 0.42s user 0.13s system 98% cpu 0.562 total
Mitogen + Ansible takes 0.97 seconds
$ time ANSIBLE_STRATEGY=mitogen_linear ansible --one-line localhost -mping
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS => {"changed": false,"ping": "pong"}
ANSIBLE_STRATEGY=mitogen_linear ansible --one-line localhost -mping 0.97s user 0.15s system 92% cpu 1.215 total
Vanilla Ansible takes 0.42 seconds
Mitogen + Ansible takes 0.97 seconds
Suspected contributing factors