[infinispan-dev] Hash functions
Jason T. Greene
jason.greene at redhat.com
Wed Mar 31 00:07:06 EDT 2010
Jason T. Greene wrote:
> Manik Surtani wrote:
>> On 29 Mar 2010, at 10:30, Galder Zamarreno wrote:
>>
>>> Manik,
>>>
>>> If String's are dealt with by calling String.getBytes() which in
>>> turns gets processed as a byte[], why is there such a big
>>> difference SuperFastHash String speed and MurmurHash2 String speed
>>> (162 ms vs 56 ms) but there's hardly any difference between the
>>> byte[] tests (29ms vs 40ms) ?
>>
>> No idea. Microbenchmarks are notoriously fickle though, I will try
>> and run this again over a larger sample size to smooth things out a bit.
>>
>
> UTF-8 encoding. It has a cost.
>
^ measurable
--
Jason T. Greene
JBoss, a division of Red Hat
More information about the infinispan-dev
mailing list