|
metadata
due to the size of the posts in another thread, i’m branching it off into a new thread entirely.
` Windows XP x86 10.1.102.64 Release StandAlone
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
&: ║ 187 ║ 234 ║ 228 ║ 198 ║ 151 ║ 123
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
|: ║ 229 ║ 152 ║ 207 ║ 138 ║ 234 ║ 125
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
^: ║ 158 ║ 168 ║ 150 ║ 119 ║ 153 ║ 190
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
~: ║ 145 ║ 220 ║ n/a ║ 128 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>>: ║ 197 ║ 240 ║ 234 ║ 191 ║ 151 ║ 130
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>>>: ║ 153 ║ 166 ║ 150 ║ 128 ║ 270 ║ 127
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
<<: ║ 196 ║ 222 ║ 278 ║ 112 ║ 156 ║ 116
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
+: ║ 129 ║ 233 ║ 153 ║ 130 ║ 153 ║ 218
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
-: ║ 233 ║ 178 ║ 168 ║ 214 ║ 243 ║ 187
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
*: ║ 162 ║ 296 ║ 287 ║ 120 ║ 152 ║ 143
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
/: ║ 137 ║ 161 ║ 162 ║ 132 ║ 226 ║ 259
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
%: ║ 215 ║ 235 ║ 159 ║ 142 ║ 244 ║ 153
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
++: ║ 245 ║ 177 ║ n/a ║ 3828 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
--: ║ 247 ║ 228 ║ n/a ║ 3494 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
==: ║ 151 ║ 229 ║ 239 ║ 244 ║ 246 ║ 158
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
===: ║ 151 ║ 220 ║ 209 ║ 171 ║ 233 ║ 235
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!=: ║ 146 ║ 251 ║ 165 ║ 139 ║ 146 ║ 169
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!==: ║ 246 ║ 255 ║ 226 ║ 237 ║ 170 ║ 179
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>: ║ 151 ║ 154 ║ 162 ║ 154 ║ 258 ║ 231
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>=: ║ 144 ║ 212 ║ 208 ║ 204 ║ 120 ║ 167
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
<=: ║ 225 ║ 143 ║ 235 ║ 246 ║ 115 ║ 284
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
&&: ║ 191 ║ 181 ║ 1223 ║ 1989 ║ 1018 ║ 1211
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
||: ║ 205 ║ 293 ║ 1243 ║ 1844 ║ 1051 ║ 1212
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!: ║ 227 ║ 201 ║ n/a ║ 272 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
=: ║ 242 ║ 169 ║ 145 ║ 153 ║ 175 ║ 155
═══════╩═══════════╩════════════╩════════════╩═══════════╩════════════╩════════════════`
` Windows XP x86 10.2.152.26 Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
&: ║ 130 ║ 119 ║ 208 ║ 124 ║ 236 ║ 118
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
|: ║ 208 ║ 120 ║ 121 ║ 129 ║ 118 ║ 131
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
^: ║ 126 ║ 212 ║ 120 ║ 121 ║ 124 ║ 215
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
~: ║ 123 ║ 112 ║ n/a ║ 208 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>>: ║ 192 ║ 127 ║ 125 ║ 118 ║ 120 ║ 121
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>>>: ║ 127 ║ 130 ║ 196 ║ 123 ║ 214 ║ 120
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
<<: ║ 131 ║ 205 ║ 133 ║ 134 ║ 119 ║ 134
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
+: ║ 115 ║ 163 ║ 123 ║ 218 ║ 123 ║ 217
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
-: ║ 214 ║ 118 ║ 119 ║ 122 ║ 134 ║ 128
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
*: ║ 129 ║ 126 ║ 201 ║ 118 ║ 190 ║ 126
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
/: ║ 111 ║ 217 ║ 126 ║ 124 ║ 134 ║ 119
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
%: ║ 119 ║ 112 ║ 122 ║ 203 ║ 129 ║ 265
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
++: ║ 240 ║ 152 ║ n/a ║ 747 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
--: ║ 142 ║ 220 ║ n/a ║ 757 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
==: ║ 127 ║ 134 ║ 125 ║ 217 ║ 122 ║ 118
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
===: ║ 124 ║ 120 ║ 215 ║ 122 ║ 195 ║ 120
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!=: ║ 212 ║ 119 ║ 131 ║ 121 ║ 154 ║ 193
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!==: ║ 121 ║ 214 ║ 122 ║ 129 ║ 121 ║ 156
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>: ║ 119 ║ 126 ║ 122 ║ 209 ║ 127 ║ 118
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>=: ║ 125 ║ 118 ║ 211 ║ 130 ║ 210 ║ 122
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
<=: ║ 207 ║ 123 ║ 111 ║ 127 ║ 122 ║ 211
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
&&: ║ 143 ║ 215 ║ 982 ║ 678 ║ 1151 ║ 887
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
||: ║ 146 ║ 164 ║ 904 ║ 786 ║ 980 ║ 978
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!: ║ 211 ║ 120 ║ n/a ║ 112 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
=: ║ 140 ║ 154 ║ 241 ║ 122 ║ 120 ║ 119
═══════╩═══════════╩════════════╩════════════╩═══════════╩════════════╩════════════════`
i’ll edit this post with a link to an SWF
|
|
|
metadata
Both tests bitwise isn’t as fast as the basic operators…interesting.
|
|
|
metadata
Edit: removed this paragraph until more reliable data (eg. from multiple people) comes in.
Can you extend the tests to not just int/uint, int/Number, and uint/Number but also uint/int, Number/int, Number/uint?
Still, glad to see that ++, —, and especially the logical operators have been given a boost in speed in 10.2. Seems that 10.2 was more than just a release of StageVideo and custom cursors! So it seems that all those “bitwise tricks” really isn’t all that useful in Flash and we no longer have to try to stay away from language features like varargs in 10.2. Hopefully the Event system also got a big update, that would be awesome.
Edit: oh and this is probably completely outdated now…:[http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/](http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/)
|
|
|
metadata
these are not the average of multiple tests, it’s a single run: there are other things running on my computer, so that’s where the jiggle comes from. this is more a realistic-use-case tests, after i finish the auto-formatting (read: copy/paste a hundred tests into correct positions) i’ll drop the SWF so you can run your own tests / post results
**edit:** the SWF can be found [here](http://megaswf.com/simple_serve/1011520)
` Windows XP x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
&: ║ 97 ║ 145 ║ 119 ║ 91 ║ 113 ║ 100
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
|: ║ 100 ║ 97 ║ 96 ║ 177 ║ 91 ║ 92
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
^: ║ 98 ║ 103 ║ 100 ║ 100 ║ 102 ║ 126
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
~: ║ 96 ║ 123 ║ n/a ║ 94 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>>: ║ 95 ║ 91 ║ 92 ║ 119 ║ 101 ║ 103
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>>>: ║ 99 ║ 105 ║ 132 ║ 94 ║ 94 ║ 88
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
<<: ║ 103 ║ 103 ║ 86 ║ 89 ║ 95 ║ 115
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
+: ║ 118 ║ 92 ║ 92 ║ 100 ║ 89 ║ 92
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
-: ║ 99 ║ 100 ║ 91 ║ 110 ║ 147 ║ 106
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
*: ║ 93 ║ 104 ║ 102 ║ 113 ║ 92 ║ 104
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
/: ║ 89 ║ 124 ║ 105 ║ 96 ║ 95 ║ 109
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
%: ║ 96 ║ 96 ║ 95 ║ 103 ║ 103 ║ 106
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
v++: ║ 212 ║ 149 ║ n/a ║ 530 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
++v: ║ 158 ║ 149 ║ n/a ║ 531 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
v--: ║ 158 ║ 158 ║ n/a ║ 529 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
--v: ║ 147 ║ 154 ║ n/a ║ 538 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
==: ║ 93 ║ 104 ║ 93 ║ 93 ║ 123 ║ 111
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
===: ║ 104 ║ 102 ║ 97 ║ 110 ║ 85 ║ 96
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!=: ║ 104 ║ 95 ║ 113 ║ 148 ║ 136 ║ 100
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!==: ║ 97 ║ 106 ║ 95 ║ 100 ║ 90 ║ 101
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>: ║ 102 ║ 109 ║ 88 ║ 97 ║ 101 ║ 200
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
<: ║ 91 ║ 104 ║ 111 ║ 111 ║ 101 ║ 87
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
>=: ║ 86 ║ 92 ║ 111 ║ 120 ║ 87 ║ 114
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
<=: ║ 104 ║ 90 ║ 96 ║ 95 ║ 93 ║ 117
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
&&: ║ 118 ║ 116 ║ 603 ║ 476 ║ 628 ║ 613
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
||: ║ 114 ║ 103 ║ 601 ║ 496 ║ 608 ║ 599
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
!: ║ 100 ║ 90 ║ n/a ║ 90 ║ n/a ║ n/a
═══════╬═══════════╬════════════╬════════════╬═══════════╬════════════╬════════════════
=: ║ 118 ║ 96 ║ 131 ║ 109 ║ 91 ║ 99 `
these results were with the SWF being the only instance of flash on the entire computer, and the process set to “realtime” priority. basically, nothing else was running1. i have also included the missing `<=` test (the previous `<=` test was a mislabeled `<` test) and expanded `++` and `--` to cover pre/post increment.
1this does not mean there will not be variations in results
|
|
|
metadata
this post served to verify the auto-formatting adjustment worked correctly; but was left as a bump
the post above was edited: the formatting is not 100% consistent because the `int` and `Number` columns were accidentally made shorter by 1 character, so i had to manually adjust the spacing.
the formatting is now correct, and while it looks off in the SWF, it is correct on the forums due to a minor FP bug related to monospace fonts and characters outside the font’s charset
i would like to note that strict-equality tests are faster on mixed types because the logic is short-circuited to return false when they are not the same type. this short-circuiting also slows down normal tests (which are likely much more common). so avoid using them unless you actually _need_ them.
it is also very odd how the logical operators `&&` and `||` are slower with mixed types. but they are also O(1). not that it’s really a benefit in this case.
|
|
|
metadata
EDIT:
I can copy and paste the test right out of the swf. Why are my numbers so much lower?
EDIT 2: Well, they were much much lower before you edited the above test. Now just some are lower.
`
Windows Vista x86 -------------(VM: 1.4 cyclone) Release ActiveX
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 214 ║ 127 ║ 119 ║ 118 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 118 ║ 118 ║ 119 ║ 118 ║ 128 ║ 118
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 119 ║ 118 ║ 119 ║ 115 ║ 119 ║ 123
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 119 ║ 125 ║ n/a ║ 119 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 118 ║ 118 ║ 118 ║ 119 ║ 118 ║ 119
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 117 ║ 129 ║ 119 ║ 118 ║ 118 ║ 118
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 118 ║ 118 ║ 118 ║ 111 ║ 125 ║ 118
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 118 ║ 119 ║ 121 ║ 119 ║ 118 ║ 113
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 118 ║ 128 ║ 129 ║ 134 ║ 127 ║ 129
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 127 ║ 127 ║ 133 ║ 236 ║ 133 ║ 145
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 137 ║ 133 ║ 134 ║ 130 ║ 134 ║ 135
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 135 ║ 131 ║ 125 ║ 121 ║ 121 ║ 123
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 71 ║ 84 ║ n/a ║ 215 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 80 ║ 69 ║ n/a ║ 206 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 86 ║ 64 ║ n/a ║ 194 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 76 ║ 62 ║ n/a ║ 199 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 124 ║ 127 ║ 127 ║ 131 ║ 148 ║ 135
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 131 ║ 134 ║ 187 ║ 125 ║ 121 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 119 ║ 119 ║ 128 ║ 120 ║ 146 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 119 ║ 119 ║ 118 ║ 119 ║ 119 ║ 71
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 120 ║ 130 ║ 122 ║ 132 ║ 133 ║ 143
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 138 ║ 133 ║ 119 ║ 125 ║ 141 ║ 117
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 121 ║ 130 ║ 181 ║ 119 ║ 123 ║ 150
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 127 ║ 123 ║ 121 ║ 122 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 66 ║ 66 ║ 377 ║ 198 ║ 360 ║ 337
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 108 ║ 81 ║ 358 ║ 219 ║ 360 ║ 382
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 149 ║ 131 ║ n/a ║ 128 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 122 ║ 121 ║ 134 ║ 130 ║ 130 ║ 137
`
|
|
|
metadata
gta, you edited out one of the more important things. the player version.
|
|
|
metadata
`
Windows 7 x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 100 ║ 101 ║ 100 ║ 101 ║ 101 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 101 ║ 101 ║ 101 ║ 101 ║ 101 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 100 ║ 101 ║ 101 ║ 101 ║ 101 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 101 ║ 101 ║ n/a ║ 101 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 101 ║ 100 ║ 100 ║ 101 ║ 101 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 101 ║ 101 ║ 101 ║ 101 ║ 101 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 101 ║ 101 ║ 101 ║ 101 ║ 101 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 101 ║ 101 ║ 101 ║ 100 ║ 101 ║ 102
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 101 ║ 101 ║ 101 ║ 100 ║ 101 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 100 ║ 101 ║ 99 ║ 101 ║ 101 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 101 ║ 101 ║ 100 ║ 101 ║ 101 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 100 ║ 101 ║ 101 ║ 101 ║ 101 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 59 ║ 58 ║ n/a ║ 151 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 58 ║ 59 ║ n/a ║ 151 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 59 ║ 58 ║ n/a ║ 150 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 59 ║ 59 ║ n/a ║ 150 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 101 ║ 101 ║ 101 ║ 101 ║ 101 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 101 ║ 101 ║ 101 ║ 101 ║ 100 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 100 ║ 100 ║ 100 ║ 100 ║ 100 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 100 ║ 100 ║ 101 ║ 101 ║ 101 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 101 ║ 101 ║ 101 ║ 101 ║ 101 ║ 102
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 100 ║ 101 ║ 101 ║ 101 ║ 101 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 100 ║ 100 ║ 100 ║ 100 ║ 100 ║ 101
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 101 ║ 101 ║ 101 ║ 101 ║ 100 ║ 100
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 51 ║ 51 ║ 285 ║ 197 ║ 297 ║ 274
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 84 ║ 51 ║ 292 ║ 171 ║ 269 ║ 268
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 100 ║ 100 ║ n/a ║ 101 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 100 ║ 100 ║ 100 ║ 100 ║ 100 ║ 100
`
|
|
|
metadata
`
Windows 7 x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 121 ║ 121 ║ 121 ║ 121 ║ 121 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 122 ║ 121 ║ 121 ║ 121 ║ 121 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 121 ║ 122 ║ 125 ║ 122 ║ 122 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 122 ║ 122 ║ n/a ║ 120 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 121 ║ 121 ║ 122 ║ 121 ║ 121 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 122 ║ 121 ║ 121 ║ 121 ║ 121 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 121 ║ 122 ║ 121 ║ 121 ║ 122 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 121 ║ 121 ║ 123 ║ 121 ║ 121 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 121 ║ 122 ║ 121 ║ 121 ║ 122 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 122 ║ 120 ║ 121 ║ 122 ║ 121 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 121 ║ 121 ║ 122 ║ 121 ║ 123 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 121 ║ 121 ║ 121 ║ 123 ║ 122 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 73 ║ 72 ║ n/a ║ 183 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 73 ║ 73 ║ n/a ║ 182 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 72 ║ 72 ║ n/a ║ 181 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 74 ║ 75 ║ n/a ║ 183 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 121 ║ 121 ║ 122 ║ 121 ║ 122 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 121 ║ 122 ║ 121 ║ 121 ║ 121 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 123 ║ 122 ║ 122 ║ 121 ║ 123 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 121 ║ 121 ║ 122 ║ 121 ║ 121 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 121 ║ 121 ║ 121 ║ 121 ║ 121 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 121 ║ 121 ║ 122 ║ 120 ║ 122 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 121 ║ 122 ║ 122 ║ 121 ║ 122 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 121 ║ 121 ║ 121 ║ 121 ║ 121 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 80 ║ 91 ║ 358 ║ 222 ║ 362 ║ 333
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 107 ║ 90 ║ 354 ║ 203 ║ 352 ║ 332
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 124 ║ 121 ║ n/a ║ 121 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 120 ║ 121 ║ 121 ║ 121 ║ 121 ║ 121`
|
|
|
metadata
dealmaster o.0
you didn’t mess with the numbers, did you?
**edit:** bob’s are largely the same, so apparently not. o.0
that’s amazingly weird.
|
|
|
metadata
I had an incredible amount of junk running (firefox 5 tabs open, with GDR running in 1 of them, MSN, FD, Visual Studio, Notepad, and 2 win Explorers), so perhaps this might make the differences between operators appear wider.
`
Windows 7 x86 10.1.102.64(VM: 1.4 cyclone) Debug PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 216 ║ 199 ║ 227 ║ 197 ║ 216 ║ 175
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 183 ║ 258 ║ 175 ║ 189 ║ 193 ║ 192
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 174 ║ 238 ║ 208 ║ 194 ║ 244 ║ 217
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 194 ║ 198 ║ n/a ║ 196 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 188 ║ 205 ║ 201 ║ 189 ║ 185 ║ 195
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 189 ║ 206 ║ 232 ║ 180 ║ 199 ║ 199
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 210 ║ 192 ║ 208 ║ 234 ║ 190 ║ 282
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 205 ║ 194 ║ 216 ║ 189 ║ 199 ║ 188
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 194 ║ 181 ║ 201 ║ 198 ║ 198 ║ 198
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 207 ║ 196 ║ 214 ║ 184 ║ 180 ║ 189
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 197 ║ 202 ║ 209 ║ 192 ║ 203 ║ 197
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 196 ║ 201 ║ 203 ║ 192 ║ 177 ║ 191
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 199 ║ 215 ║ n/a ║ 382 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 303 ║ 207 ║ n/a ║ 427 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 203 ║ 226 ║ n/a ║ 398 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 207 ║ 195 ║ n/a ║ 382 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 285 ║ 189 ║ 177 ║ 207 ║ 195 ║ 176
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 203 ║ 187 ║ 189 ║ 199 ║ 190 ║ 210
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 195 ║ 199 ║ 190 ║ 194 ║ 196 ║ 194
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 214 ║ 194 ║ 193 ║ 199 ║ 188 ║ 194
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 217 ║ 192 ║ 185 ║ 205 ║ 189 ║ 218
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 206 ║ 188 ║ 200 ║ 190 ║ 189 ║ 214
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 195 ║ 193 ║ 204 ║ 197 ║ 183 ║ 184
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 187 ║ 206 ║ 276 ║ 194 ║ 189 ║ 194
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 211 ║ 213 ║ 531 ║ 463 ║ 608 ║ 539
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 224 ║ 237 ║ 536 ║ 486 ║ 550 ║ 497
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 217 ║ 198 ║ n/a ║ 193 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 202 ║ 208 ║ 214 ║ 215 ║ 385 ║ 409
`
**EDIT** And this is the debug client.
|
|
|
metadata
Other than `&&`, `||` and in-/decrement for Number and `&&` and `||` for different types, there doesn’t seem to be any difference at all.
` Linux 2.6.35-25-generic x86 10.3.162.29(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 120 ║ 124 ║ 120 ║ 120 ║ 120 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 121 ║ 120 ║ 121 ║ 123 ║ 121 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 121 ║ 120 ║ 120 ║ 120 ║ 121 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 123 ║ 120 ║ n/a ║ 121 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 121 ║ 121 ║ 120 ║ 121 ║ 121 ║ 124
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 121 ║ 121 ║ 122 ║ 122 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 120 ║ 123 ║ 120 ║ 119 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 120 ║ 120 ║ 119 ║ 123 ║ 123 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 120 ║ 123 ║ 121 ║ 120 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 122 ║ 120 ║ 120 ║ 124 ║ 123 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 124 ║ 124 ║ 124 ║ 120 ║ 122 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 124 ║ 120 ║ 120 ║ 120 ║ 123 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 121 ║ 119 ║ n/a ║ 172 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 122 ║ 120 ║ n/a ║ 172 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 124 ║ 121 ║ n/a ║ 172 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 121 ║ 121 ║ n/a ║ 172 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 120 ║ 124 ║ 120 ║ 120 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 120 ║ 120 ║ 120 ║ 122 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 123 ║ 122 ║ 120 ║ 121 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 121 ║ 120 ║ 120 ║ 120 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 120 ║ 121 ║ 122 ║ 120 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 120 ║ 120 ║ 120 ║ 120 ║ 125 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 121 ║ 120 ║ 120 ║ 120 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 123 ║ 120 ║ 120 ║ 120 ║ 120 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 120 ║ 120 ║ 295 ║ 209 ║ 291 ║ 291
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 126 ║ 120 ║ 343 ║ 188 ║ 342 ║ 344
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 121 ║ 120 ║ n/a ║ 121 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 123 ║ 123 ║ 120 ║ 120 ║ 120 ║ 120
`
|
|
|
metadata
Flash Player 10.3? What’s new on that one? Or is that just a linux build or something?
|
|
|
metadata
> *Originally posted by **[BobTheCoolGuy](/forums/4/topics/145440?page=1#posts-3192273):***
>
> Flash Player 10.3? What’s new on that one? Or is that just a linux build or something?
molehill, i believe.
also, increment and decrement are about 20% faster for Number compared to 10.2
* * *
here’s the source of the test: [http://pastebin.com/JTULeWRK](http://pastebin.com/JTULeWRK)
|
|
|
metadata
`
Windows 7 x86 10.2.154.12(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 97 ║ 91 ║ 91 ║ 92 ║ 96 ║ 95
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 91 ║ 96 ║ 97 ║ 96 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 91 ║ 91 ║ 93 ║ 91 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 91 ║ 90 ║ n/a ║ 91 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 91 ║ 91 ║ 91 ║ 91 ║ 92 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 91 ║ 91 ║ 90 ║ 90 ║ 91 ║ 90
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 90 ║ 90 ║ 90 ║ 90 ║ 92 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 91 ║ 91 ║ 91 ║ 91 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 91 ║ 91 ║ 91 ║ 94 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 92 ║ 91 ║ 90 ║ 90 ║ 90 ║ 90
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 90 ║ 90 ║ 92 ║ 91 ║ 91 ║ 90
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 90 ║ 91 ║ 91 ║ 91 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 91 ║ 92 ║ n/a ║ 152 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 61 ║ 61 ║ n/a ║ 151 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 91 ║ 91 ║ n/a ║ 152 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 91 ║ 61 ║ n/a ║ 153 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 91 ║ 91 ║ 91 ║ 91 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 90 ║ 90 ║ 91 ║ 91 ║ 92 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 90 ║ 90 ║ 91 ║ 91 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 91 ║ 91 ║ 91 ║ 92 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 90 ║ 91 ║ 91 ║ 91 ║ 91 ║ 90
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 91 ║ 91 ║ 92 ║ 91 ║ 90 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 91 ║ 91 ║ 90 ║ 90 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 91 ║ 92 ║ 91 ║ 91 ║ 91 ║ 91
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 91 ║ 61 ║ 260 ║ 198 ║ 284 ║ 247
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 62 ║ 91 ║ 260 ║ 197 ║ 260 ║ 250
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 91 ║ 91 ║ n/a ║ 91 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 92 ║ 91 ║ 90 ║ 91 ║ 91 ║ 90
`
|
|
|
metadata
ehh wdf?
`
Windows 7 x86 10.2.152.26(VM: 1.4 cyclone) Debug PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 780 ║ 875 ║ 820 ║ 920 ║ 850 ║ 795
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 905 ║ 775 ║ 920 ║ 810 ║ 905 ║ 815
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 780 ║ 855 ║ 770 ║ 910 ║ 765 ║ 870
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 815 ║ 895 ║ n/a ║ 850 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 785 ║ 890 ║ 800 ║ 885 ║ 775 ║ 870
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 795 ║ 775 ║ 845 ║ 770 ║ 925 ║ 765
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 865 ║ 850 ║ 910 ║ 860 ║ 795 ║ 835
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 760 ║ 880 ║ 780 ║ 865 ║ 825 ║ 775
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 850 ║ 780 ║ 905 ║ 770 ║ 865 ║ 815
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 875 ║ 860 ║ 790 ║ 865 ║ 790 ║ 885
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 795 ║ 880 ║ 815 ║ 755 ║ 835 ║ 775
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 885 ║ 855 ║ 920 ║ 775 ║ 875 ║ 875
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 840 ║ 860 ║ n/a ║ 1130 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ crashed 15 seconds exceeded
`
wow my computer sucks.
Does seem that from other people’s tests that operators are pretty much the same. That means bitwise is not necessarily faster than using math operators, notably shifting instead of multiplying by 2; \*0.5 is not faster than /2; integer division is not slower than Number division, and pre/post increment doesn’t matter.
Edit: here we go:
`
Windows 7 x86 10.2.152.26(VM: 1.4 cyclone) Debug StandAlone
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 345 ║ 365 ║ 335 ║ 370 ║ 345 ║ 415
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 375 ║ 360 ║ 360 ║ 310 ║ 355 ║ 365
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 330 ║ 330 ║ 330 ║ 385 ║ 365 ║ 390
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 335 ║ 385 ║ n/a ║ 345 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 395 ║ 370 ║ 480 ║ 350 ║ 320 ║ 365
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 360 ║ 400 ║ 330 ║ 340 ║ 365 ║ 330
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 375 ║ 350 ║ 360 ║ 350 ║ 355 ║ 365
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 370 ║ 385 ║ 340 ║ 390 ║ 345 ║ 335
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 335 ║ 330 ║ 360 ║ 345 ║ 355 ║ 340
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 415 ║ 340 ║ 420 ║ 360 ║ 395 ║ 400
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 330 ║ 415 ║ 360 ║ 340 ║ 340 ║ 345
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 360 ║ 335 ║ 355 ║ 340 ║ 365 ║ 345
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 380 ║ 365 ║ n/a ║ 445 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 365 ║ 375 ║ n/a ║ 460 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 375 ║ 405 ║ n/a ║ 565 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 380 ║ 340 ║ n/a ║ 455 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 315 ║ 370 ║ 410 ║ 345 ║ 355 ║ 450
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 365 ║ 370 ║ 385 ║ 335 ║ 365 ║ 450
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 560 ║ 365 ║ 355 ║ 425 ║ 350 ║ 395
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 370 ║ 340 ║ 340 ║ 335 ║ 365 ║ 325
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 360 ║ 335 ║ 365 ║ 360 ║ 535 ║ 330
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 345 ║ 360 ║ 310 ║ 360 ║ 350 ║ 345
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 345 ║ 380 ║ 365 ║ 335 ║ 355 ║ 410
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 365 ║ 335 ║ 520 ║ 330 ║ 340 ║ 355
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 355 ║ 340 ║ 910 ║ 655 ║ 910 ║ 870
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 455 ║ 435 ║ 870 ║ 645 ║ 815 ║ 780
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 415 ║ 355 ║ n/a ║ 340 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 380 ║ 375 ║ 360 ║ 385 ║ 725 ║ 665
`
|
|
|
metadata
Can I get a downloadble link? Megaswf protects their .swf pretty well.
|
|
|
metadata
> *Originally posted by **[UnknownGuardian](/forums/4/topics/145440?page=1#posts-3194175):***
>
> Can I get a downloadble link? Megaswf protects their .swf pretty well.
If you click the “Save” button…
|
|
|
metadata
I had a bunch of tabs open and steam is running, don’t know if that’ll effect it much.
`
Windows Vista x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 136 ║ 117 ║ 125 ║ 139 ║ 121 ║ 109
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 106 ║ 125 ║ 154 ║ 122 ║ 110 ║ 136
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 128 ║ 135 ║ 121 ║ 109 ║ 135 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 135 ║ 121 ║ n/a ║ 106 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 115 ║ 136 ║ 110 ║ 134 ║ 136 ║ 113
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 136 ║ 111 ║ 136 ║ 136 ║ 110 ║ 126
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 108 ║ 137 ║ 136 ║ 109 ║ 128 ║ 135
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 137 ║ 135 ║ 110 ║ 126 ║ 136 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 136 ║ 112 ║ 127 ║ 135 ║ 122 ║ 110
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 114 ║ 126 ║ 137 ║ 122 ║ 110 ║ 136
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 125 ║ 136 ║ 121 ║ 109 ║ 135 ║ 122
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 135 ║ 120 ║ 110 ║ 134 ║ 120 ║ 123
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 123 ║ 115 ║ n/a ║ 234 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 123 ║ 122 ║ n/a ║ 234 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 124 ║ 122 ║ n/a ║ 275 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 114 ║ 128 ║ n/a ║ 233 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 114 ║ 136 ║ 125 ║ 128 ║ 137 ║ 111
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 135 ║ 110 ║ 122 ║ 136 ║ 111 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 115 ║ 123 ║ 136 ║ 109 ║ 121 ║ 137
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 122 ║ 136 ║ 110 ║ 119 ║ 136 ║ 120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 134 ║ 110 ║ 121 ║ 136 ║ 121 ║ 106
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 108 ║ 120 ║ 135 ║ 120 ║ 114 ║ 136
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 121 ║ 134 ║ 122 ║ 113 ║ 135 ║ 121
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 134 ║ 121 ║ 112 ║ 135 ║ 120 ║ 109
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 119 ║ 129 ║ 416 ║ 294 ║ 426 ║ 443
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 128 ║ 106 ║ 487 ║ 286 ║ 436 ║ 467
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 136 ║ 123 ║ n/a ║ 121 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 136 ║ 136 ║ 112 ║ 128 ║ 135 ║ 123
`
|
|
|
metadata
> *Originally posted by **[skyboy](/forums/4/topics/145440?page=1#posts-3192157):***
>
> dealmaster o.0
>
> you didn’t mess with the numbers, did you?
>
> **edit:** bob’s are largely the same, so apparently not. o.0
>
> that’s amazingly weird.
I know, I did the test twice just to make sure.
I’m using an Intel Q6600 @ 3GHz
|
|
|
metadata
`Windows 7 x86 10.1.102.64(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 88 ║ 102 ║ 62 ║ 89 ║ 102 ║ 61
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 89 ║ 89 ║ 103 ║ 90 ║ 103 ║ 103
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 87 ║ 89 ║ 88 ║ 102 ║ 89 ║ 98
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 61 ║ 89 ║ n/a ║ 89 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 60 ║ 89 ║ 62 ║ 89 ║ 91 ║ 63
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 99 ║ 90 ║ 103 ║ 62 ║ 88 ║ 103
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 104 ║ 65 ║ 89 ║ 90 ║ 89 ║ 103
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 103 ║ 103 ║ 61 ║ 103 ║ 90 ║ 62
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 63 ║ 103 ║ 90 ║ 61 ║ 88 ║ 89
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 102 ║ 62 ║ 89 ║ 103 ║ 63 ║ 103
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 103 ║ 103 ║ 90 ║ 104 ║ 62 ║ 104
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 93 ║ 102 ║ 63 ║ 88 ║ 90 ║ 61
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 95 ║ 96 ║ n/a ║ 352 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 103 ║ 76 ║ n/a ║ 352 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 75 ║ 76 ║ n/a ║ 351 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 77 ║ 76 ║ n/a ║ 352 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 89 ║ 103 ║ 60 ║ 88 ║ 103 ║ 61
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 103 ║ 88 ║ 102 ║ 62 ║ 88 ║ 102
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 102 ║ 89 ║ 89 ║ 102 ║ 62 ║ 88
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 88 ║ 102 ║ 62 ║ 88 ║ 88 ║ 102
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 62 ║ 102 ║ 102 ║ 61 ║ 89 ║ 102
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 102 ║ 89 ║ 88 ║ 102 ║ 90 ║ 102
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 89 ║ 102 ║ 90 ║ 63 ║ 103 ║ 62
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 103 ║ 63 ║ 88 ║ 103 ║ 62 ║ 103
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 70 ║ 92 ║ 333 ║ 232 ║ 334 ║ 350
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 88 ║ 75 ║ 374 ║ 230 ║ 335 ║ 301
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 90 ║ 63 ║ n/a ║ 89 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 103 ║ 62 ║ 88 ║ 91 ║ 62 ║ 89`
Buhahaha. My 10.1 is faster than all yall’s 10.2 XD
|
|
|
metadata
Not sure how good these numbers are. You’re only doing one operation inside each for loop, so the overhead from the for loop becomes significant. It’s possible that people are getting really close numbers for every operator because those are most the numbers for the for loop alone. Try unraveling a bit. Drop a zero off REPS and do each operator 10 times in their loop. Also if Flash Player had a good VM I’d be tempted to say it might just skip the loops altogether since most of them don’t make any changes.
|
|
|
metadata
I do agree… jump could be quite an expensive instruction. though I’m not sure how much more work you’re willing to spend on this lol.
|
|
|
metadata
> *Originally posted by **[jonathanasdf](/forums/4/topics/145440?page=1#posts-3197469):***
>
> I do agree… jump could be quite an expensive instruction. though I’m not sure how much more work you’re willing to spend on this lol.
actually, if adobe does it right, jump could effectively take 0 time. (make a simple bounds check{O(1)} then `index += jumpAmount` {O(1)})
however, that would require it be 100% interpreted, i think it’s recompiled instead, while tying back into FP logic rather than native logic. i need to dig into nJIT sources and find out what it does.
> *Originally posted by **[Rivaledsouls](/forums/4/topics/145440?page=1#posts-3196376):***
>
> Not sure how good these numbers are. You’re only doing one operation inside each for loop, so the overhead from the for loop becomes significant. It’s possible that people are getting really close numbers for every operator because those are most the numbers for the for loop alone. Try unraveling a bit. Drop a zero off REPS and do each operator 10 times in their loop. Also if Flash Player had a good VM I’d be tempted to say it might just skip the loops altogether since most of them don’t make any changes.
since the loops take non-zero time, they are not being skipped.
although, if you’re right and the operators _normally_ take significantly less time than a jump, then dropping a zero would be probably be unnecessary
although, command caching would definitely come into play and speed these up, but not strip all differences. and since there are _dramatic_ differences (ie. int++ and Number++) the operations _are_ happening. this is partly a result of a poor compiler, not that i’m complaining about it allowing these tests in the first place
> *Originally posted by **[Draco18s](/forums/4/topics/145440?page=1#posts-3196175):***
>
> Buhahaha. My 10.1 is faster than all yall’s 10.2 XD
if you used 10.2 you would see faster results. you just have the most powerful computer on the forums.
> *Originally posted by **[jonathanasdf](/forums/4/topics/145440?page=1#posts-3193939):***` … Debug PlugIn`
>
> wow my computer sucks.
the problem is the debug player combined with you doing… apparently, some very heavy processing on the same core flash is running on.
* * *
i’ll go ahead and run a F&R to 100x the operations and drop a zero off `REPS` to help accentuate any differences.
|
|
|
metadata
> if you used 10.2 you would see faster results. you just have the most powerful computer on the forums.
Yes, I’m aware. :P
I love my Phenom II x6 \<3
|