diff options
| author | nasr <nsrddyn@gmail.com> | 2025-11-26 23:11:25 +0100 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2025-11-26 23:11:25 +0100 |
| commit | 5c90505fe7b6566049bead5e36a5e3f73d844413 (patch) | |
| tree | d65a6402dd93d0e8ccb464eb5eab382e625a67d1 /src/main/scala/com/nsrddyn/ALU/Hash.scala | |
| parent | d6f99d058b34d5b6fbc3f630bf491b302cdf324f (diff) | |
chore: file refactor, imported zio
next steps are running the threads multithreaded and measuring for
errors
Diffstat (limited to 'src/main/scala/com/nsrddyn/ALU/Hash.scala')
| -rw-r--r-- | src/main/scala/com/nsrddyn/ALU/Hash.scala | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main/scala/com/nsrddyn/ALU/Hash.scala b/src/main/scala/com/nsrddyn/ALU/Hash.scala deleted file mode 100644 index 9dc5a98..0000000 --- a/src/main/scala/com/nsrddyn/ALU/Hash.scala +++ /dev/null @@ -1,31 +0,0 @@ -package com.nsrddyn.alu - -import scala.util.hashing - -class Hash { - -import scala.util.hashing.MurmurHash3 - - def run(word: String, loopSize: Int): Unit = { - - /* TODO: implement ALU friendly, so high speed hashing - * to continuously loop over voor stressing - * ALU - * - * While looking for hashing algorithmes to implement I stumbled on: - * https://scala-lang.org/api/3.x/scala/util/hashing/MurmurHash3$.html - * - * which is an implemntation of **smasher** http://github.com/aappleby/smhasher - * the exact type of hashing algorithm I was looking for - * - * In the scala description they state: "This algorithm is designed to generate - * well-distributed non-cryptographic hashes. It is designed to hash data in 32 bit chunks (ints). " - * - * (ints) -> ALU - * - */ - - for i <- 0 to loopSize do MurmurHash3.stringHash(word) - - } -} |
