mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
more presets and timing functionality to data generator
This commit is contained in:
parent
f265d2fe0f
commit
c22cf2f7e6
@ -1,15 +1,15 @@
|
||||
resource medium Jan2017 jobs1k jobs10k
|
||||
organizations 500 1 1 1
|
||||
users 5000 3 3 3
|
||||
teams 500 2 2 2
|
||||
projects 1000 30 30 30
|
||||
job_templates 2000 127 127 127
|
||||
credentials 2000 50 50 50
|
||||
inventories 2000 6 6 6
|
||||
inventory_groups 500 15 15 15
|
||||
inventory_hosts 2500 15 15 15
|
||||
wfjts 100 0 0 0
|
||||
nodes 1000 0 0 0
|
||||
labels 1000 0 0 0
|
||||
jobs 1000 157208 1000 10000
|
||||
job_events 1000 3370942 20000 200000
|
||||
resource medium Jan2017 jobs1k jobs10k jobs50k jobs100k
|
||||
organizations 500 1 1 1 1 1
|
||||
users 5000 3 3 3 3 3
|
||||
teams 500 2 2 2 2 2
|
||||
projects 1000 30 30 30 30 30
|
||||
job_templates 2000 127 127 127 127 127
|
||||
credentials 2000 50 50 50 50 50
|
||||
inventories 2000 6 6 6 6 6
|
||||
inventory_groups 500 15 15 15 15 15
|
||||
inventory_hosts 2500 15 15 15 15 15
|
||||
wfjts 100 0 0 0 0 0
|
||||
nodes 1000 0 0 0 0 0
|
||||
labels 1000 0 0 0 0 0
|
||||
jobs 1000 157208 1000 10000 50000 100000
|
||||
job_events 1000 3370942 20000 200000 1000000 2000000
|
||||
|
@ -7,6 +7,7 @@ import sys
|
||||
# Python
|
||||
from collections import defaultdict
|
||||
from optparse import make_option, OptionParser
|
||||
from datetime import datetime
|
||||
import logging
|
||||
|
||||
|
||||
@ -184,6 +185,9 @@ def mock_save(self, *args, **kwargs):
|
||||
PrimordialModel.save = mock_save
|
||||
|
||||
|
||||
startTime = datetime.now()
|
||||
|
||||
|
||||
try:
|
||||
|
||||
with transaction.atomic():
|
||||
@ -694,3 +698,4 @@ except Rollback:
|
||||
pass
|
||||
|
||||
print('')
|
||||
print('script execution time: {}'.format(datetime.now() - startTime))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user