summaryrefslogtreecommitdiff
path: root/includes/js/dojox/string/tests/notes.txt
blob: 71d788714d82061f9d30c658a2d4d532eb4930ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
notes:
reference:
Run with 100 words, 1000 iterations and overhead of 2
    62 - concatOnce
    73 - joinExisting
    241 - plusForAlias
    261 - plusFor
    360 - concatFor
    391 - joinForAlias
    398 - concatForAlias
    408 - joinFor
    636 - plusForEach
    763 - concatForEach
    851 - joinForEach
    4188 - builderReusedFor
    4319 - builderFor
    5155 - builderForEach
    
switch to for loop in append and ditch arraylike for array(r9607)
Run with 100 words, 1000 iterations and overhead of 3
    62 - concatOnce
    72 - joinExisting
    235 - concatForAlias
    242 - plusForAlias
    263 - plusFor
    361 - concatFor
    394 - joinForAlias
    414 - joinFor
    635 - plusForEach
    757 - concatForEach
    855 - joinForEach
    2005 - builderReusedFor
    2073 - builderFor
    2830 - builderForEach
    
    
inline append for array, remove string check
Run with 100 words, 1000 iterations and overhead of 4
    55 - concatOnce
    75 - joinExisting
    243 - plusForAlias
    263 - plusFor
    363 - concatFor
    382 - concatForAlias
    398 - joinForAlias
    410 - joinFor
    629 - plusForEach
    754 - concatForEach
    857 - joinForEach
    1854 - builderReusedFor
    1922 - builderFor
    2714 - builderForEach
    
add string check back in using typeof
Run with 100 words, 1000 iterations and overhead of 3
    63 - concatOnce
    72 - joinExisting
    242 - plusForAlias
    262 - plusFor
    363 - concatFor
    381 - concatForAlias
    394 - joinForAlias
    410 - joinFor
    633 - plusForEach
    773 - concatForEach
    862 - joinForEach
    1870 - builderReusedFor
    1937 - builderFor
    2702 - builderForEach
    
first cut less complex isArray
Run with 100 words, 1000 iterations and overhead of 3
    63 - concatOnce
    73 - joinExisting
    184 - plusFor
    251 - plusForAlias
    282 - concatFor
    381 - concatForAlias
    395 - joinForAlias
    412 - joinFor
    629 - plusForEach
    770 - concatForEach
    851 - joinForEach
    2027 - builderReusedFor
    2129 - builderFor
    2898 - builderForEach
    
switch to typeof for array, put string check back in using typeof (r9610)
Run with 100 words, 1000 iterations and overhead of 2
    63 - concatOnce
    77 - joinExisting
    251 - plusForAlias
    272 - plusFor
    282 - concatFor
    364 - concatForAlias
    404 - joinForAlias
    415 - joinFor
    630 - plusForEach
    766 - concatForEach
    850 - joinForEach
    1274 - builderReusedFor
    1510 - builderFor
    2108 - builderForEach

remove arguments-style array support. only support an explicit array.    
Run with 100 words, 1000 iterations and overhead of 2
    63 - concatOnce
    75 - joinExisting
    186 - plusFor
    207 - builderReusedOnce
    255 - plusForAlias
    283 - concatFor
    306 - builderOnce
    367 - concatForAlias
    408 - joinForAlias
    419 - joinFor
    639 - plusForEach
    767 - concatForEach
    817 - builderReusedFor
    865 - joinForEach
    975 - builderFor
    1562 - builderForEach
    
just running for tests
Run with 100 words, 1000 iterations and overhead of 3
    63 - concatOnce
    203 - plusFor
    204 - builderReusedOnce
    303 - builderOnce
    330 - joinFor
    385 - concatFor
    748 - builderFor
    748 - builderReusedFor
    
remove array support in append
Run with 1000 words, 1000 iterations and overhead of 2
    382 - concatOnce
    1951 - plusFor
    2779 - builderFor
    2883 - builderReusedFor
    3038 - concatFor
    3549 - joinFor

add in appendArray support to match once, use += for append    
Run with 1000 words, 1000 iterations and overhead of 3
    379 - concatOnce
    381 - builderReusedOnce
    393 - builderOnce
    2022 - plusFor
    2862 - builderFor
    2973 - builderReusedFor
    3128 - concatFor
    3548 - joinFor