summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-11-06 17:54:39 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-11-06 17:54:39 -0500
commit8eb107ea8c79a539e3dfd072a38babc807d2becb (patch)
tree847b5ca7efa1f8abb8ca074b437e61167f17a578
parent8a8743019f45470e0d2452490ca49d9b3ac33e5d (diff)
downloadcobbler-8eb107ea8c79a539e3dfd072a38babc807d2becb.tar.gz
cobbler-8eb107ea8c79a539e3dfd072a38babc807d2becb.tar.xz
cobbler-8eb107ea8c79a539e3dfd072a38babc807d2becb.zip
Update performance test code
-rw-r--r--tests/performance.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/performance.py b/tests/performance.py
index bb0c3685..922718b9 100644
--- a/tests/performance.py
+++ b/tests/performance.py
@@ -8,7 +8,7 @@ import time
import sys
import random
-N = 1000
+N = 10000
print "sample size is %s" % N
api = capi.BootAPI()
@@ -40,7 +40,6 @@ print "ELAPSED: %s seconds" % (time2 - time1)
print "Creating test systems from scratch"
time1 = time.time()
for x in xrange(0,N):
- print "."
sys = api.new_system()
sys.set_name("autotest-%s" % x)
sys.set_mac_address(random_mac(), "eth0")
@@ -53,7 +52,7 @@ print "ELAPSED %s seconds" % (time2 - time1)
#for mode2 in [ "fast", "normal", "full" ]:
for mode in [ "on", "off" ]:
- print "Running netboot edit benchmarks (turn %s, %s)" % (mode, mode2)
+ print "Running netboot edit benchmarks (turn %s)" % (mode)
time1 = time.time()
for x in xrange(0,N):
sys = api.systems().find("autotest-%s" % x)