Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
go test -run="NONE" -bench="Benchmark.*" -test.benchmem=true -count=3 ./...

Hugo v0.31.1 vs v0.32:

benchmark                                                                                                                    old ns/op     new ns/op     delta
BenchmarkStripHTML-4                                                                                                         3557          3547          -0.28%
BenchmarkTestTruncateWordsToWholeSentence-4                                                                                  124           123           -0.81%
BenchmarkTestTruncateWordsToWholeSentenceOld-4                                                                               6402          6535          +2.08%
BenchmarkTotalWords-4                                                                                                        10852         10870         +0.17%
BenchmarkTotalWordsOld-4                                                                                                     8467          8608          +1.67%
BenchmarkEmojiKyokomiFprint-4                                                                                                56976         57139         +0.29%
BenchmarkEmojiKyokomiSprint-4                                                                                                56465         56960         +0.88%
BenchmarkHugoEmoji-4                                                                                                         3024          4533          +49.90%
BenchmarkReaderContains-4                                                                                                    11143         11142         -0.01%
BenchmarkChromaHighlight-4                                                                                                   1205960       1364916       +13.18%
BenchmarkSortByWeightAndReverse-4                                                                                            215           209           -2.79%
BenchmarkGetPage-4                                                                                                           111           108           -2.70%
BenchmarkGetPageRegular-4                                                                                                    101           102           +0.99%
BenchmarkReplaceDivider-4                                                                                                    3568          3663          +2.66%
BenchmarkParsePage-4                                                                                                         76114         74221         -2.49%
BenchmarkScratchGet-4                                                                                                        25.8          26.1          +1.16%
BenchmarkReplaceShortcodeTokens-4                                                                                            6328          6980          +10.30%
BenchmarkShortcodeLexer-4                                                                                                    162230        79252         -51.15%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=100,tags_per_page=5,shortcodes,render-4                                     21466048      17414763      -18.87%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,tags_per_page=5,shortcodes,render-4                                     103167126     80861149      -21.62%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=1000,tags_per_page=5,shortcodes,render-4                                    199010226     159938231     -19.63%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4                          22610022      17174766      -24.04%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4                          103364889     82996579      -19.71%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4                         200459706     158807868     -20.78%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=100,tags_per_page=5,shortcodes,render-4                 21804082      18353956      -15.82%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4                 102095762     83852251      -17.87%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4                194264253     159738118     -17.77%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4      22564218      17962121      -20.40%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4      98649165      79131527      -19.78%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4     194591573     156990969     -19.32%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=100,tags_per_page=5,shortcodes,render-4                                     23477918      19083642      -18.72%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=500,tags_per_page=5,shortcodes,render-4                                     102791088     84142495      -18.14%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=1000,tags_per_page=5,shortcodes,render-4                                    201120838     161441613     -19.73%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4                          23746829      19143988      -19.38%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4                          102730480     84778946      -17.47%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4                         206496478     162906111     -21.11%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=100,tags_per_page=5,shortcodes,render-4                 23915751      20095974      -15.97%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4                 105502192     84392888      -20.01%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4                208795126     167567958     -19.75%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4      24579599      20153217      -18.01%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4      101564650     85910958      -15.41%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4     216034413     167826149     -22.32%
BenchmarkHowSimilar-4                                                                                                        3208          3204          -0.12%
BenchmarkLayout-4                                                                                                            527           526           -0.19%
BenchmarkFrontmatterTags/JSON:1-4                                                                                            1902          1914          +0.63%
BenchmarkFrontmatterTags/JSON:21-4                                                                                           7206          7117          -1.24%
BenchmarkFrontmatterTags/JSON:41-4                                                                                           11932         11867         -0.54%
BenchmarkFrontmatterTags/YAML:1-4                                                                                            8736          8758          +0.25%
BenchmarkFrontmatterTags/YAML:21-4                                                                                           30982         30888         -0.30%
BenchmarkFrontmatterTags/YAML:41-4                                                                                           52713         52408         -0.58%
BenchmarkFrontmatterTags/YAML2:1-4                                                                                           8844          8838          -0.07%
BenchmarkFrontmatterTags/YAML2:21-4                                                                                          29199         29024         -0.60%
BenchmarkFrontmatterTags/YAML2:41-4                                                                                          49515         48985         -1.07%
BenchmarkFrontmatterTags/TOML:1-4                                                                                            7404          7361          -0.58%
BenchmarkFrontmatterTags/TOML:21-4                                                                                           26484         26491         +0.03%
BenchmarkFrontmatterTags/TOML:41-4                                                                                           44739         44468         -0.61%
BenchmarkLongFormRender-4                                                                                                    17243         17253         +0.06%
BenchmarkRelatedNewIndex/singles-4                                                                                           76420         76759         +0.44%
BenchmarkRelatedNewIndex/all-4                                                                                               73305         73539         +0.32%
BenchmarkRelatedMatchesIn-4                                                                                                  99072         99940         +0.88%
BenchmarkTemplateParamsKeysToLower-4                                                                                         13268         13172         -0.72%
BenchmarkPartial-4                                                                                                           17964         17916         -0.27%
BenchmarkPartialCached-4                                                                                                     57.0          64.4          +12.98%
BenchmarkAbsURL-4                                                                                                            7598          7624          +0.34%
BenchmarkAbsURLSrcset-4                                                                                                      8937          8871          -0.74%
BenchmarkXMLAbsURLSrcset-4                                                                                                   8489          8564          +0.88%
BenchmarkXMLAbsURL-4                                                                                                         3814          3841          +0.71%

benchmark                                                                                                                    old allocs     new allocs     delta
BenchmarkStripHTML-4                                                                                                         4              4              +0.00%
BenchmarkTestTruncateWordsToWholeSentence-4                                                                                  0              0              +0.00%
BenchmarkTestTruncateWordsToWholeSentenceOld-4                                                                               3              3              +0.00%
BenchmarkTotalWords-4                                                                                                        0              0              +0.00%
BenchmarkTotalWordsOld-4                                                                                                     1              1              +0.00%
BenchmarkEmojiKyokomiFprint-4                                                                                                121            121            +0.00%
BenchmarkEmojiKyokomiSprint-4                                                                                                126            126            +0.00%
BenchmarkHugoEmoji-4                                                                                                         13             13             +0.00%
BenchmarkReaderContains-4                                                                                                    20             20             +0.00%
BenchmarkChromaHighlight-4                                                                                                   2701           2708           +0.26%
BenchmarkSortByWeightAndReverse-4                                                                                            0              0              +0.00%
BenchmarkGetPage-4                                                                                                           0              0              +0.00%
BenchmarkGetPageRegular-4                                                                                                    0              0              +0.00%
BenchmarkReplaceDivider-4                                                                                                    1              1              +0.00%
BenchmarkParsePage-4                                                                                                         105            87             -17.14%
BenchmarkScratchGet-4                                                                                                        0              0              +0.00%
BenchmarkReplaceShortcodeTokens-4                                                                                            1              1              +0.00%
BenchmarkShortcodeLexer-4                                                                                                    308            328            +6.49%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=100,tags_per_page=5,shortcodes,render-4                                     109068         81073          -25.67%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,tags_per_page=5,shortcodes,render-4                                     527748         389188         -26.25%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=1000,tags_per_page=5,shortcodes,render-4                                    1047028        772875         -26.18%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4                          108953         81033          -25.63%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4                          527496         388253         -26.40%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4                         1048809        771097         -26.48%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=100,tags_per_page=5,shortcodes,render-4                 114096         85533          -25.03%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4                 530735         393570         -25.84%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4                1054667        774800         -26.54%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4      114080         85700          -24.88%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4      533922         393331         -26.33%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4     1056218        778674         -26.28%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=100,tags_per_page=5,shortcodes,render-4                                     117738         90052          -23.51%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=500,tags_per_page=5,shortcodes,render-4                                     546194         408688         -25.18%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=1000,tags_per_page=5,shortcodes,render-4                                    1084060        809677         -25.31%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4                          117599         90075          -23.40%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4                          545932         409354         -25.02%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4                         1084739        810840         -25.25%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=100,tags_per_page=5,shortcodes,render-4                 121987         94851          -22.24%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4                 556383         418320         -24.81%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4                1085686        815849         -24.85%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4      121775         94960          -22.02%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4      556455         419147         -24.68%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4     1087475        815364         -25.02%
BenchmarkHowSimilar-4                                                                                                        17             17             +0.00%
BenchmarkLayout-4                                                                                                            1              1              +0.00%
BenchmarkFrontmatterTags/JSON:1-4                                                                                            20             20             +0.00%
BenchmarkFrontmatterTags/JSON:21-4                                                                                           65             65             +0.00%
BenchmarkFrontmatterTags/JSON:41-4                                                                                           106            106            +0.00%
BenchmarkFrontmatterTags/YAML:1-4                                                                                            66             66             +0.00%
BenchmarkFrontmatterTags/YAML:21-4                                                                                           211            211            +0.00%
BenchmarkFrontmatterTags/YAML:41-4                                                                                           352            352            +0.00%
BenchmarkFrontmatterTags/YAML2:1-4                                                                                           67             67             +0.00%
BenchmarkFrontmatterTags/YAML2:21-4                                                                                          192            192            +0.00%
BenchmarkFrontmatterTags/YAML2:41-4                                                                                          313            313            +0.00%
BenchmarkFrontmatterTags/TOML:1-4                                                                                            60             60             +0.00%
BenchmarkFrontmatterTags/TOML:21-4                                                                                           210            210            +0.00%
BenchmarkFrontmatterTags/TOML:41-4                                                                                           352            352            +0.00%
BenchmarkLongFormRender-4                                                                                                    15             15             +0.00%
BenchmarkRelatedNewIndex/singles-4                                                                                           199            199            +0.00%
BenchmarkRelatedNewIndex/all-4                                                                                               200            200            +0.00%
BenchmarkRelatedMatchesIn-4                                                                                                  188            188            +0.00%
BenchmarkTemplateParamsKeysToLower-4                                                                                         92             92             +0.00%
BenchmarkPartial-4                                                                                                           41             41             +0.00%
BenchmarkPartialCached-4                                                                                                     0              0              +0.00%
BenchmarkAbsURL-4                                                                                                            24             24             +0.00%
BenchmarkAbsURLSrcset-4                                                                                                      29             29             +0.00%
BenchmarkXMLAbsURLSrcset-4                                                                                                   27             27             +0.00%
BenchmarkXMLAbsURL-4                                                                                                         12             12             +0.00%

benchmark                                                                                                                    old bytes     new bytes     delta
BenchmarkStripHTML-4                                                                                                         736           736           +0.00%
BenchmarkTestTruncateWordsToWholeSentence-4                                                                                  0             0             +0.00%
BenchmarkTestTruncateWordsToWholeSentenceOld-4                                                                               3200          3200          +0.00%
BenchmarkTotalWords-4                                                                                                        0             0             +0.00%
BenchmarkTotalWordsOld-4                                                                                                     6528          6528          +0.00%
BenchmarkEmojiKyokomiFprint-4                                                                                                28305         28305         +0.00%
BenchmarkEmojiKyokomiSprint-4                                                                                                32577         32577         +0.00%
BenchmarkHugoEmoji-4                                                                                                         624           624           +0.00%
BenchmarkReaderContains-4                                                                                                    1258          1258          +0.00%
BenchmarkChromaHighlight-4                                                                                                   135644        135959        +0.23%
BenchmarkSortByWeightAndReverse-4                                                                                            0             0             +0.00%
BenchmarkGetPage-4                                                                                                           0             0             +0.00%
BenchmarkGetPageRegular-4                                                                                                    0             0             +0.00%
BenchmarkReplaceDivider-4                                                                                                    1536          1536          +0.00%
BenchmarkParsePage-4                                                                                                         141883        141296        -0.41%
BenchmarkScratchGet-4                                                                                                        0             0             +0.00%
BenchmarkReplaceShortcodeTokens-4                                                                                            3072          3072          +0.00%
BenchmarkShortcodeLexer-4                                                                                                    35372         46982         +32.82%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=100,tags_per_page=5,shortcodes,render-4                                     10791560      8804533       -18.41%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,tags_per_page=5,shortcodes,render-4                                     52901815      43180134      -18.38%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=1000,tags_per_page=5,shortcodes,render-4                                    104714119     85860736      -18.00%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4                          10760455      8795862       -18.26%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4                          52854140      43021285      -18.60%
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4                         105032624     85554968      -18.54%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=100,tags_per_page=5,shortcodes,render-4                 11217408      9233927       -17.68%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4                 52916416      43539999      -17.72%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4                105415273     85724149      -18.68%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4      11218914      9266697       -17.40%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4      53409475      43496483      -18.56%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4     105706543     86338159      -18.32%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=100,tags_per_page=5,shortcodes,render-4                                     11247021      9267761       -17.60%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=500,tags_per_page=5,shortcodes,render-4                                     53767738      43920117      -18.32%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=1000,tags_per_page=5,shortcodes,render-4                                    106981478     87512908      -18.20%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4                          11230808      9277672       -17.39%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4                          53670564      44045035      -17.93%
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4                         107127225     87742756      -18.09%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=100,tags_per_page=5,shortcodes,render-4                 11584724      9707721       -16.20%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4                 54644488      44784129      -18.04%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4                106783820     87975609      -17.61%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=100,num_tags=1,tags_per_page=5,shortcodes,render-4      11577676      9726703       -15.99%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,num_tags=1,tags_per_page=5,shortcodes,render-4      54644844      44960883      -17.72%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,num_tags=1,tags_per_page=5,shortcodes,render-4     107053499     87937859      -17.86%
BenchmarkHowSimilar-4                                                                                                        592           592           +0.00%
BenchmarkLayout-4                                                                                                            32            32            +0.00%
BenchmarkFrontmatterTags/JSON:1-4                                                                                            912           912           +0.00%
BenchmarkFrontmatterTags/JSON:21-4                                                                                           2392          2392          +0.00%
BenchmarkFrontmatterTags/JSON:41-4                                                                                           3896          3896          +0.00%
BenchmarkFrontmatterTags/YAML:1-4                                                                                            5928          5928          +0.00%
BenchmarkFrontmatterTags/YAML:21-4                                                                                           10920         10920         +0.00%
BenchmarkFrontmatterTags/YAML:41-4                                                                                           15944         15944         +0.00%
BenchmarkFrontmatterTags/YAML2:1-4                                                                                           6040          6040          +0.00%
BenchmarkFrontmatterTags/YAML2:21-4                                                                                          10880         10880         +0.00%
BenchmarkFrontmatterTags/YAML2:41-4                                                                                          15744         15744         +0.00%
BenchmarkFrontmatterTags/TOML:1-4                                                                                            2912          2912          +0.00%
BenchmarkFrontmatterTags/TOML:21-4                                                                                           7536          7536          +0.00%
BenchmarkFrontmatterTags/TOML:41-4                                                                                           12208         12208         +0.00%
BenchmarkLongFormRender-4                                                                                                    67984         67984         +0.00%
BenchmarkRelatedNewIndex/singles-4                                                                                           21919         21920         +0.00%
BenchmarkRelatedNewIndex/all-4                                                                                               23708         23711         +0.01%
BenchmarkRelatedMatchesIn-4                                                                                                  19565         19565         +0.00%
BenchmarkTemplateParamsKeysToLower-4                                                                                         2656          2656          +0.00%
BenchmarkPartial-4                                                                                                           1313          1313          +0.00%
BenchmarkPartialCached-4                                                                                                     0             0             +0.00%
BenchmarkAbsURL-4                                                                                                            2402          2402          +0.00%
BenchmarkAbsURLSrcset-4                                                                                                      1970          1968          -0.10%
BenchmarkXMLAbsURLSrcset-4                                                                                                   2033          2034          +0.05%
BenchmarkXMLAbsURL-4                                                                                                         1344          1345          +0.07%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment