|
metadata
> i’ll go ahead and run a F&R to 100x the operations and drop a zero off REPS to help accentuate any differences.
Do take advantage of FD’s regex F&R :)
|
|
|
metadata
> *Originally posted by **[jonathanasdf](/forums/4/topics/145440?page=2#posts-3200881):***
>
> Do take advantage of FD’s regex F&R :)
of course. `/^(\t{4}[-+~!]*val[^\n]+)$/g`
` Windows XP x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 20 ║ 25 ║ 15 ║ 21 ║ 11 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 22 ║ 21 ║ 22 ║ 22 ║ 18 ║ 23
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 22 ║ 21 ║ 18 ║ 21 ║ 17 ║ 23
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 17 ║ 20 ║ n/a ║ 19 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 22 ║ 18 ║ 23 ║ 21 ║ 15 ║ 21
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 24 ║ 19 ║ 24 ║ 21 ║ 23 ║ 24
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 23 ║ 24 ║ 18 ║ 24 ║ 21 ║ 22
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 20 ║ 22 ║ 21 ║ 22 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 21 ║ 20 ║ 24 ║ 19 ║ 22 ║ 19
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 24 ║ 21 ║ 22 ║ 20 ║ 23 ║ 18
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 22 ║ 17 ║ 24 ║ 21 ║ 20 ║ 23
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 19 ║ 22 ║ 20 ║ 22 ║ 24 ║ 21
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 16 ║ 19 ║ n/a ║ 793 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 17 ║ 19 ║ n/a ║ 790 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 17 ║ 18 ║ n/a ║ 793 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 14 ║ 18 ║ n/a ║ 796 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 21 ║ 21 ║ 21 ║ 23 ║ 22 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 22 ║ 21 ║ 21 ║ 22 ║ 20 ║ 21
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 19 ║ 23 ║ 21 ║ 22 ║ 20 ║ 22
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 22 ║ 22 ║ 20 ║ 20 ║ 21 ║ 21
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 22 ║ 21 ║ 21 ║ 21 ║ 24 ║ 23
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 20 ║ 21 ║ 19 ║ 20 ║ 20 ║ 23
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 20 ║ 29 ║ 21 ║ 20 ║ 21 ║ 19
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 125 ║ 22 ║ 19 ║ 20 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 197 ║ 197 ║ 5317 ║ 4074 ║ 5596 ║ 5333
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 290 ║ 203 ║ 10 ║ 3991 ║ 5682 ║ 6275
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 11 ║ 14 ║ n/a ║ 15 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 16 ║ 22 ║ 11 ║ 12 ║ 11 ║ 13 `
the results are both interesting, and surprising.
they’re basically exactly the same, except this time `++number` is _hundreds_ of times slower.
also note, i’m doing 10x more work. and look at how horribly the logical operators perform on mixed types. _avoid mixing types with them_
the or operator being so fast might be a result of the int value being 0…
i would like to drop another 0 and up the number of tests to 1000 per loop, but Number’s increment/decrement operators would make that impossible.
i’ve upped my script timeout limit to 60 seconds, just so people don’t question why it didn’t time out
link: [http://megaswf.com/simple\_serve/1012125](http://megaswf.com/simple_serve/1012125)
|
|
|
metadata
Actually I think it may be a good idea to remove all that && || and ! nonsense… since they’d be casting the values to boolean and that might actually be what’s slow. I really didn’t understand why you had them in there in the first case. Not many people would use &&, ||, or ! on a Number… (though they may be used frequently for ints)
|
|
|
metadata
> *Originally posted by **[jonathanasdf](/forums/4/topics/145440?page=2#posts-3200986):***
>
> Actually I think it may be a good idea to remove all that && || and ! nonsense… since they’d be casting the values to boolean and that might actually be what’s slow. I really didn’t understand why you had them in there in the first case. Not many people would use &&, ||, or ! on a Number… (though they may be used frequently for ints)
i copy-pasted jackson’s test. though it does show an important point: do not mix types.
and casting to a boolean should not be expensive, not even for Number.
`if (n == n) { // treat NaN as false. if processor fails, use another alternative (Adobe uses two, one from sun, the other in-house using a similar method below.)
union {
double x;
long y;
}
x = n;
return (y << L1) != L0; // -0 is a valid value (we're getting rid of the ones-compliment sign bit by shifting left 1. would & be faster?). and should be false.
// -Infinity and Infinity should both be true, along with all other non-zero non-NaN values.
}
return FALSE;`
* * *
also, someone should do a similar test for Booleans using the logical operators.
and separate tests for uint/int/Number/String/Object as-is, and with the `!` operator.
these tests show that `!` is quite fast, for all numeric types.
i’ll also add a speed test for accessing a variable and an empty loop, to see what kind of impact those has on the tests.
|
|
|
metadata
once again you just post a snippet without explaining its context… is that a snippet from a cast of number to boolean? it does seem like it… and wow is that doing a bitwise cast from double to long using an union? never saw that before. I would have used pointers.. Anyways, a cast from Number to Boolean is probably a lot more expensive than a cast from int to boolean, and definitely more expensive than just a single operation on 2 same types.
Still I do still wonder why mathematical operations on mixed types aren’t slower…
|
|
|
metadata
> *Originally posted by **[jonathanasdf](/forums/4/topics/145440?page=2#posts-3201065):***
>
> once again you just post a snippet without explaining its context… is that a snippet from a cast of number to boolean? it does seem like it… and wow is that doing a bitwise cast from double to long using an union? never saw that before. I would have used pointers.. Anyways, a cast from Number to Boolean is probably a lot more expensive than a cast from int to boolean, and definitely more expensive than just a single operation on 2 same types.
it doesn’t have context because it most likely isn’t used. i just typed it up there and then. and yes, it’s to cast from double to bool. the FPU likely handles that though… hrm. actually, the entire thing could probably be replaced with `return n != 0;` if you know for a fact the FPU handles NaN and -0 correctly.
it’s not doing a bitwise cast, it’s essentially a more readable pointer manipulation: this would be compiled by a good compiler, not one made by Adobe.
and yes, it is more expensive, but not 2,000% more expensive. although a check on uint/int should be exactly the same as just int or just uint.
> *Originally posted by **[jonathanasdf](/forums/4/topics/145440?page=2#posts-3201065):***
>
> Still I do still wonder why mathematical operations on mixed types aren’t slower…
actually, i think variable access and the loop are _still_ oppressing the true results.
if someone from the front page who had largely similar values runs this and it’s still a difference of only 0-1 ms, then fretting over operator speed is a waste of time.
there are far more expensive areas to widdle at
remember, those most recent results are 500,000,000 tests _each_ i’m edging at the bounds of int 182 times in around 3 seconds. on _eight year old hardware_
|
|
|
metadata
Sorry I didn’t mean bitwise cast, I meant like a type cast that doesn’t alter the bit representation. so basically a pointer cast although since you don’t use pointers it wouldn’t make sense to have said pointer cast.
But I do agree, the results pretty much say that we don’t need to worry about this, and 8/3 is not 2000x slower than 8.0/3.0, nor is x/2 slower than x\*0.5 or x\>\>1.
|
|
|
metadata
You’ve already established that conditional branching is expensive. Well, the logical operators use conditional branching. (i.e. `a = b || c` is essentially `a = Boolean(b) ? b : c`.) Presumably, mixed type would be worse, since both branches would need to evaluate to the same type (`a = Boolean(b) ? Number(b) : Number(c)`). I’m not sure why `uint || int` is so fast.
|
|
|
metadata
> *Originally posted by **[Wordblind](/forums/4/topics/145440?page=2#posts-3201165):***
>
> You’ve already established that conditional branching is expensive. Well, the logical operators use conditional branching. (i.e. `a = b || c` is essentially `a = Boolean(b) ? b : c`.) Presumably, mixed type would be worse, since both branches would need to evaluate to the same type (`a = Boolean(b) ? Number(b) : Number(c)`). I’m not sure why `uint || int` is so fast.
actually, it’s more like `Boolean(a) ? a : b` there is no assignment, it’s simply pushed to the stack. followed by a pop, but that should take virtually zero time. the implicit type-casting takes place on the assignment tests (but is not exhaustive.)
however, yes, it does appear the branching is very expensive and should be avoided if possible.
…i should modify some things now to use look-up tables instead of `&&` and `||` **1**
~~as for why `int || uint` is so fast: uh. actually, what i thought i may be doesn’t make sense.~~
whoops. that test is actually `int ^ int` of different values.
well, out of the 198 tests; the most valuable thing that’s come of it is that humans make mistakes.
…i don’t know why it’s so much faster than the other `int ^ int` test though. that’s weird.
i checked, the other one is correct.
* * *
**edit:**
[1.] i have done a test concerning this, and in the event there are more than two values being compared (ie. three) using various methods at the same 500 million operations. same player, release plug-in
`ByteArray via []: 5357 ms // best use of memory. up to 256 unique values, up to 8 "traditional" combo values
Array via []: 33299 ms // well, this is actually a surprise. array created with new Array(50) and accessed as array[5]
dynamic Vector<int> via []: 2706 ms // holy crap. this would be better than && for mixed types or non-int types
fixed len Vector<int> via []: 2687 ms
Object via []: 16561 ms // whoa. 10.2 has very improved performance for this. 500 indicies filled, from 500-0 in that order. index "5" accessed
class var dynamic Vector<int> via []: 2715 ms // no local cache.`
well, first of all. what the hell happened to Array?
second of all. what the hell happened to Object?
third of all. the 10.2 player must dramatically speed up class var access. to the point it’s the same as local vars. or slow down local vars to the point of class vars. if the former: win! if the latter: i am disappointed, Adobe.
fourth of all. whoo! a fixed-length Vector look-up table would provide significant speed ups compared to logical operators such as `&&` and `||` in critical code. consider `lookup[v]` and `!lookup[v]` instead of comparing `v >= x && v <= y` and `v < x || v > y`
so long as you can fill it to a reasonable value. (an error is thrown if you access an index \>= length. i do not know why adobe did this on dynamic-length vectors)
|
|
|
metadata
Here you go:
`
Windows Vista x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 13 ║ 14 ║ 16 ║ 11 ║ 13 ║ 16
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 15 ║ 15 ║ 10 ║ 13 ║ 17 ║ 15
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 19 ║ 15 ║ 15 ║ 19 ║ 16 ║ 14
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 15 ║ 17 ║ n/a ║ 17 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 15 ║ 11 ║ 12 ║ 14 ║ 11 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 11 ║ 12 ║ 14 ║ 12 ║ 13 ║ 17
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 13 ║ 15 ║ 12 ║ 14 ║ 15 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 15 ║ 12 ║ 14 ║ 15 ║ 12 ║ 14
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 12 ║ 14 ║ 15 ║ 13 ║ 13 ║ 16
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 13 ║ 15 ║ 13 ║ 14 ║ 15 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 15 ║ 12 ║ 14 ║ 16 ║ 15 ║ 15
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 12 ║ 15 ║ 19 ║ 13 ║ 14 ║ 23
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 31 ║ 32 ║ n/a ║ 951 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 16 ║ 12 ║ n/a ║ 910 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 13 ║ 15 ║ n/a ║ 924 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 15 ║ 15 ║ n/a ║ 910 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 15 ║ 14 ║ 11 ║ 14 ║ 16 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 14 ║ 16 ║ 15 ║ 16 ║ 10 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 10 ║ 14 ║ 15 ║ 9 ║ 13 ║ 14
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 14 ║ 16 ║ 9 ║ 14 ║ 16 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 16 ║ 10 ║ 13 ║ 15 ║ 11 ║ 16
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 9 ║ 13 ║ 15 ║ 9 ║ 14 ║ 15
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 13 ║ 16 ║ 16 ║ 14 ║ 18 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 16 ║ 12 ║ 14 ║ 16 ║ 10 ║ 14
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 151 ║ 156 ║ 3889 ║ 2360 ║ 3554 ║ 4350
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 1875 ║ 1925 ║ 12 ║ 2700 ║ 4276 ║ 4576
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 11 ║ 14 ║ n/a ║ 14 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 12 ║ 12 ║ 11 ║ 13 ║ 12 ║ 11
`
or was pretty slow on my machine.
|
|
|
metadata
`
Windows 7 x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 9
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 10 ║ 10 ║ n/a ║ 10 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 11 ║ 10 ║ 10 ║ 10 ║ 10 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 10 ║ 9 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 10 ║ 10 ║ 11 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 6 ║ 5 ║ n/a ║ 515 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 6 ║ 6 ║ n/a ║ 514 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 6 ║ 5 ║ n/a ║ 513 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 6 ║ 5 ║ n/a ║ 515 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 10 ║ 10 ║ 11 ║ 10 ║ 10 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 10 ║ 10 ║ 11 ║ 10 ║ 10 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 10 ║ 11 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 10 ║ 10 ║ 10 ║ 10 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 171 ║ 170 ║ 2763 ║ 1347 ║ 2758 ║ 2528
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 394 ║ 395 ║ 10 ║ 1347 ║ 2780 ║ 2531
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 10 ║ 10 ║ n/a ║ 10 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 10 ║ 10 ║ 10 ║ 11 ║ 10 ║ 10
`
|
|
|
metadata
`Windows 7 x86 10.1.102.64(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 7 ║ 9 ║ 11 ║ 8 ║ 9 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 10 ║ 9 ║ 10 ║ 10 ║ 6 ║ 9
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 6 ║ 10 ║ 9 ║ 7 ║ 10 ║ 6
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 10 ║ 9 ║ n/a ║ 11 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 9 ║ 9 ║ 10 ║ 9 ║ 6 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 9 ║ 9 ║ 7 ║ 10 ║ 9 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 6 ║ 10 ║ 10 ║ 6 ║ 8 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 10 ║ 6 ║ 9 ║ 10 ║ 6 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 10 ║ 9 ║ 7 ║ 9 ║ 9 ║ 6
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 6 ║ 8 ║ 9 ║ 10 ║ 11 ║ 7
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 8 ║ 9 ║ 11 ║ 6 ║ 10 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 10 ║ 5 ║ 9 ║ 11 ║ 7 ║ 9
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 9 ║ 156 ║ n/a ║ 597 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 8 ║ 150 ║ n/a ║ 600 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 8 ║ 152 ║ n/a ║ 598 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 10 ║ 153 ║ n/a ║ 596 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 10 ║ 6 ║ 10 ║ 9 ║ 11 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 9 ║ 11 ║ 6 ║ 9 ║ 11 ║ 6
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 6 ║ 8 ║ 6 ║ 9 ║ 10 ║ 7
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 9 ║ 6 ║ 9 ║ 9 ║ 10 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 11 ║ 9 ║ 6 ║ 8 ║ 6 ║ 9
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 6 ║ 11 ║ 9 ║ 6 ║ 11 ║ 6
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 10 ║ 6 ║ 10 ║ 6 ║ 9 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 9 ║ 6 ║ 9 ║ 10 ║ 6 ║ 8
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 152 ║ 152 ║ 3161 ║ 1910 ║ 3137 ║ 3136
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 367 ║ 329 ║ 9 ║ 1930 ║ 3096 ║ 3117
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 9 ║ 10 ║ n/a ║ 6 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 9 ║ 10 ║ 6 ║ 9 ║ 9 ║ 6`
|
|
|
metadata
> *Originally posted by **[Draco18s](/forums/4/topics/145440?page=1#posts-3200714):***
> > 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
\*nerd eye gleam\* more detailed specs plox?
And here’s my readout on my mom’s cruddy laptop (all I have atm). When I get home, I might take some time to analyze the data and translate the implications into noob friendly terms.
`
Windows XP x86 10.1.53.64(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 20 ║ 20 ║ 20 ║ 20 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 10 ║ 20 ║ 20 ║ 20 ║ 21 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 20 ║ 10 ║ 20 ║ 20 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 20 ║ 10 ║ n/a ║ 10 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 20 ║ 20 ║ 20 ║ 10 ║ 10 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 20 ║ 20 ║ 20 ║ 20 ║ 10 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 20 ║ 20 ║ 20 ║ 30 ║ 20 ║ 10
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 20 ║ 20 ║ 20 ║ 20 ║ 10 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 10 ║ 20 ║ 11 ║ 20 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 10 ║ 10 ║ 20 ║ 10 ║ 20 ║ 30
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 10 ║ 20 ║ 20 ║ 30 ║ 10 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 20 ║ 20 ║ 20 ║ 20 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 10 ║ 351 ║ n/a ║ 1001 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 20 ║ 351 ║ n/a ║ 1011 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 20 ║ 351 ║ n/a ║ 1011 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 10 ║ 351 ║ n/a ║ 1011 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 20 ║ 20 ║ 20 ║ 20 ║ 10 ║ 30
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 20 ║ 20 ║ 10 ║ 20 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 10 ║ 20 ║ 20 ║ 21 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 20 ║ 20 ║ 20 ║ 20 ║ 10 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 20 ║ 20 ║ 20 ║ 20 ║ 30 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 20 ║ 20 ║ 20 ║ 10 ║ 20 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 20 ║ 10 ║ 30 ║ 10 ║ 10 ║ 30
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 20 ║ 10 ║ 20 ║ 10 ║ 10 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 351 ║ 340 ║ 7181 ║ 4897 ║ 7220 ║ 7120
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 802 ║ 801 ║ 20 ║ 4917 ║ 8572 ║ 7301
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 20 ║ 10 ║ n/a ║ 20 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 20 ║ 20 ║ 20 ║ 20 ║ 20 ║ 20
`
|
|
|
metadata
very curious. in 10.1 uint is about 10x slower than int for decrement and increment. i had thought this was fixed between 10.0 and 10.1; but it does look it was _actually_ fixed between 10.1 and 10.2, which is good.
although, Number is still much slower, but that’s unavoidable.
interestingly, the increment and decrement tests are 2x faster than all other tests, even the ones that only use one variable (!, ~). however, the comparison operators are just as fast as normal operators.
* * *
**edit:** results from a modern mac:
`Mac OS 10.6.6 x86 10.2.154.13(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 12 ║ 11 ║ 11 ║ 11 ║ 11 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 11 ║ 11 ║ 11 ║ 12 ║ 11 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 13 ║ 13 ║ 11 ║ 11 ║ 11 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 11 ║ 11 ║ n/a ║ 11 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 12 ║ 11 ║ 11 ║ 11 ║ 11 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 11 ║ 11 ║ 11 ║ 11 ║ 11 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 12 ║ 12 ║ 11 ║ 11 ║ 12 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 12 ║ 11 ║ 11 ║ 11 ║ 11 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 11 ║ 12 ║ 11 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 13 ║ 11 ║ 11 ║ 11 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 11 ║ 12 ║ 11 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 11 ║ 12 ║ 11 ║ 11 ║ 11 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 10 ║ 9 ║ n/a ║ 567 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 11 ║ 11 ║ n/a ║ 561 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 11 ║ 11 ║ n/a ║ 562 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 10 ║ 10 ║ n/a ║ 560 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 12 ║ 11 ║ 11 ║ 12 ║ 11 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 11 ║ 11 ║ 12 ║ 11 ║ 12 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 12 ║ 11 ║ 11 ║ 12 ║ 11 ║ 11`
|
|
|
metadata
I have no idea why the laptop handled everything faster, somethin’ must’ve been running when i did my desktop test or something.
`
Windows XP x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 11 ║ 12 ║ 12 ║ 11 ║ 13 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 12 ║ 12 ║ 12 ║ 13 ║ 12 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 12 ║ 11 ║ 13 ║ 13 ║ 11 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 13 ║ 13 ║ n/a ║ 12 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 13 ║ 12 ║ 11 ║ 13 ║ 13 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 13 ║ 12 ║ 13 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 12 ║ 13 ║ 13 ║ 12 ║ 13 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 12 ║ 13 ║ 12 ║ 12 ║ 13 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 13 ║ 12 ║ 13 ║ 13 ║ 12 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 13 ║ 12 ║ 13 ║ 13 ║ 12 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 13 ║ 12 ║ 12 ║ 12 ║ 12 ║ 11
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 12 ║ 13 ║ 12 ║ 13 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 7 ║ 6 ║ n/a ║ 619 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 8 ║ 6 ║ n/a ║ 621 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 8 ║ 6 ║ n/a ║ 634 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 7 ║ 6 ║ n/a ║ 623 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 13 ║ 12 ║ 13 ║ 14 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 12 ║ 12 ║ 12 ║ 13 ║ 13 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 13 ║ 12 ║ 11 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 11 ║ 13 ║ 13 ║ 11 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 11 ║ 13 ║ 11 ║ 12 ║ 11 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 12 ║ 11 ║ 12 ║ 13 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 12 ║ 11 ║ 12 ║ 12 ║ 11 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 13 ║ 13 ║ 12 ║ 13 ║ 13 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 208 ║ 208 ║ 3338 ║ 1625 ║ 3394 ║ 3559
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 538 ║ 564 ║ 12 ║ 1626 ║ 3368 ║ 3070
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 12 ║ 11 ║ n/a ║ 12 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 12 ║ 12 ║ 13 ║ 13 ║ 12 ║ 12
`
|
|
|
metadata
> *Originally posted by **[truefire](/forums/4/topics/145440?page=2#posts-3202705):***
> > *Originally posted by **[Draco18s](/forums/4/topics/145440?page=1#posts-3200714):***
> > > 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
>
> **nerd eye gleam** more detailed specs plox?
>
> And here’s my readout on my mom’s cruddy laptop (all I have atm). When I get home, I might take some time to analyze the data and translate the implications into noob friendly terms.
Phenom II x6 1090T (3.2 GHz). Only 2 GB of RAM at current, as DDR3 is still on the expensive side.
|
|
|
metadata
6 cores… wonder if I could get one of those in my new lappy. Wasn’t even aware there were 6x computers on the market…
Also, does that affect your flash performance? For some reason I was under the impression that flash didn’t support mutlithreading… Or… multiprocessing? Well, technical terminology aside, I didn’t think flash could run on multiple cores.
|
|
|
metadata
I don’t think it does, but it does mean it has a whole core to itself, leaving the other 5 to do Other Things.
I can run AI War: Fleet Command (as host) on high ship caps and start with 30 planets (defender mode) and not (immediately) murder my computer. The game will crash after about 10-15 minutes because it runs out of RAM though.
|
|
|
metadata
> *Originally posted by **[skyboy](/forums/4/topics/145440?page=1#posts-3192330):***
> > *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.
Oh, I thought that was FP11
Anyway,
`
Windows 7 x86 10.2.152.26(VM: 1.4 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 13 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 12 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 12 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 13 ║ 12 ║ n/a ║ 12 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 13 ║ 13 ║ 13 ║ 13 ║ 13 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 12 ║ 13 ║ 12 ║ 13 ║ 14 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 13 ║ 13 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 12 ║ 12 ║ 13 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 12 ║ 12 ║ 12 ║ 13 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 12 ║ 13 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 13 ║ 12 ║ 12 ║ 12 ║ 12 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 12 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 7 ║ 6 ║ n/a ║ 620 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 8 ║ 7 ║ n/a ║ 652 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 8 ║ 6 ║ n/a ║ 619 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 7 ║ 6 ║ n/a ║ 620 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 12 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 12 ║ 12 ║ 13 ║ 13 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 12 ║ 12 ║ 13 ║ 12 ║ 13 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 13 ║ 12 ║ 12 ║ 12 ║ 12 ║ 13
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 13 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 12 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 12 ║ 12 ║ 13 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 14 ║ 12 ║ 12 ║ 12 ║ 12 ║ 12
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 206 ║ 225 ║ 3334 ║ 1629 ║ 3351 ║ 3045
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 502 ║ 487 ║ 12 ║ 1622 ║ 3765 ║ 3406
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 12 ║ 12 ║ n/a ║ 12 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 12 ║ 12 ║ 12 ║ 13 ║ 12 ║ 12
`
|
|
|
metadata
Check out the killer Debug times for the `=` operator.
`
Windows 7 x86 10.1.102.64(VM: 1.4 cyclone) Debug PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 21 ║ 19 ║ 19 ║ 17 ║ 18 ║ 18
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 17 ║ 17 ║ 18 ║ 19 ║ 19 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 19 ║ 17 ║ 20 ║ 19 ║ 18 ║ 25
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 20 ║ 25 ║ n/a ║ 22 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 26 ║ 19 ║ 20 ║ 19 ║ 20 ║ 18
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 19 ║ 21 ║ 21 ║ 19 ║ 21 ║ 19
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 19 ║ 18 ║ 19 ║ 19 ║ 19 ║ 18
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 17 ║ 18 ║ 20 ║ 19 ║ 17 ║ 17
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 19 ║ 19 ║ 26 ║ 18 ║ 18 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 18 ║ 22 ║ 18 ║ 19 ║ 19 ║ 19
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 19 ║ 19 ║ 23 ║ 25 ║ 23 ║ 17
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 20 ║ 17 ║ 19 ║ 18 ║ 19 ║ 19
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 186 ║ 183 ║ n/a ║ 708 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 188 ║ 187 ║ n/a ║ 711 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 187 ║ 183 ║ n/a ║ 712 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 225 ║ 191 ║ n/a ║ 727 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 20 ║ 20 ║ 20 ║ 19 ║ 20 ║ 22
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 19 ║ 21 ║ 17 ║ 19 ║ 19 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 27 ║ 20 ║ 19 ║ 20 ║ 19 ║ 19
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 20 ║ 18 ║ 19 ║ 21 ║ 26 ║ 23
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 20 ║ 17 ║ 19 ║ 18 ║ 21 ║ 20
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 18 ║ 20 ║ 19 ║ 19 ║ 17 ║ 17
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 20 ║ 19 ║ 18 ║ 18 ║ 19 ║ 21
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 19 ║ 18 ║ 18 ║ 19 ║ 19 ║ 17
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 194 ║ 200 ║ 3816 ║ 2217 ║ 3787 ║ 3776
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 468 ║ 466 ║ 21 ║ 2389 ║ 3711 ║ 3840
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 19 ║ 20 ║ n/a ║ 19 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 187 ║ 199 ║ 187 ║ 189 ║ 214 ║ 208
`
|
|
|
metadata
Now testing on the mac laptop:
`
Mac OS 10.5.8 x86 10.0.42.34(VM: 1.0 cyclone) Release PlugIn
║ int ║ uint ║ int/uint ║ Number ║ int/Number ║ uint/Number
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&: ║ 15 ║ 14 ║ 10 ║ 82 ║ 27 ║ 26
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
|: ║ 14 ║ 12 ║ 15 ║ 82 ║ 26 ║ 26
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
^: ║ 11 ║ 13 ║ 13 ║ 82 ║ 26 ║ 26
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
~: ║ 15 ║ 15 ║ n/a ║ 26 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>: ║ 12 ║ 10 ║ 15 ║ 82 ║ 26 ║ 26
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>>>: ║ 16 ║ 12 ║ 13 ║ 82 ║ 26 ║ 26
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<<: ║ 14 ║ 10 ║ 15 ║ 82 ║ 26 ║ 26
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
+: ║ 16 ║ 16 ║ 16 ║ 15 ║ 16 ║ 16
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
-: ║ 16 ║ 16 ║ 16 ║ 15 ║ 16 ║ 15
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
*: ║ 16 ║ 16 ║ 16 ║ 15 ║ 15 ║ 15
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
/: ║ 15 ║ 16 ║ 16 ║ 12 ║ 15 ║ 15
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
%: ║ 15 ║ 15 ║ 16 ║ 16 ║ 16 ║ 16
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v++: ║ 211 ║ 212 ║ n/a ║ 610 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
++v: ║ 212 ║ 212 ║ n/a ║ 609 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
v--: ║ 211 ║ 212 ║ n/a ║ 609 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
--v: ║ 212 ║ 211 ║ n/a ║ 609 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
==: ║ 71 ║ 72 ║ 211 ║ 199 ║ 203 ║ 207
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
===: ║ 71 ║ 72 ║ 210 ║ 198 ║ 202 ║ 207
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!=: ║ 235 ║ 234 ║ 414 ║ 405 ║ 405 ║ 411
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!==: ║ 234 ║ 234 ║ 414 ║ 405 ║ 405 ║ 410
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>: ║ 71 ║ 71 ║ 209 ║ 199 ║ 202 ║ 206
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<: ║ 71 ║ 71 ║ 211 ║ 199 ║ 203 ║ 207
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
>=: ║ 72 ║ 72 ║ 208 ║ 198 ║ 202 ║ 206
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
<=: ║ 71 ║ 71 ║ 210 ║ 199 ║ 202 ║ 206
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
&&: ║ 459 ║ 656 ║ 6982 ║ 784 ║ 8279 ║ 8389
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
||: ║ 537 ║ 546 ║ 16 ║ 755 ║ 5117 ║ 4867
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
!: ║ 232 ║ 233 ║ n/a ║ 250 ║ n/a ║ n/a
═══════╬════════════╬════════════╬════════════╬════════════╬════════════╬════════════════
=: ║ 15 ║ 15 ║ 15 ║ 15 ║ 26 ║ 25
`
|
|
|
metadata
> *Originally posted by **[truefire](/forums/4/topics/145440?page=2#posts-3206170):***
>
> 6 cores… wonder if I could get one of those in my new lappy. Wasn’t even aware there were 6x computers on the market…
>
> Also, does that affect your flash performance? For some reason I was under the impression that flash didn’t support mutlithreading… Or… multiprocessing? Well, technical terminology aside, I didn’t think flash could run on multiple cores.
Whilst running Skyboy’s algorithm, I saw that only one of my four cores decided to rev up.
Off-topic: I don’t think you’ll be able to find a Phenom x6 for a laptop, however there are 980X processors available from Intel which are much more costly. You can review the relative performances of each processor [here](http://www.cpubenchmark.net/cpu_list.php)
|
|
|
metadata
> Flash Player 10.3
Didn’t FP10.2 just come out like two weeks ago? They already released a new version?
> You can review the relative performances of each processor here
thanks for that link. I’ve been looking for something like that.
|
|
|
metadata
> *Originally posted by **[Dealmaster13](/forums/4/topics/145440?page=2#posts-3207180):***
>
> Whilst running Skyboy’s algorithm, I saw that only one of my four cores decided to rev up.
Flash ain’t multithreaded.
|
|
|
metadata
Skyboy you need to do densemap performance tests for 10.2 :)
|