summaryrefslogtreecommitdiff
path: root/selftest/perf_tests.py
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2017-03-22 10:25:06 +1300
committerDouglas Bagnall <dbagnall@samba.org>2017-06-23 02:25:25 +0200
commitc1e3937b3e47ae8e58b8dddba9ca67f3d7d709bf (patch)
tree6486d87693ff5e5e840dde512cf2cc4c13e9bd56 /selftest/perf_tests.py
parent03042b85c8140842633b36f3124e504b97b852a1 (diff)
downloadsamba-c1e3937b3e47ae8e58b8dddba9ca67f3d7d709bf.tar.gz
perftest: add a new medley test
This is something of a rewrite of ad_dc_performance.py with more search tests and a rebalancing of others. For example, the users are added in three lots of 2000 using varying methods rather than 5 of 1000 using ldap, reducing duplication thus clarifying the results. Links are added in more realistic patterns with groups of varying size. To save time, the database is not cleaned up. Usually perftests are run with TESTS= restriction to a single suite, but in case this is not done, this suite is run last. The ad_dc_performance suite is not replaced so that comparisons with old test sequences are still possible. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'selftest/perf_tests.py')
-rw-r--r--selftest/perf_tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/selftest/perf_tests.py b/selftest/perf_tests.py
index adc4ef95c7e..5b427256c68 100644
--- a/selftest/perf_tests.py
+++ b/selftest/perf_tests.py
@@ -64,3 +64,15 @@ plantestsuite_loadlist("samba4.ldb.multi_connect.python(ad_dc_ntvfs)",
"dsdb/tests/python/ad_dc_multi_bind.py"),
'tdb://$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb'
'$LOADLIST', '$LISTOPT'])
+
+
+# this one doesn't tidy itself up fully, so leave it as last unless
+# you want a messy database.
+plantestsuite_loadlist("samba4.ldap.ad_dc_medley_performance.python(ad_dc_ntvfs)",
+ "ad_dc_ntvfs",
+ [python,
+ os.path.join(samba4srcdir,
+ "dsdb/tests/python/ad_dc_medley_performance.py"),
+ '$SERVER', '-U"$USERNAME%$PASSWORD"',
+ '--workgroup=$DOMAIN',
+ '$LOADLIST', '$LISTOPT'])