We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80f280a commit 6c980d6Copy full SHA for 6c980d6
1 file changed
tests/performance/concatenation.py
@@ -0,0 +1,32 @@
1
+from time import time
2
+
3
+x = "TEST"
4
+y = "TEST"
5
+z = "TEST"
6
7
+t = time()
8
+for i in xrange(1000000):
9
+ x += y + z
10
+ x = "TEST"
11
+print 'duration:', time()-t
12
13
14
15
16
+ x = x + y + z
17
18
19
20
21
22
23
+ x = "".join((x, y, z))
24
25
26
27
28
29
30
+ x = "%s%s%s" % (x, y, z)
31
32
0 commit comments