Development/Efficiency: test_truth.txt

File test_truth.txt, 5.9 KB (added by jdsiiro, 5 years ago)

Results for testing a variable for truth

Line 
1========================================================================
2Testing on Python 2.6.6
3
4if a == True {a = True}   1.193413  +/- 0.001
5if a == True {a = False}  1.291376  +/- 0.001
6if a == True {a = 1}      1.408535  +/- 0.000
7if a == True {a = 0}      1.493627  +/- 0.000
8
9if a == False {a = True}  1.265476  +/- 0.000
10if a == False {a = False} 1.204996  +/- 0.000
11if a == False {a = 1}     1.483377  +/- 0.000
12if a == False {a = 0}     1.411240  +/- 0.000
13
14if a is True {a = True}   0.913005  +/- 0.000
15if a is True {a = False}  1.012951  +/- 0.000
16if a is True {a = 1}      1.018952  +/- 0.000
17if a is True {a = 0}      1.018858  +/- 0.000
18
19if a is False {a = True}  1.031316  +/- 0.000
20if a is False {a = False} 0.915116  +/- 0.000
21if a is False {a = 1}     1.016992  +/- 0.000
22if a is False {a = 0}     1.016956  +/- 0.000
23
24if a {a = True}           0.460141  +/- 0.000
25if a {a = False}          0.541747  +/- 0.000
26if a {a = 1}              0.663362  +/- 0.000
27if a {a = 0}              0.662980  +/- 0.000
28
29if not a {a = True}       0.560506  +/- 0.000
30if not a {a = False}      0.466307  +/- 0.000
31if not a {a = 1}          0.650556  +/- 0.000
32if not a {a = 0}          0.669126  +/- 0.000
33
34========================================================================
35Testing on Python 2.7.1
36
37if a == True {a = True}   1.081913  +/- 0.007
38if a == True {a = False}  0.992797  +/- 0.009
39if a == True {a = 1}      1.349419  +/- 0.005
40if a == True {a = 0}      1.267198  +/- 0.002
41
42if a == False {a = True}  1.015791  +/- 0.005
43if a == False {a = False} 1.090220  +/- 0.005
44if a == False {a = 1}     1.267966  +/- 0.002
45if a == False {a = 0}     1.348882  +/- 0.010
46
47if a is True {a = True}   0.884191  +/- 0.007
48if a is True {a = False}  0.806390  +/- 0.008
49if a is True {a = 1}      0.802293  +/- 0.004
50if a is True {a = 0}      0.799581  +/- 0.004
51
52if a is False {a = True}  0.818812  +/- 0.001
53if a is False {a = False} 0.869178  +/- 0.009
54if a is False {a = 1}     0.827275  +/- 0.003
55if a is False {a = 0}     0.825540  +/- 0.004
56
57if a {a = True}           0.428655  +/- 0.000
58if a {a = False}          0.339019  +/- 0.000
59if a {a = 1}              0.524594  +/- 0.000
60if a {a = 0}              0.568549  +/- 0.002
61
62if not a {a = True}       0.339000  +/- 0.000
63if not a {a = False}      0.441279  +/- 0.000
64if not a {a = 1}          0.461190  +/- 0.000
65if not a {a = 0}          0.555840  +/- 0.000
66
67========================================================================
68Testing on Python 3.1.4
69
70if a == True {a = True}   0.811389  +/- 0.000
71if a == True {a = False}  0.759573  +/- 0.000
72if a == True {a = 1}      0.949555  +/- 0.000
73if a == True {a = 0}      0.809848  +/- 0.000
74
75if a == False {a = True}  0.734458  +/- 0.000
76if a == False {a = False} 0.811367  +/- 0.000
77if a == False {a = 1}     0.841188  +/- 0.000
78if a == False {a = 0}     0.936918  +/- 0.000
79
80if a is True {a = True}   0.682739  +/- 0.001
81if a is True {a = False}  0.558996  +/- 0.000
82if a is True {a = 1}      0.558940  +/- 0.000
83if a is True {a = 0}      0.558965  +/- 0.000
84
85if a is False {a = True}  0.559077  +/- 0.000
86if a is False {a = False} 0.654375  +/- 0.000
87if a is False {a = 1}     0.558918  +/- 0.000
88if a is False {a = 0}     0.558915  +/- 0.000
89
90if a {a = True}           0.440956  +/- 0.000
91if a {a = False}          0.335147  +/- 0.002
92if a {a = 1}              0.524573  +/- 0.000
93if a {a = 0}              0.441069  +/- 0.000
94
95if not a {a = True}       0.335876  +/- 0.000
96if not a {a = False}      0.453459  +/- 0.000
97if not a {a = 1}          0.459904  +/- 0.000
98if not a {a = 0}          0.562105  +/- 0.000
99
100========================================================================
101Testing on Python 3.2.0
102
103if a == True {a = True}   0.727079  +/- 0.001
104if a == True {a = False}  0.707386  +/- 0.001
105if a == True {a = 1}      0.876948  +/- 0.001
106if a == True {a = 0}      0.753153  +/- 0.003
107
108if a == False {a = True}  0.698005  +/- 0.001
109if a == False {a = False} 0.729401  +/- 0.001
110if a == False {a = 1}     0.832893  +/- 0.005
111if a == False {a = 0}     0.806257  +/- 0.002
112
113if a is True {a = True}   0.561197  +/- 0.006
114if a is True {a = False}  0.500683  +/- 0.007
115if a is True {a = 1}      0.543523  +/- 0.009
116if a is True {a = 0}      0.492119  +/- 0.009
117
118if a is False {a = True}  0.493506  +/- 0.012
119if a is False {a = False} 0.532216  +/- 0.003
120if a is False {a = 1}     0.554733  +/- 0.003
121if a is False {a = 0}     0.506062  +/- 0.005
122
123if a {a = True}           0.343393  +/- 0.000
124if a {a = False}          0.315441  +/- 0.000
125if a {a = 1}              0.494648  +/- 0.000
126if a {a = 0}              0.408409  +/- 0.000
127
128if not a {a = True}       0.315470  +/- 0.000
129if not a {a = False}      0.343247  +/- 0.000
130if not a {a = 1}          0.443336  +/- 0.000
131if not a {a = 0}          0.458024  +/- 0.000
132
133========================================================================
134Testing on Python 3.3.0
135
136if a == True {a = True}   0.707453  +/- 0.001
137if a == True {a = False}  0.679677  +/- 0.000
138if a == True {a = 1}      0.810326  +/- 0.000
139if a == True {a = 0}      0.736115  +/- 0.000
140
141if a == False {a = True}  0.673741  +/- 0.000
142if a == False {a = False} 0.703603  +/- 0.002
143if a == False {a = 1}     0.737431  +/- 0.000
144if a == False {a = 0}     0.789123  +/- 0.000
145
146if a is True {a = True}   0.547079  +/- 0.001
147if a is True {a = False}  0.523558  +/- 0.000
148if a is True {a = 1}      0.468518  +/- 0.000
149if a is True {a = 0}      0.468562  +/- 0.000
150
151if a is False {a = True}  0.485090  +/- 0.001
152if a is False {a = False} 0.509911  +/- 0.000
153if a is False {a = 1}     0.485460  +/- 0.000
154if a is False {a = 0}     0.485277  +/- 0.000
155
156if a {a = True}           0.332981  +/- 0.000
157if a {a = False}          0.291987  +/- 0.000
158if a {a = 1}              0.429202  +/- 0.000
159if a {a = 0}              0.386535  +/- 0.000
160
161if not a {a = True}       0.294149  +/- 0.000
162if not a {a = False}      0.332186  +/- 0.000
163if not a {a = 1}          0.390033  +/- 0.000
164if not a {a = 0}          0.430357  +/- 0.000
165