]> granicus.if.org Git - php/commit
Use constant size string in hash bench.php
authordivinity76 <divinity76@gmail.com>
Tue, 27 Oct 2020 15:19:58 +0000 (16:19 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 30 Oct 2020 08:54:48 +0000 (09:54 +0100)
commit6c71d3476b695a92377505f2fd19ddc97418ef94
treefe61403a093a605cb71ecf796dffdbf44d854471
parentdd008fd1249dc63b2b98f695f154ba32f0134fff
Use constant size string in hash bench.php

I don't like the previous behaviour where the bytes to hash change
every time the code changes, that may make it difficult to compare
hash() performance changes over time.

Use a fixed number instead, and allow passing an override for a
different length.

Closes GH-6386.

[ci skip]
ext/hash/bench.php