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