UNPKG

13.1 kBMarkdownView Raw
1# Performance Tests for showdown
2
3
4## [version 1.7.4](https://github.com/showdownjs/showdown/tree/1.7.4)
5
6### Test Suite: Basic (50 cycles)
7| test | avgTime | max | min |
8|:-----|--------:|----:|----:|
9|Simple "Hello World"|0.972|25.186|0.160|
10|performance.testfile.md|30.397|61.913|26.550|
11
12### Test Suite: subParsers (20 cycles)
13| test | avgTime | max | min |
14|:-----|--------:|----:|----:|
15|hashHTMLBlocks|3.999|6.603|2.314|
16|anchors|0.527|3.823|0.285|
17|autoLinks|0.090|0.188|0.063|
18|blockQuotes|2.057|4.122|1.780|
19|codeBlocks|0.247|1.085|0.186|
20|codeSpans|0.263|1.017|0.162|
21|detab|0.123|0.158|0.097|
22|encodeAmpsAndAngles|0.118|0.171|0.096|
23|encodeBackslashEscapes|0.079|0.146|0.071|
24|encodeCode|0.945|1.453|0.866|
25|escapeSpecialCharsWithinTagAttributes|0.285|0.438|0.246|
26|githubCodeBlocks|0.225|0.969|0.142|
27|hashBlock|0.068|0.577|0.036|
28|hashElement|0.002|0.041|0.000|
29|hashHTMLSpans|4.126|4.528|3.950|
30|hashPreCodeTags|0.149|0.537|0.110|
31|headers|1.171|3.877|0.884|
32|horizontalRule|0.381|3.457|0.197|
33|images|0.195|0.618|0.133|
34|italicsAndBold|0.298|0.562|0.245|
35|lists|3.790|6.139|2.612|
36|outdent|0.167|0.276|0.139|
37|paragraphs|5.349|6.076|4.897|
38|spanGamut|4.370|6.111|3.946|
39|strikethrough|0.003|0.048|0.000|
40|stripLinkDefinitions|0.255|0.401|0.218|
41|tables|0.002|0.033|0.000|
42|unescapeSpecialChars|0.009|0.040|0.007|
43
44
45## [version 1.7.3](https://github.com/showdownjs/showdown/tree/1.7.3)
46
47### Test Suite: Basic (50 cycles)
48| test | avgTime | max | min |
49|:-----|--------:|----:|----:|
50|Simple "Hello World"|0.277|5.743|0.088|
51|performance.testfile.md|30.733|54.768|26.972|
52
53### Test Suite: subParsers (20 cycles)
54| test | avgTime | max | min |
55|:-----|--------:|----:|----:|
56|hashHTMLBlocks|4.316|8.271|2.339|
57|anchors|0.525|3.812|0.288|
58|autoLinks|0.085|0.220|0.063|
59|blockQuotes|2.033|3.622|1.745|
60|codeBlocks|0.251|1.060|0.178|
61|codeSpans|0.246|0.749|0.157|
62|detab|0.142|0.752|0.087|
63|encodeAmpsAndAngles|0.100|0.129|0.095|
64|encodeBackslashEscapes|0.079|0.125|0.070|
65|encodeCode|0.977|1.774|0.852|
66|escapeSpecialCharsWithinTagAttributes|0.271|0.441|0.244|
67|githubCodeBlocks|0.235|0.985|0.139|
68|hashBlock|0.068|0.550|0.036|
69|hashElement|0.002|0.030|0.000|
70|hashHTMLSpans|4.197|4.564|4.006|
71|hashPreCodeTags|0.139|0.543|0.106|
72|headers|1.148|4.214|0.880|
73|horizontalRule|0.214|0.273|0.199|
74|images|0.310|3.095|0.120|
75|italicsAndBold|0.279|0.378|0.235|
76|lists|3.843|8.278|2.630|
77|outdent|0.193|0.386|0.144|
78|paragraphs|5.541|8.153|4.836|
79|spanGamut|4.638|5.775|4.142|
80|strikethrough|0.003|0.052|0.000|
81|stripLinkDefinitions|0.167|0.275|0.142|
82|tables|0.002|0.036|0.000|
83|unescapeSpecialChars|0.009|0.032|0.008|
84
85
86## [version 1.7.2](https://github.com/showdownjs/showdown/tree/1.7.2)
87
88### Test Suite: Basic (50 cycles)
89| test | avgTime | max | min |
90|:-----|--------:|----:|----:|
91|Simple "Hello World"|0.292|5.780|0.087|
92|performance.testfile.md|30.396|53.860|26.054|
93
94### Test Suite: subParsers (20 cycles)
95| test | avgTime | max | min |
96|:-----|--------:|----:|----:|
97|hashHTMLBlocks|4.303|7.798|2.377|
98|anchors|0.347|0.647|0.287|
99|autoLinks|0.088|0.165|0.063|
100|blockQuotes|2.101|5.121|1.738|
101|codeBlocks|0.239|0.878|0.184|
102|codeSpans|0.252|0.628|0.160|
103|detab|0.094|0.129|0.088|
104|encodeAmpsAndAngles|0.131|0.733|0.093|
105|encodeBackslashEscapes|0.080|0.116|0.070|
106|encodeCode|0.939|1.480|0.857|
107|escapeSpecialCharsWithinTagAttributes|0.285|0.473|0.243|
108|githubCodeBlocks|0.214|1.047|0.140|
109|hashBlock|0.068|0.553|0.036|
110|hashElement|0.002|0.030|0.000|
111|hashHTMLSpans|4.323|6.162|4.004|
112|hashPreCodeTags|0.147|0.558|0.109|
113|headers|1.176|4.491|0.884|
114|horizontalRule|0.216|0.264|0.193|
115|images|0.156|0.559|0.118|
116|italicsAndBold|0.322|1.013|0.237|
117|lists|2.753|5.613|2.328|
118|outdent|0.163|0.232|0.140|
119|paragraphs|5.109|6.168|4.741|
120|spanGamut|4.423|6.149|4.001|
121|strikethrough|0.003|0.051|0.000|
122|stripLinkDefinitions|0.160|0.226|0.142|
123|tables|0.002|0.043|0.000|
124|unescapeSpecialChars|0.011|0.046|0.007|
125
126
127## [version 1.7.1](https://github.com/showdownjs/showdown/tree/1.7.1)
128
129### Test Suite: Basic (50 cycles)
130| test | avgTime | max | min |
131|:-----|--------:|----:|----:|
132|Simple "Hello World"|1.074|20.566|0.324|
133|performance.testfile.md|30.463|82.116|26.022|
134
135### Test Suite: subParsers (20 cycles)
136| test | avgTime | max | min |
137|:-----|--------:|----:|----:|
138|hashHTMLBlocks|4.233|9.062|2.359|
139|anchors|0.351|0.763|0.286|
140|autoLinks|0.089|0.190|0.065|
141|blockQuotes|2.074|4.989|1.729|
142|codeBlocks|0.256|0.937|0.179|
143|codeSpans|0.242|0.839|0.158|
144|detab|0.099|0.168|0.086|
145|encodeAmpsAndAngles|0.131|0.646|0.093|
146|encodeBackslashEscapes|0.076|0.140|0.070|
147|encodeCode|0.994|1.706|0.865|
148|escapeSpecialCharsWithinTagAttributes|0.267|0.375|0.250|
149|githubCodeBlocks|0.192|0.966|0.140|
150|hashBlock|0.059|0.397|0.036|
151|hashElement|0.002|0.031|0.000|
152|hashHTMLSpans|4.117|5.585|3.890|
153|hashPreCodeTags|0.142|0.529|0.108|
154|headers|1.145|4.103|0.864|
155|horizontalRule|0.217|0.366|0.194|
156|images|0.151|0.553|0.117|
157|italicsAndBold|0.312|1.241|0.236|
158|lists|4.023|7.077|2.498|
159|outdent|0.175|0.261|0.148|
160|paragraphs|6.557|8.645|4.997|
161|spanGamut|5.073|6.347|4.137|
162|strikethrough|0.006|0.110|0.000|
163|stripLinkDefinitions|0.164|0.277|0.142|
164|tables|0.004|0.080|0.000|
165|unescapeSpecialChars|0.009|0.046|0.007|
166
167
168## [version 1.7.0](https://github.com/showdownjs/showdown/tree/1.7.0)
169
170### Test Suite: Basic (50 cycles)
171| test | avgTime | max | min |
172|:-----|--------:|----:|----:|
173|Simple "Hello World"|0.393|9.953|0.097|
174|performance.testfile.md|29.416|54.253|25.949|
175
176### Test Suite: subParsers (20 cycles)
177| test | avgTime | max | min |
178|:-----|--------:|----:|----:|
179|hashHTMLBlocks|4.062|7.185|2.326|
180|anchors|0.488|4.086|0.281|
181|autoLinks|0.086|0.200|0.063|
182|blockQuotes|2.071|4.554|1.733|
183|codeBlocks|0.253|0.864|0.178|
184|codeSpans|0.261|0.592|0.160|
185|detab|0.095|0.130|0.089|
186|encodeAmpsAndAngles|0.103|0.192|0.095|
187|encodeBackslashEscapes|0.106|0.589|0.071|
188|encodeCode|0.927|1.182|0.835|
189|escapeSpecialCharsWithinTagAttributes|0.276|0.617|0.245|
190|githubCodeBlocks|0.195|0.980|0.139|
191|hashBlock|0.062|0.483|0.035|
192|hashElement|0.001|0.025|0.000|
193|hashHTMLSpans|4.120|4.610|3.859|
194|hashPreCodeTags|0.147|0.535|0.105|
195|headers|1.308|4.253|0.856|
196|horizontalRule|0.220|0.374|0.194|
197|images|0.150|0.507|0.116|
198|italicsAndBold|0.306|0.872|0.241|
199|lists|3.447|4.893|2.407|
200|outdent|0.267|0.868|0.181|
201|paragraphs|5.867|8.331|4.970|
202|spanGamut|5.039|7.124|4.116|
203|strikethrough|0.004|0.073|0.000|
204|stripLinkDefinitions|0.153|0.243|0.140|
205|tables|0.002|0.044|0.000|
206|unescapeSpecialChars|0.009|0.041|0.007|
207
208
209## [version 1.6.4](https://github.com/showdownjs/showdown/tree/1.6.4)
210
211### Test Suite: Basic (50 cycles)
212| test | avgTime | max | min |
213|:-----|--------:|----:|----:|
214|Simple "Hello World"|0.376|6.381|0.183|
215|performance.testfile.md|33.835|61.049|30.186|
216
217### Test Suite: subParsers (20 cycles)
218| test | avgTime | max | min |
219|:-----|--------:|----:|----:|
220|hashHTMLBlocks|2.564|8.347|1.871|
221|anchors|0.499|4.222|0.270|
222|autoLinks|0.080|0.174|0.061|
223|blockQuotes|3.343|7.306|2.850|
224|codeBlocks|0.221|0.822|0.172|
225|codeSpans|0.229|0.744|0.156|
226|detab|0.097|0.154|0.086|
227|encodeAmpsAndAngles|0.117|0.200|0.094|
228|encodeBackslashEscapes|0.086|0.230|0.068|
229|encodeCode|0.885|1.165|0.816|
230|escapeSpecialCharsWithinTagAttributes|0.298|0.495|0.240|
231|githubCodeBlocks|0.183|0.785|0.133|
232|hashBlock|0.044|0.098|0.035|
233|hashElement|0.002|0.033|0.000|
234|hashHTMLSpans|4.200|4.552|3.987|
235|hashPreCodeTags|0.130|0.313|0.106|
236|headers|1.224|4.010|0.945|
237|horizontalRule|0.412|4.175|0.196|
238|images|0.088|0.203|0.073|
239|italicsAndBold|0.276|0.414|0.233|
240|lists|5.005|6.109|4.663|
241|outdent|0.152|0.337|0.139|
242|paragraphs|5.336|7.117|4.843|
243|spanGamut|4.450|6.153|3.857|
244|strikethrough|0.003|0.049|0.000|
245|stripLinkDefinitions|0.180|0.316|0.147|
246|tables|0.003|0.055|0.000|
247|unescapeSpecialChars|0.009|0.047|0.007|
248
249
250## [version 1.6.3](https://github.com/showdownjs/showdown/tree/1.6.3)
251
252### Test Suite: Basic (50 cycles)
253| test | avgTime | max | min |
254|:-----|--------:|----:|----:|
255|Simple "Hello World"|0.388|6.064|0.174|
256|performance.testfile.md|26.899|49.063|24.845|
257
258### Test Suite: subParsers (20 cycles)
259| test | avgTime | max | min |
260|:-----|--------:|----:|----:|
261|hashHTMLBlocks|2.616|8.181|1.899|
262|anchors|0.515|4.691|0.264|
263|autoLinks|0.093|0.188|0.073|
264|blockQuotes|4.518|8.953|3.036|
265|codeBlocks|0.223|0.348|0.188|
266|codeSpans|0.318|1.095|0.177|
267|detab|0.092|0.137|0.087|
268|encodeAmpsAndAngles|0.044|0.089|0.038|
269|encodeBackslashEscapes|0.108|0.265|0.078|
270|encodeCode|1.535|9.896|0.865|
271|escapeSpecialCharsWithinTagAttributes|0.294|0.523|0.253|
272|githubCodeBlocks|0.208|0.790|0.142|
273|hashBlock|0.042|0.123|0.036|
274|hashElement|0.002|0.029|0.000|
275|hashHTMLSpans|0.410|1.598|0.240|
276|hashPreCodeTags|0.132|0.395|0.110|
277|headers|1.015|1.502|0.806|
278|horizontalRule|0.220|0.357|0.195|
279|images|0.158|0.978|0.077|
280|italicsAndBold|0.288|0.639|0.241|
281|lists|5.151|6.331|4.629|
282|outdent|0.180|0.363|0.143|
283|paragraphs|4.548|6.309|4.002|
284|spanGamut|1.519|1.864|1.372|
285|strikethrough|0.003|0.065|0.000|
286|stripLinkDefinitions|0.179|0.313|0.144|
287|tables|0.004|0.063|0.000|
288|unescapeSpecialChars|0.011|0.049|0.007|
289
290
291## [version 1.6.2](https://github.com/showdownjs/showdown/tree/1.6.2)
292
293### Test Suite: Basic (50 cycles)
294| test | avgTime | max | min |
295|:-----|--------:|----:|----:|
296|Simple "Hello World"|0.613|5.894|0.169|
297|performance.testfile.md|25.970|62.882|23.710|
298
299### Test Suite: subParsers (20 cycles)
300| test | avgTime | max | min |
301|:-----|--------:|----:|----:|
302|hashHTMLBlocks|2.669|8.479|1.885|
303|anchors|0.500|3.841|0.268|
304|autoLinks|0.098|0.211|0.072|
305|blockQuotes|3.222|5.826|2.791|
306|codeBlocks|0.177|0.371|0.157|
307|codeSpans|0.218|0.483|0.151|
308|detab|0.135|0.655|0.085|
309|encodeAmpsAndAngles|0.042|0.118|0.036|
310|encodeBackslashEscapes|0.080|0.133|0.068|
311|encodeCode|0.560|0.982|0.484|
312|escapeSpecialCharsWithinTagAttributes|0.353|0.568|0.291|
313|githubCodeBlocks|0.180|0.773|0.127|
314|hashBlock|0.058|0.312|0.037|
315|hashElement|0.003|0.046|0.000|
316|hashHTMLSpans|0.475|2.325|0.234|
317|hashPreCodeTags|0.122|0.307|0.107|
318|headers|0.858|0.954|0.780|
319|horizontalRule|0.227|0.418|0.197|
320|images|0.171|1.453|0.077|
321|italicsAndBold|0.101|0.202|0.088|
322|lists|4.931|5.460|4.556|
323|outdent|0.163|0.315|0.142|
324|paragraphs|3.790|5.564|3.278|
325|spanGamut|1.442|2.012|1.203|
326|strikethrough|0.004|0.082|0.000|
327|stripBlankLines|0.086|0.130|0.080|
328|stripLinkDefinitions|0.160|0.217|0.145|
329|tables|0.004|0.076|0.000|
330|unescapeSpecialChars|0.010|0.058|0.007|
331
332
333## [version 1.6.1](https://github.com/showdownjs/showdown/tree/1.6.1)
334
335### Test Suite: Basic (50 cycles)
336| test | avgTime | max | min |
337|:-----|--------:|----:|----:|
338|Simple "Hello World"|0.317|5.498|0.161|
339|readme.md|26.014|46.799|24.245|
340
341### Test Suite: subParsers (20 cycles)
342| test | avgTime | max | min |
343|:-----|--------:|----:|----:|
344|hashHTMLBlocks|2.641|7.792|1.936|
345|anchors|0.475|4.063|0.259|
346|autoLinks|0.089|0.197|0.069|
347|blockQuotes|3.213|6.054|2.880|
348|codeBlocks|0.162|0.269|0.153|
349|codeSpans|0.169|0.399|0.141|
350|detab|0.125|0.665|0.086|
351|encodeAmpsAndAngles|0.042|0.089|0.038|
352|encodeBackslashEscapes|0.076|0.133|0.068|
353|encodeCode|0.577|0.970|0.479|
354|escapeSpecialCharsWithinTagAttributes|0.246|0.350|0.221|
355|githubCodeBlocks|0.177|0.815|0.125|
356|hashBlock|0.065|0.430|0.038|
357|hashElement|0.002|0.034|0.000|
358|hashHTMLSpans|0.424|2.321|0.241|
359|hashPreCodeTags|0.122|0.238|0.104|
360|headers|0.804|0.946|0.726|
361|horizontalRule|0.219|0.274|0.194|
362|images|0.124|0.902|0.071|
363|italicsAndBold|0.101|0.150|0.090|
364|lists|4.939|5.421|4.624|
365|outdent|0.165|0.337|0.140|
366|paragraphs|3.495|4.555|3.171|
367|spanGamut|1.319|1.992|1.147|
368|strikethrough|0.007|0.143|0.000|
369|stripBlankLines|0.094|0.155|0.082|
370|stripLinkDefinitions|0.176|0.311|0.146|
371|tables|0.002|0.039|0.000|
372|unescapeSpecialChars|0.008|0.034|0.007|
373
374
375## [version 1.6.0](https://github.com/showdownjs/showdown/tree/1.6.0)
376
377### Test Suite: Basic (50 cycles)
378| test | avgTime | max | min |
379|:-----|--------:|----:|----:|
380|Simple "Hello World"|0.308|5.369|0.157|
381|readme.md|25.818|47.795|23.775|
382
383### Test Suite: subParsers (20 cycles)
384| test | avgTime | max | min |
385|:-----|--------:|----:|----:|
386|hashHTMLBlocks|2.653|8.558|1.880|
387|anchors|0.517|4.142|0.271|
388|autoLinks|0.089|0.194|0.071|
389|blockGamut|17.372|22.941|14.082|
390|blockQuotes|3.011|4.110|2.774|
391|codeBlocks|0.243|0.834|0.193|
392|codeSpans|0.227|0.458|0.191|
393|detab|0.095|0.133|0.090|
394|encodeAmpsAndAngles|0.040|0.073|0.038|
395|encodeBackslashEscapes|0.100|0.510|0.068|
396|encodeCode|0.532|0.706|0.479|
397|escapeSpecialCharsWithinTagAttributes|0.386|0.702|0.327|
398|githubCodeBlocks|0.214|0.778|0.156|
399|hashBlock|0.057|0.280|0.035|
400|hashElement|0.002|0.033|0.000|
401|hashHTMLSpans|0.384|1.997|0.236|
402|hashPreCodeTags|0.133|0.200|0.116|
403|headers|0.944|2.468|0.782|
404|images|0.120|0.486|0.086|
405|italicsAndBold|0.111|0.445|0.088|
406|lists|5.783|13.249|4.464|
407|outdent|0.306|0.956|0.225|
408|paragraphs|6.583|8.811|4.499|
409|spanGamut|2.437|3.067|1.647|
410|strikethrough|0.005|0.100|0.000|
411|stripBlankLines|0.121|0.175|0.092|
412|stripLinkDefinitions|0.247|0.573|0.171|
413|tables|0.006|0.099|0.000|
414|unescapeSpecialChars|0.017|0.066|0.011|
415
416