From c942614eaed392736f4037cb3663ea9e38c7d36c Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 21 Feb 2019 16:47:55 +1300 Subject: [PATCH] dsdb pytsts: reduce scale of subtree rename speed test The speed test, when it was introduced a few patches ago, was deliberately slow so that we could see how much better the changes were. It used 500 users, 50 groups, and 27 computers. Before the changes, it took this long: rename ou took 64.373s rename group took 0.160s rename user took 0.004s rename computer took 0.123s After using the sorted links, it took this long: rename ou took 12.984s rename group took 0.161s rename user took 0.004s rename computer took 0.122s And with the final patch to stop the linear search early on success: rename ou took 11.680s rename group took 0.089s rename user took 0.004s rename computer took 0.128s "rename ou" is the one we were aiming at. Now that we have done that, we reduce the size of the test so as not to slow down everyone's autobuilds. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- source4/dsdb/tests/python/subtree_rename.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/tests/python/subtree_rename.py b/source4/dsdb/tests/python/subtree_rename.py index 81cae3a7dd8..c4f6bc7a160 100644 --- a/source4/dsdb/tests/python/subtree_rename.py +++ b/source4/dsdb/tests/python/subtree_rename.py @@ -395,7 +395,7 @@ class SubtreeRenameTests(samba.tests.TestCase): def test_la_move_ou_tree_big(self): tag = 'move_ou_big' - USERS, GROUPS, COMPUTERS = 500, 50, 27 + USERS, GROUPS, COMPUTERS = 50, 10, 7 users = self.add_objects(USERS, 'user', '%s_u_' % tag, ou=self.ou1) groups = self.add_objects(GROUPS, 'group', '%s_g_' % tag, ou=self.ou1)