summaryrefslogtreecommitdiff
path: root/impl/performance/generate-cycle.py
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-11-27 18:20:06 +1100
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-11-27 18:20:06 +1100
commit839764bd955d2bddedb4a38ab1d4d92c797c56b9 (patch)
treeba18f19658c62f5d515d1bdadbf37969f9e99711 /impl/performance/generate-cycle.py
parent8b9d3f9880824523c16a1101967987f998dc1cb4 (diff)
Thesis and performance testing related stuff.
Diffstat (limited to 'impl/performance/generate-cycle.py')
-rw-r--r--impl/performance/generate-cycle.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/impl/performance/generate-cycle.py b/impl/performance/generate-cycle.py
new file mode 100644
index 0000000..6c22e6e
--- /dev/null
+++ b/impl/performance/generate-cycle.py
@@ -0,0 +1,5 @@
+import sys
+
+print 'x0 = max(0,x'+str(int(sys.argv[1])-1)+')'
+for i in xrange(int(sys.argv[1])-1):
+ print 'x' + str(i+1) + " = x" + str(i)