mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
90 lines
780 B
Plaintext
90 lines
780 B
Plaintext
Start set_demo : 0.1.10
|
|
|
|
TIMING TEST
|
|
100x clr(): 1204
|
|
100x add(): 244
|
|
100x sub(): 188
|
|
100x has(): 200
|
|
100x invert(v): 184
|
|
invert(): 16
|
|
count() empty: 20
|
|
count() full: 164
|
|
|
|
isEmpty(): 20
|
|
|
|
a = b + c: 64
|
|
a = b - c: 56
|
|
a = b * c: 64
|
|
a += b: 20
|
|
a -= b: 24
|
|
a *= b: 32
|
|
a == b: 4
|
|
a != b: 4
|
|
a <= b: 4
|
|
|
|
iteration 10 elements
|
|
first: 12
|
|
next: 16
|
|
first + next until -1 : 148
|
|
last + prev until -1 : 144
|
|
|
|
|
|
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...
|
|
|