tests: import 2 more simple benchmarks.

pull/350/head
David Wilson 6 years ago
parent 9365f254d2
commit 49c804937d

@ -0,0 +1,10 @@
# Execute 'hostname' 100 times in a loop. Loops execute within TaskExecutor
# within a single WorkerProcess, each iteration is a fair approximation of the
# non-controller overhead involved in executing a task.
#
# See also: loop-100-tasks.yml
#
- hosts: all
tasks:
- command: hostname
with_sequence: start=1 end=100

@ -0,0 +1,112 @@
# Execute 'hostname' 100 times, using 100 individual tasks. Each task causes a
# new WorkerProcess to be forked, along with get_vars() calculation, and in the
# Mitogen extension, reestablishment of the UNIX socket connectionto the
# multiplexer process.
#
# It does not measure at least module dependency scanning (cached after first
# iteration).
#
# See also: loop-100-items.yml
#
- hosts: all
tasks:
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
- command: hostname
Loading…
Cancel
Save