mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
test: use new performance test file
This commit is contained in:
parent
4b53d3707b
commit
ef7d0ec7a9
File diff suppressed because one or more lines are too long
|
@ -3,181 +3,85 @@
|
|||
|
||||
## [version 1.6.1](https://github.com/showdownjs/showdown/tree/1.6.1)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
### Test Suite: Basic (50 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.296|5.551|0.154|
|
||||
|readme.md|8.404|17.862|7.537|
|
||||
|Simple "Hello World"|0.311|5.505|0.157|
|
||||
|readme.md|25.527|48.200|23.654|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
### Test Suite: subParsers (20 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.693|1.104|0.652|
|
||||
|anchors|0.186|0.521|0.164|
|
||||
|autoLinks|0.016|0.183|0.014|
|
||||
|blockGamut|7.566|16.244|6.642|
|
||||
|blockQuotes|0.065|0.252|0.061|
|
||||
|codeBlocks|0.070|1.184|0.061|
|
||||
|codeSpans|0.202|1.163|0.167|
|
||||
|detab|0.027|0.239|0.023|
|
||||
|encodeAmpsAndAngles|0.017|0.433|0.014|
|
||||
|encodeBackslashEscapes|0.015|0.426|0.013|
|
||||
|encodeCode|0.180|0.504|0.161|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.060|0.419|0.054|
|
||||
|githubCodeBlocks|0.078|4.517|0.057|
|
||||
|hashBlock|0.031|5.982|0.012|
|
||||
|hashElement|0.001|0.216|0.000|
|
||||
|hashHTMLSpans|0.036|4.569|0.011|
|
||||
|hashPreCodeTags|0.019|0.276|0.015|
|
||||
|headers|0.462|5.391|0.406|
|
||||
|images|0.039|1.640|0.033|
|
||||
|italicsAndBold|0.043|0.333|0.037|
|
||||
|lists|5.335|8.005|4.849|
|
||||
|outdent|0.051|0.633|0.046|
|
||||
|paragraphs|1.396|4.046|1.245|
|
||||
|spanGamut|0.801|23.092|0.572|
|
||||
|strikethrough|0.001|0.555|0.000|
|
||||
|stripBlankLines|0.033|0.333|0.029|
|
||||
|stripLinkDefinitions|0.072|0.472|0.063|
|
||||
|tables|0.001|0.228|0.000|
|
||||
|unescapeSpecialChars|0.004|0.209|0.003|
|
||||
|hashHTMLBlocks|2.571|7.892|1.848|
|
||||
|anchors|0.500|4.097|0.272|
|
||||
|autoLinks|0.093|0.220|0.071|
|
||||
|blockGamut|16.474|22.569|13.148|
|
||||
|blockQuotes|3.115|5.541|2.719|
|
||||
|codeBlocks|0.284|1.167|0.173|
|
||||
|codeSpans|0.209|0.453|0.174|
|
||||
|detab|0.095|0.135|0.088|
|
||||
|encodeAmpsAndAngles|0.047|0.074|0.037|
|
||||
|encodeBackslashEscapes|0.074|0.112|0.068|
|
||||
|encodeCode|0.544|1.438|0.480|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.359|0.446|0.330|
|
||||
|githubCodeBlocks|0.199|0.779|0.146|
|
||||
|hashBlock|0.120|1.556|0.037|
|
||||
|hashElement|0.002|0.034|0.000|
|
||||
|hashHTMLSpans|0.354|1.562|0.255|
|
||||
|hashPreCodeTags|0.132|0.233|0.114|
|
||||
|headers|0.838|2.014|0.724|
|
||||
|images|0.156|0.825|0.088|
|
||||
|italicsAndBold|0.099|0.198|0.090|
|
||||
|lists|4.856|5.639|4.491|
|
||||
|outdent|0.181|0.576|0.141|
|
||||
|paragraphs|6.092|9.738|3.413|
|
||||
|spanGamut|2.472|4.012|1.641|
|
||||
|strikethrough|0.004|0.082|0.000|
|
||||
|stripBlankLines|0.118|0.138|0.089|
|
||||
|stripLinkDefinitions|0.205|0.520|0.148|
|
||||
|tables|0.007|0.117|0.000|
|
||||
|unescapeSpecialChars|0.011|0.055|0.007|
|
||||
|
||||
|
||||
## [version 1.6.0](https://github.com/showdownjs/showdown/tree/1.6.0)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
### Test Suite: Basic (50 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.294|5.326|0.155|
|
||||
|readme.md|8.599|16.906|7.736|
|
||||
|Simple "Hello World"|0.308|5.369|0.157|
|
||||
|readme.md|25.818|47.795|23.775|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
### Test Suite: subParsers (20 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.692|1.135|0.642|
|
||||
|anchors|0.204|0.530|0.175|
|
||||
|autoLinks|0.016|0.221|0.014|
|
||||
|blockGamut|7.991|18.830|6.982|
|
||||
|blockQuotes|0.063|0.261|0.060|
|
||||
|codeBlocks|0.073|1.277|0.063|
|
||||
|codeSpans|0.195|0.751|0.177|
|
||||
|detab|0.025|0.259|0.023|
|
||||
|encodeAmpsAndAngles|0.019|0.332|0.014|
|
||||
|encodeBackslashEscapes|0.031|0.456|0.030|
|
||||
|encodeCode|0.193|0.651|0.159|
|
||||
|encodeEmailAddress|2.343|5.203|2.145|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.066|0.620|0.059|
|
||||
|githubCodeBlocks|0.100|4.566|0.058|
|
||||
|hashBlock|0.029|6.856|0.011|
|
||||
|hashElement|0.001|0.210|0.000|
|
||||
|hashHTMLSpans|0.024|5.002|0.011|
|
||||
|hashPreCodeTags|0.018|0.262|0.015|
|
||||
|headers|0.485|8.314|0.410|
|
||||
|images|0.042|1.295|0.035|
|
||||
|italicsAndBold|0.040|0.312|0.036|
|
||||
|lists|5.541|11.729|5.039|
|
||||
|outdent|0.052|0.776|0.046|
|
||||
|paragraphs|1.423|2.536|1.290|
|
||||
|spanGamut|0.663|1.344|0.605|
|
||||
|strikethrough|0.000|0.243|0.000|
|
||||
|stripBlankLines|0.031|0.274|0.028|
|
||||
|stripLinkDefinitions|0.071|0.345|0.063|
|
||||
|tables|0.001|0.212|0.000|
|
||||
|unescapeSpecialChars|0.004|0.349|0.003|
|
||||
|
||||
|
||||
## [version 1.5.6](https://github.com/showdownjs/showdown/tree/1.5.6)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.484|5.497|0.159|
|
||||
|readme.md|8.624|20.725|7.639|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.697|1.193|0.637|
|
||||
|anchors|0.191|0.628|0.159|
|
||||
|autoLinks|0.017|0.318|0.014|
|
||||
|blockGamut|7.720|14.917|6.949|
|
||||
|blockQuotes|0.065|0.236|0.060|
|
||||
|codeBlocks|0.082|1.078|0.063|
|
||||
|codeSpans|0.185|0.915|0.168|
|
||||
|detab|0.025|0.195|0.023|
|
||||
|encodeAmpsAndAngles|0.016|0.319|0.014|
|
||||
|encodeBackslashEscapes|0.014|0.264|0.013|
|
||||
|encodeCode|0.177|0.489|0.155|
|
||||
|encodeEmailAddress|2.849|482.687|2.103|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.061|0.428|0.055|
|
||||
|githubCodeBlocks|0.084|5.149|0.056|
|
||||
|hashBlock|0.035|6.322|0.011|
|
||||
|hashElement|0.001|0.228|0.000|
|
||||
|hashHTMLSpans|0.024|4.870|0.011|
|
||||
|hashPreCodeTags|0.018|0.295|0.015|
|
||||
|headers|0.472|4.046|0.405|
|
||||
|images|0.040|0.835|0.033|
|
||||
|italicsAndBold|0.041|0.422|0.036|
|
||||
|lists|5.606|8.275|5.112|
|
||||
|outdent|0.051|0.852|0.045|
|
||||
|paragraphs|1.368|2.683|1.221|
|
||||
|spanGamut|0.638|1.433|0.569|
|
||||
|strikethrough|0.000|0.229|0.000|
|
||||
|stripBlankLines|0.032|0.298|0.027|
|
||||
|stripLinkDefinitions|0.072|0.354|0.062|
|
||||
|tables|0.001|0.199|0.000|
|
||||
|unescapeSpecialChars|0.003|0.152|0.003|
|
||||
|
||||
|
||||
## [version 1.5.5](https://github.com/showdownjs/showdown/tree/1.5.5)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.302|5.969|0.148|
|
||||
|readme.md|8.157|17.988|7.204|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.682|1.095|0.625|
|
||||
|anchors|0.234|0.579|0.191|
|
||||
|autoLinks|0.015|0.181|0.013|
|
||||
|blockGamut|7.307|17.844|6.509|
|
||||
|blockQuotes|0.065|0.258|0.059|
|
||||
|codeBlocks|0.073|1.052|0.062|
|
||||
|codeSpans|0.181|0.898|0.165|
|
||||
|detab|0.024|0.209|0.022|
|
||||
|encodeAmpsAndAngles|0.016|0.280|0.014|
|
||||
|encodeBackslashEscapes|0.014|0.359|0.013|
|
||||
|encodeCode|0.171|0.542|0.154|
|
||||
|encodeEmailAddress|2.302|4.221|2.080|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.064|0.404|0.054|
|
||||
|githubCodeBlocks|0.112|6.431|0.057|
|
||||
|hashBlock|0.032|6.549|0.011|
|
||||
|hashElement|0.001|0.227|0.000|
|
||||
|hashHTMLSpans|0.032|6.134|0.010|
|
||||
|hashPreCodeTags|0.018|0.302|0.015|
|
||||
|headers|0.456|7.749|0.396|
|
||||
|images|0.039|1.016|0.033|
|
||||
|italicsAndBold|0.036|0.467|0.031|
|
||||
|lists|5.111|11.047|4.623|
|
||||
|outdent|0.051|0.412|0.044|
|
||||
|paragraphs|1.373|3.729|1.210|
|
||||
|spanGamut|0.769|1.307|0.669|
|
||||
|strikethrough|0.000|0.251|0.000|
|
||||
|stripBlankLines|0.031|0.292|0.027|
|
||||
|stripLinkDefinitions|0.070|0.422|0.061|
|
||||
|tables|0.001|0.212|0.000|
|
||||
|unescapeSpecialChars|0.004|0.187|0.003|
|
||||
|
||||
|
||||
## [version 1.5.4](https://github.com/showdownjs/showdown/tree/1.5.4)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.310|5.549|0.149|
|
||||
|readme.md|8.073|17.976|7.220|
|
||||
|hashHTMLBlocks|2.653|8.558|1.880|
|
||||
|anchors|0.517|4.142|0.271|
|
||||
|autoLinks|0.089|0.194|0.071|
|
||||
|blockGamut|17.372|22.941|14.082|
|
||||
|blockQuotes|3.011|4.110|2.774|
|
||||
|codeBlocks|0.243|0.834|0.193|
|
||||
|codeSpans|0.227|0.458|0.191|
|
||||
|detab|0.095|0.133|0.090|
|
||||
|encodeAmpsAndAngles|0.040|0.073|0.038|
|
||||
|encodeBackslashEscapes|0.100|0.510|0.068|
|
||||
|encodeCode|0.532|0.706|0.479|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.386|0.702|0.327|
|
||||
|githubCodeBlocks|0.214|0.778|0.156|
|
||||
|hashBlock|0.057|0.280|0.035|
|
||||
|hashElement|0.002|0.033|0.000|
|
||||
|hashHTMLSpans|0.384|1.997|0.236|
|
||||
|hashPreCodeTags|0.133|0.200|0.116|
|
||||
|headers|0.944|2.468|0.782|
|
||||
|images|0.120|0.486|0.086|
|
||||
|italicsAndBold|0.111|0.445|0.088|
|
||||
|lists|5.783|13.249|4.464|
|
||||
|outdent|0.306|0.956|0.225|
|
||||
|paragraphs|6.583|8.811|4.499|
|
||||
|spanGamut|2.437|3.067|1.647|
|
||||
|strikethrough|0.005|0.100|0.000|
|
||||
|stripBlankLines|0.121|0.175|0.092|
|
||||
|stripLinkDefinitions|0.247|0.573|0.171|
|
||||
|tables|0.006|0.099|0.000|
|
||||
|unescapeSpecialChars|0.017|0.066|0.011|
|
||||
|
||||
|
||||
|
|
183
performance.log.old.md
Normal file
183
performance.log.old.md
Normal file
|
@ -0,0 +1,183 @@
|
|||
# Performance Tests for showdown
|
||||
|
||||
|
||||
## [version 1.6.1](https://github.com/showdownjs/showdown/tree/1.6.1)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.296|5.551|0.154|
|
||||
|readme.md|8.404|17.862|7.537|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.693|1.104|0.652|
|
||||
|anchors|0.186|0.521|0.164|
|
||||
|autoLinks|0.016|0.183|0.014|
|
||||
|blockGamut|7.566|16.244|6.642|
|
||||
|blockQuotes|0.065|0.252|0.061|
|
||||
|codeBlocks|0.070|1.184|0.061|
|
||||
|codeSpans|0.202|1.163|0.167|
|
||||
|detab|0.027|0.239|0.023|
|
||||
|encodeAmpsAndAngles|0.017|0.433|0.014|
|
||||
|encodeBackslashEscapes|0.015|0.426|0.013|
|
||||
|encodeCode|0.180|0.504|0.161|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.060|0.419|0.054|
|
||||
|githubCodeBlocks|0.078|4.517|0.057|
|
||||
|hashBlock|0.031|5.982|0.012|
|
||||
|hashElement|0.001|0.216|0.000|
|
||||
|hashHTMLSpans|0.036|4.569|0.011|
|
||||
|hashPreCodeTags|0.019|0.276|0.015|
|
||||
|headers|0.462|5.391|0.406|
|
||||
|images|0.039|1.640|0.033|
|
||||
|italicsAndBold|0.043|0.333|0.037|
|
||||
|lists|5.335|8.005|4.849|
|
||||
|outdent|0.051|0.633|0.046|
|
||||
|paragraphs|1.396|4.046|1.245|
|
||||
|spanGamut|0.801|23.092|0.572|
|
||||
|strikethrough|0.001|0.555|0.000|
|
||||
|stripBlankLines|0.033|0.333|0.029|
|
||||
|stripLinkDefinitions|0.072|0.472|0.063|
|
||||
|tables|0.001|0.228|0.000|
|
||||
|unescapeSpecialChars|0.004|0.209|0.003|
|
||||
|
||||
|
||||
## [version 1.6.0](https://github.com/showdownjs/showdown/tree/1.6.0)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.294|5.326|0.155|
|
||||
|readme.md|8.599|16.906|7.736|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.692|1.135|0.642|
|
||||
|anchors|0.204|0.530|0.175|
|
||||
|autoLinks|0.016|0.221|0.014|
|
||||
|blockGamut|7.991|18.830|6.982|
|
||||
|blockQuotes|0.063|0.261|0.060|
|
||||
|codeBlocks|0.073|1.277|0.063|
|
||||
|codeSpans|0.195|0.751|0.177|
|
||||
|detab|0.025|0.259|0.023|
|
||||
|encodeAmpsAndAngles|0.019|0.332|0.014|
|
||||
|encodeBackslashEscapes|0.031|0.456|0.030|
|
||||
|encodeCode|0.193|0.651|0.159|
|
||||
|encodeEmailAddress|2.343|5.203|2.145|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.066|0.620|0.059|
|
||||
|githubCodeBlocks|0.100|4.566|0.058|
|
||||
|hashBlock|0.029|6.856|0.011|
|
||||
|hashElement|0.001|0.210|0.000|
|
||||
|hashHTMLSpans|0.024|5.002|0.011|
|
||||
|hashPreCodeTags|0.018|0.262|0.015|
|
||||
|headers|0.485|8.314|0.410|
|
||||
|images|0.042|1.295|0.035|
|
||||
|italicsAndBold|0.040|0.312|0.036|
|
||||
|lists|5.541|11.729|5.039|
|
||||
|outdent|0.052|0.776|0.046|
|
||||
|paragraphs|1.423|2.536|1.290|
|
||||
|spanGamut|0.663|1.344|0.605|
|
||||
|strikethrough|0.000|0.243|0.000|
|
||||
|stripBlankLines|0.031|0.274|0.028|
|
||||
|stripLinkDefinitions|0.071|0.345|0.063|
|
||||
|tables|0.001|0.212|0.000|
|
||||
|unescapeSpecialChars|0.004|0.349|0.003|
|
||||
|
||||
|
||||
## [version 1.5.6](https://github.com/showdownjs/showdown/tree/1.5.6)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.484|5.497|0.159|
|
||||
|readme.md|8.624|20.725|7.639|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.697|1.193|0.637|
|
||||
|anchors|0.191|0.628|0.159|
|
||||
|autoLinks|0.017|0.318|0.014|
|
||||
|blockGamut|7.720|14.917|6.949|
|
||||
|blockQuotes|0.065|0.236|0.060|
|
||||
|codeBlocks|0.082|1.078|0.063|
|
||||
|codeSpans|0.185|0.915|0.168|
|
||||
|detab|0.025|0.195|0.023|
|
||||
|encodeAmpsAndAngles|0.016|0.319|0.014|
|
||||
|encodeBackslashEscapes|0.014|0.264|0.013|
|
||||
|encodeCode|0.177|0.489|0.155|
|
||||
|encodeEmailAddress|2.849|482.687|2.103|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.061|0.428|0.055|
|
||||
|githubCodeBlocks|0.084|5.149|0.056|
|
||||
|hashBlock|0.035|6.322|0.011|
|
||||
|hashElement|0.001|0.228|0.000|
|
||||
|hashHTMLSpans|0.024|4.870|0.011|
|
||||
|hashPreCodeTags|0.018|0.295|0.015|
|
||||
|headers|0.472|4.046|0.405|
|
||||
|images|0.040|0.835|0.033|
|
||||
|italicsAndBold|0.041|0.422|0.036|
|
||||
|lists|5.606|8.275|5.112|
|
||||
|outdent|0.051|0.852|0.045|
|
||||
|paragraphs|1.368|2.683|1.221|
|
||||
|spanGamut|0.638|1.433|0.569|
|
||||
|strikethrough|0.000|0.229|0.000|
|
||||
|stripBlankLines|0.032|0.298|0.027|
|
||||
|stripLinkDefinitions|0.072|0.354|0.062|
|
||||
|tables|0.001|0.199|0.000|
|
||||
|unescapeSpecialChars|0.003|0.152|0.003|
|
||||
|
||||
|
||||
## [version 1.5.5](https://github.com/showdownjs/showdown/tree/1.5.5)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.302|5.969|0.148|
|
||||
|readme.md|8.157|17.988|7.204|
|
||||
|
||||
### Test Suite: subParsers (1000 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|0.682|1.095|0.625|
|
||||
|anchors|0.234|0.579|0.191|
|
||||
|autoLinks|0.015|0.181|0.013|
|
||||
|blockGamut|7.307|17.844|6.509|
|
||||
|blockQuotes|0.065|0.258|0.059|
|
||||
|codeBlocks|0.073|1.052|0.062|
|
||||
|codeSpans|0.181|0.898|0.165|
|
||||
|detab|0.024|0.209|0.022|
|
||||
|encodeAmpsAndAngles|0.016|0.280|0.014|
|
||||
|encodeBackslashEscapes|0.014|0.359|0.013|
|
||||
|encodeCode|0.171|0.542|0.154|
|
||||
|encodeEmailAddress|2.302|4.221|2.080|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.064|0.404|0.054|
|
||||
|githubCodeBlocks|0.112|6.431|0.057|
|
||||
|hashBlock|0.032|6.549|0.011|
|
||||
|hashElement|0.001|0.227|0.000|
|
||||
|hashHTMLSpans|0.032|6.134|0.010|
|
||||
|hashPreCodeTags|0.018|0.302|0.015|
|
||||
|headers|0.456|7.749|0.396|
|
||||
|images|0.039|1.016|0.033|
|
||||
|italicsAndBold|0.036|0.467|0.031|
|
||||
|lists|5.111|11.047|4.623|
|
||||
|outdent|0.051|0.412|0.044|
|
||||
|paragraphs|1.373|3.729|1.210|
|
||||
|spanGamut|0.769|1.307|0.669|
|
||||
|strikethrough|0.000|0.251|0.000|
|
||||
|stripBlankLines|0.031|0.292|0.027|
|
||||
|stripLinkDefinitions|0.070|0.422|0.061|
|
||||
|tables|0.001|0.212|0.000|
|
||||
|unescapeSpecialChars|0.004|0.187|0.003|
|
||||
|
||||
|
||||
## [version 1.5.4](https://github.com/showdownjs/showdown/tree/1.5.4)
|
||||
|
||||
### Test Suite: Basic (100 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.310|5.549|0.149|
|
||||
|readme.md|8.073|17.976|7.220|
|
||||
|
||||
|
1
performance.old.json
Normal file
1
performance.old.json
Normal file
File diff suppressed because one or more lines are too long
|
@ -29,9 +29,9 @@ var globals = {
|
|||
options = showdown.getOptions();
|
||||
|
||||
function runTests() {
|
||||
var readmeMD = fs.readFileSync('README.md', 'utf8');
|
||||
var readmeMD = fs.readFileSync('test/performance.testfile.md', 'utf8');
|
||||
new performance.Suite('Basic')
|
||||
.setOption('cycles', 100)
|
||||
.setOption('cycles', 50)
|
||||
.add('Simple "Hello World"', function () {
|
||||
converter.makeHtml('*Hello* **World**!');
|
||||
})
|
||||
|
@ -44,7 +44,7 @@ function runTests() {
|
|||
}
|
||||
});
|
||||
new performance.Suite('subParsers')
|
||||
.setOption('cycles', 1000)
|
||||
.setOption('cycles', 20)
|
||||
.add('hashHTMLBlocks', function () {
|
||||
showdown.subParser('hashHTMLBlocks')(readmeMD, options, globals);
|
||||
})
|
||||
|
|
1912
test/performance.testfile.md
Normal file
1912
test/performance.testfile.md
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user