mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
88 lines
762 B
Plaintext
88 lines
762 B
Plaintext
|
Start set_demo : 0.1.06
|
||
|
|
||
|
TIMING TEST
|
||
|
clr(): 20
|
||
|
100x add(): 360
|
||
|
100x sub(): 360
|
||
|
100x has(): 380
|
||
|
100x invert(v): 352
|
||
|
invert(): 20
|
||
|
count() empty: 20
|
||
|
count() full: 168
|
||
|
|
||
|
a = b + c: 44
|
||
|
a = b - c: 56
|
||
|
a = b * c: 40
|
||
|
a += b: 32
|
||
|
a -= b: 32
|
||
|
a *= b: 32
|
||
|
a == b: 8
|
||
|
a != b: 4
|
||
|
a <= b: 4
|
||
|
|
||
|
iteration 10 elements
|
||
|
first: 168
|
||
|
next: 112
|
||
|
first + next until -1 : 1052
|
||
|
last + prev until -1 : 1024
|
||
|
|
||
|
|
||
|
EQUAL TEST
|
||
|
true
|
||
|
false
|
||
|
true
|
||
|
true
|
||
|
1
|
||
|
equal
|
||
|
true
|
||
|
1
|
||
|
false
|
||
|
0
|
||
|
|
||
|
INTERSECTION TEST
|
||
|
110
|
||
|
116
|
||
|
51
|
||
|
|
||
|
union test
|
||
|
110
|
||
|
116
|
||
|
175
|
||
|
|
||
|
diff test
|
||
|
110
|
||
|
116
|
||
|
59
|
||
|
|
||
|
INTERSECTION2 TEST
|
||
|
110
|
||
|
116
|
||
|
51
|
||
|
|
||
|
union2 test
|
||
|
110
|
||
|
116
|
||
|
175
|
||
|
|
||
|
diff2 test
|
||
|
110
|
||
|
116
|
||
|
59
|
||
|
|
||
|
SUBSET TEST
|
||
|
5
|
||
|
5
|
||
|
subset
|
||
|
subset
|
||
|
subset
|
||
|
no subset
|
||
|
no subset
|
||
|
no subset
|
||
|
|
||
|
ITERATE OVER SET TEST
|
||
|
10
|
||
|
42 67 77 130 167 200 216 217 241 254
|
||
|
254 241 217 216 200 167 130 77 67 42
|
||
|
done...
|
||
|
|