From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26900 invoked by alias); 24 Oct 2015 10:54:29 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36934 Received: (qmail 16626 invoked from network); 24 Oct 2015 10:54:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=whO3yGQJ333vjfjXAN32jX8xzm/z2umaA9RGJOQJFAQ=; b=yRESot2CSgkawBUCpRFreLviI37j/gZg7JjbnbUGq5KkQw6rq5UPXgxDiPDSvoRyh+ cirG76qH4II6pyqXCiUlxPlt+jRcRIfabQ1s4hgKwQhibs8ALPobMAyLT27ECgNZdvY/ KmMqfprKNlSWiikwqjJX4GHRxu9cjzM6iAnWMop4VBDoklNBKcq0/Hvk3W1WB91WNt0R 8wfPrj7AO9fpBnEI/T9IwiSEfuZJp2NMgdTBQrPPtYvuce3VKBuiqUbdpjiwk5QWMLfS Tt7hRo7TNLjuMWVzDcwonSZbEPJnXDIwITOsZXiRNNomMFLIISRTmNvoUYMJG0qna8Ay O4ZQ== X-Received: by 10.25.78.80 with SMTP id c77mr8750933lfb.18.1445684064610; Sat, 24 Oct 2015 03:54:24 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <151023165006.ZM25785@torch.brasslantern.com> References: <151010105849.ZM10144@torch.brasslantern.com> <151010170623.ZM16166@torch.brasslantern.com> <151010232045.ZM12931@torch.brasslantern.com> <151011091757.ZM27755@torch.brasslantern.com> <151011103121.ZM8814@torch.brasslantern.com> <151011142204.ZM9103@torch.brasslantern.com> <151012070105.ZM15099@torch.brasslantern.com> <151012173304.ZM15477@torch.brasslantern.com> <151013085246.ZM30504@torch.brasslantern.com> <20151014142722.282d0c5a@pwslap01u.europe.root.pri> <151014092536.ZM32511@torch.brasslantern.com> <151014095009.ZM19954@torch.brasslantern.com> <151014213224.ZM15646@torch.brasslantern.com> <151015173554.ZM30733@torch.brasslantern.com> <151019102117.ZM32700@torch.brasslantern.com> <151022080024.ZM6471@torch.brasslantern.com> <151023122655.ZM21177@torch.brasslantern.com> <151023165006.ZM25785@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sat, 24 Oct 2015 12:54:04 +0200 Message-ID: Subject: Re: Slowdown around 5.0.5-dev-0 To: zsh-workers@zsh.org Content-Type: multipart/mixed; boundary=001a114194e421103f0522d78d0d --001a114194e421103f0522d78d0d Content-Type: text/plain; charset=UTF-8 I attach my results for the same builds as yours. Tried to calibrate the running time and I ended up running really long tests (quite exhausting to move mouse every few minutes as my screensaver is broken and always turns on after few minutes). Will try to calibrate again later, and I also am running the same tests on a ubuntu netbook. Few conclusions: > Running [zsh-5.0.7]: string_test 48631,87 > Running [zsh-5.0.8]: string_test 86302,14 This says there something happened after 5.0.7 and reveals itself on OS X, could try to track it with bisect. > Running [zsh-5.1]: string_test 86698,42 > Running [zsh-head-8e9a68a]: string_test 38887,54 > Running [zsh-36926]: string_test 86497,62 This says 36926 doesn't include string boost up (at cost of memory use) that current head has. > Running [zsh-5.1]: search_test 51321,70 > Running [zsh-head-8e9a68a]: search_test 10071,26 > Running [zsh-36926]: search_test 10260,60 This says that pattern maching boost up is retained. > Running [zsh-5.1]: function_test 49070,83 > Running [zsh-head-8e9a68a]: function_test 56299,14 > Running [zsh-36926]: function_test 54456,34 This informs about slowdown caused by newheaps patch, and points that 36926 can make it smaller. I also did memory tests: > # Tests for zsh-head-8e9a68a > # string_test 42, 182, 318, 457, 590, 720, last: 10 > string_test 317.8 This informs about the 36834 problem with memory. > # Tests for zsh-36926 > # string_test 2.1, 6.6, 8.6, 10, 10, 11, 9.5, 11, 11, 11, 11, 11, last: 9.6 > string_test 9.3 This shows it's solved. > # search_test 110, 215, last: 265 > search_test 110.0 This is the high memory usage when matching patterns in large arrays you mentioned. Best regards, Sebastian Gniazdowski --001a114194e421103f0522d78d0d Content-Type: text/plain; charset=US-ASCII; name="perf-test-36926.txt" Content-Disposition: attachment; filename="perf-test-36926.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ig4yrm5p0 Mi4zIEludGVsIENvcmUgaTUsIDggR0IgUkFNLCBPUyBYIDEwLjkuMgoKUGFzcyAxOgoKUnVubmlu ZyBbenNoLTUuMC43XTogICAgICAgICAgICAgICAgICAgICBzdHJpbmdfdGVzdCAgICAgIDQ4NjMx LDg3ClJ1bm5pbmcgW3pzaC01LjAuOF06ICAgICAgICAgICAgICAgICAgICAgc3RyaW5nX3Rlc3Qg ICAgICA4NjMwMiwxNApSdW5uaW5nIFt6c2gtNS4xXTogICAgICAgICAgICAgICAgICAgICAgIHN0 cmluZ190ZXN0ICAgICAgODc5NzAsMzMKUnVubmluZyBbenNoLTM2OTI2XTogICAgICAgICAgICAg ICAgICAgICBzdHJpbmdfdGVzdCAgICAgIDg2NjgyLDM1CgpSdW5uaW5nIFt6c2gtNS4wLjddOiAg ICAgICAgICAgICAgICAgICAgIGFycmF5X3Rlc3QgICAgICAgODc2OTksMDMKUnVubmluZyBbenNo LTUuMC44XTogICAgICAgICAgICAgICAgICAgICBhcnJheV90ZXN0ICAgICAgIDkxNTQwLDQxClJ1 bm5pbmcgW3pzaC01LjFdOiAgICAgICAgICAgICAgICAgICAgICAgYXJyYXlfdGVzdCAgICAgICA4 MjkwNyw2OQpSdW5uaW5nIFt6c2gtMzY5MjZdOiAgICAgICAgICAgICAgICAgICAgIGFycmF5X3Rl c3QgICAgICAgODIyMDMsMjcKClJ1bm5pbmcgW3pzaC01LjAuN106ICAgICAgICAgICAgICAgICAg ICAgZnVuY3Rpb25fdGVzdCAgICA0NDE1MCwwMgpSdW5uaW5nIFt6c2gtNS4wLjhdOiAgICAgICAg ICAgICAgICAgICAgIGZ1bmN0aW9uX3Rlc3QgICAgNDc5MTUsMjQKUnVubmluZyBbenNoLTUuMV06 ICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbl90ZXN0ICAgIDQ4NDQ4LDk1ClJ1bm5pbmcg W3pzaC0zNjkyNl06ICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb25fdGVzdCAgICA1NzEyNiw4 NgoKUnVubmluZyBbenNoLTUuMC43XTogICAgICAgICAgICAgICAgICAgICBzZWFyY2hfdGVzdCAg ICAgIDU1ODYyLDkzClJ1bm5pbmcgW3pzaC01LjAuOF06ICAgICAgICAgICAgICAgICAgICAgc2Vh cmNoX3Rlc3QgICAgICA1MTQ4MCwwNwpSdW5uaW5nIFt6c2gtNS4xXTogICAgICAgICAgICAgICAg ICAgICAgIHNlYXJjaF90ZXN0ICAgICAgNTEwMjcsMzgKUnVubmluZyBbenNoLTM2OTI2XTogICAg ICAgICAgICAgICAgICAgICBzZWFyY2hfdGVzdCAgICAgIDEwMjc0LDExCgpQYXNzIDI6CgpSdW5u aW5nIFt6c2gtNS4wLjddOiAgICAgICAgICAgICAgICAgICAgIHN0cmluZ190ZXN0ICAgICAgNDg3 OTksMjUKUnVubmluZyBbenNoLTUuMC44XTogICAgICAgICAgICAgICAgICAgICBzdHJpbmdfdGVz dCAgICAgIDg2NjgyLDIxClJ1bm5pbmcgW3pzaC01LjFdOiAgICAgICAgICAgICAgICAgICAgICAg c3RyaW5nX3Rlc3QgICAgICA4NjY5OCw0MgpSdW5uaW5nIFt6c2gtaGVhZC04ZTlhNjhhXTogICAg ICAgICAgICAgIHN0cmluZ190ZXN0ICAgICAgMzg4ODcsNTQKUnVubmluZyBbenNoLTM2OTI2XTog ICAgICAgICAgICAgICAgICAgICBzdHJpbmdfdGVzdCAgICAgIDg2NDk3LDYyCgpSdW5uaW5nIFt6 c2gtNS4wLjddOiAgICAgICAgICAgICAgICAgICAgIGFycmF5X3Rlc3QgICAgICAgODY3NTQsMDMK UnVubmluZyBbenNoLTUuMC44XTogICAgICAgICAgICAgICAgICAgICBhcnJheV90ZXN0ICAgICAg IDgyNDUxLDUxClJ1bm5pbmcgW3pzaC01LjFdOiAgICAgICAgICAgICAgICAgICAgICAgYXJyYXlf dGVzdCAgICAgICA4Mjg4MCw1NgpSdW5uaW5nIFt6c2gtaGVhZC04ZTlhNjhhXTogICAgICAgICAg ICAgIGFycmF5X3Rlc3QgICAgICAgODIyNzYsODAKUnVubmluZyBbenNoLTM2OTI2XTogICAgICAg ICAgICAgICAgICAgICBhcnJheV90ZXN0ICAgICAgIDgzMDc1LDAxCgpSdW5uaW5nIFt6c2gtNS4w LjddOiAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uX3Rlc3QgICAgNDU1MTYsNjcKUnVubmlu ZyBbenNoLTUuMC44XTogICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbl90ZXN0ICAgIDQ5MTIy LDQ2ClJ1bm5pbmcgW3pzaC01LjFdOiAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb25fdGVz dCAgICA0OTA3MCw4MwpSdW5uaW5nIFt6c2gtaGVhZC04ZTlhNjhhXTogICAgICAgICAgICAgIGZ1 bmN0aW9uX3Rlc3QgICAgNTYyOTksMTQKUnVubmluZyBbenNoLTM2OTI2XTogICAgICAgICAgICAg ICAgICAgICBmdW5jdGlvbl90ZXN0ICAgIDU0NDU2LDM0CgpSdW5uaW5nIFt6c2gtNS4wLjddOiAg ICAgICAgICAgICAgICAgICAgIHNlYXJjaF90ZXN0ICAgICAgNTcyNjcsMjkKUnVubmluZyBbenNo LTUuMC44XTogICAgICAgICAgICAgICAgICAgICBzZWFyY2hfdGVzdCAgICAgIDUwODQxLDkxClJ1 bm5pbmcgW3pzaC01LjFdOiAgICAgICAgICAgICAgICAgICAgICAgc2VhcmNoX3Rlc3QgICAgICA1 MTMyMSw3MApSdW5uaW5nIFt6c2gtaGVhZC04ZTlhNjhhXTogICAgICAgICAgICAgIHNlYXJjaF90 ZXN0ICAgICAgMTAwNzEsMjYKUnVubmluZyBbenNoLTM2OTI2XTogICAgICAgICAgICAgICAgICAg ICBzZWFyY2hfdGVzdCAgICAgIDEwMjYwLDYwCgo= --001a114194e421103f0522d78d0d Content-Type: text/plain; charset=US-ASCII; name="mem-test-36926.txt" Content-Disposition: attachment; filename="mem-test-36926.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ig4yrpaw1 Mi4zIEludGVsIENvcmUgaTUsIDggR0IgUkFNLCBPUyBYIDEwLjkuMgoKIyBUZXN0cyBmb3IgenNo LTUuMC43CiMgc3RyaW5nX3Rlc3QgNS44LCAxMCwgMTIsIDExLCAxMSwgMTIsIGxhc3Q6IDExCnN0 cmluZ190ZXN0IDEwLjAKIyBhcnJheV90ZXN0IDEuMywgMi4zLCAzLjIsIDMuOSwgNC4zLCA1LjIs IDYuMiwgNy4zLCA3LjcsIDguMSwgOC4zLCA4LjYsIGxhc3Q6IDguNwphcnJheV90ZXN0IDUuMwoj IGZ1bmN0aW9uX3Rlc3QgMi43LCAyLjgsIDIuOCwgMi44LCAyLjgsIDIuOCwgbGFzdDogMi44CmZ1 bmN0aW9uX3Rlc3QgMi44CiMgc2VhcmNoX3Rlc3QgNjUsIDExNywgMTQ5LCAxNzUsIDE5OCwgMjE5 LCAyMzgsIGxhc3Q6IDI1NwpzZWFyY2hfdGVzdCAxNTMuOAoKCiMgVGVzdHMgZm9yIHpzaC01LjAu OAojIHN0cmluZ190ZXN0IDIuMSwgNi43LCA4LjYsIDEwLCAxMCwgMTEsIDkuNSwgMTAsIDExLCAx MSwgMTEsIDExLCBsYXN0OiA5LjYKc3RyaW5nX3Rlc3QgOS4yCiMgYXJyYXlfdGVzdCAxLjIsIDIu MSwgMy4zLCAzLjcsIDQuNCwgNS40LCA2LjQsIDcuMSwgNy44LCA4LjEsIDguNCwgOC42LCBsYXN0 OiA4LjkKYXJyYXl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