[Plugin] MurmurHash3
#10

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
I didn't understand the strcmp myself, but must add that definitely in comparison to other regular hashes, this plugin is faster for confirmation if you want to validate a lot of hashes between themselves.
i.e. Int == Int is faster than Str == Str if you have a lot to compare

I think it'd be better to use md5 for anything, but I'd like to see if its faster than y_stringhash
they both produce numerical hash which are good for massive comparison, but the question is if it'd be better (faster) to use this plugin over y_stringhash
MD5 using for password and security, MurmurHash isn't for it.
Speed test for 10k executings:
Test #1
y_stringhash - 25ms.
MurmurHash - 10ms.

Test #2
y_stringhash - 26ms.
MurmurHash - 10ms.

Test #3
y_stringhash - 25ms.
MurmurHash - 10ms.

Code:
PHP код:
#include <a_samp>
#include <MurmurHash>
#include "YSI_Coding/y_stringhash"
main()
{
  new 
key[] = "This is test string";
  new 
tick = GetTickCount();
  for(new 
i = 0; i < 10000; i++)
  {
    
YHash(key);
  }
  new 
tick1 = GetTickCount();
  for(new 
i = 0; i < 10000; i++)
  {
    
MurmurHash(key,sizeof(key),0);
  }
  new 
tick2 = GetTickCount();
  
printf("y_stringhash VS MurmurHash");
  
printf("y_stringhash took %dms",tick1-tick);
  
printf("MurmurHash took %dms",tick2-tick1);
} 
Reply


Messages In This Thread
MurmurHash3 - by ShapeGaz - 20.11.2017, 19:41
Re: MurmurHash3 - by Marllun - 20.11.2017, 19:56
Re: MurmurHash3 - by Xeon™ - 20.11.2017, 20:10
Re: MurmurHash3 - by Gammix - 20.11.2017, 23:37
Re: MurmurHash3 - by MyU - 20.11.2017, 23:38
Re: MurmurHash3 - by ShapeGaz - 21.11.2017, 09:48
Re: MurmurHash3 - by KingHual - 21.11.2017, 11:37
Re: MurmurHash3 - by ShapeGaz - 21.11.2017, 12:18
Re: MurmurHash3 - by Kaperstone - 21.11.2017, 18:35
Re: MurmurHash3 - by ShapeGaz - 21.11.2017, 19:26
Re: MurmurHash3 - by Raimis_R - 21.11.2017, 20:09
Re: MurmurHash3 - by ShapeGaz - 22.11.2017, 10:25
Re: MurmurHash3 - by BigETI - 22.11.2017, 10:41
Re: MurmurHash3 - by Kaperstone - 22.11.2017, 11:37
Re: MurmurHash3 - by BigETI - 22.11.2017, 11:50
Re: MurmurHash3 - by Kaperstone - 22.11.2017, 17:27
Re: MurmurHash3 - by ShapeGaz - 22.11.2017, 19:34
Re: MurmurHash3 - by adri1 - 22.11.2017, 21:43
Re: MurmurHash3 - by ThePhenix - 22.11.2017, 22:03
Re: MurmurHash3 - by Chaprnks - 23.11.2017, 00:19
Re: MurmurHash3 - by Kaperstone - 23.11.2017, 04:16
Re: MurmurHash3 - by ShapeGaz - 23.11.2017, 08:53
Re: MurmurHash3 - by Calgon - 23.11.2017, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)