summaryrefslogtreecommitdiff
path: root/t/benchmark
Commit message (Collapse)AuthorAgeFilesLines
* Clean: Remove confusing comment from a testMichael Witten2011-05-181-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per: Re: [PATCH 2/2] Clean: Actually use HvUSEDKEYS() instead of HvKEYS() Sun, 15 May 2011 20:29:05 +0000 Message-Id: <2a28ed668b6641e6b5f6e0fb4e5374b4-mfwitten@gmail.com> the text in question was introduced along with the test in this commit: $ c=58da6fbcb8d595318b667d7d7cc8739f5feb15f3 $ git log -1 $c commit 58da6fbcb8d595318b667d7d7cc8739f5feb15f3 Author: Max Maischein <corion@corion.net> Date: Mon Jun 1 14:18:42 2009 +0200 Add benchmark test for keys() on empty hashes (RT26188) I believe the text in question is an allusion to the code introduced in the parent commit: $ git log -1 $c^ commit 900ac0519e4b408fd93443b14b734cc330c59698 Author: Max Maischein <corion@corion.net> Date: Sun May 31 23:50:12 2009 +0200 Fix RT26188, speed up keys() on empty hash namely the code starting at line 2132 of 900ac0519e4b408fd93443b14b734cc330c59698:hv.c: /* At start of hash, entry is NULL. */ ... if (HvKEYS(hv) || (flags & HV_ITERNEXT_WANTPLACEHOLDERS)) { ... } ... return entry; It is best just to remove the text in question, as it is of no real use. Signed-off-by: Michael Witten <mfwitten@gmail.com>
* Clean: Actually use HvUSEDKEYS() instead of HvKEYS()Michael Witten2011-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This: commit 8aacddc1ea3837f8f1a911d90c644451fc7cfc86 Author: Nick Ing-Simmons <nik@tiuk.ti.com> Date: Tue Dec 18 15:55:22 2001 +0000 Tidied version of Jeffrey Friedl's <jfriedl@yahoo.com> restricted hashes - added delete of READONLY value inhibit & test for same - re-tabbed p4raw-id: //depot/perlio@13760 essentially deprecated HvKEYS() in favor of HvUSEDKEYS(); this is explained in line 144 (now 313) of file `hv.h': /* * HvKEYS gets the number of keys that actually exist(), and is provided * for backwards compatibility with old XS code. The core uses HvUSEDKEYS * (keys, excluding placeholdes) and HvTOTALKEYS (including placeholders) */ This commit simply puts that into practice, and is equivalent to running the following (at least with a35ef416833511da752c4b5b836b7a8915712aab checked out): git grep -l HvKEYS | sed /hv.h/d | xargs sed -i s/HvKEYS/HvUSEDKEYS/ Notice that HvKEYS is currently just an alias for HvUSEDKEYS: $ git show a35ef416833511da752c4b5b836b7a8915712aab:hv.h | sed -n 318p #define HvKEYS(hv) HvUSEDKEYS(hv) According to `make tests': All tests successful.
* It's not necessary to hardcode skipping of benchmark tests in themRafael Garcia-Suarez2009-06-111-1/+0
| | | | since that's handled by TEST and harness
* Add benchmark test for keys() on empty hashes (RT26188)Max Maischein2009-06-011-0/+91