impl Hasher for NaiveHasher { fn write_u64(&mut self, i: u64) { self.0 = i ^ i >> 7; } }
#define CUSTOM_HASH_FUNCTION(key) (khint32_t)((key) ^ (key)>>7)
struct hash{ uint64_t operator()(const T& t)const{ return t.data; } };
- Rust: http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
- C: http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
- C++: http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
- Rust: http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
- C: http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...
- C++: http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...