To run the Java version:
-
Download: https://dl.dropboxusercontent.com/u/18074905/blc-bench-final.jar
-
Run it from the command line:
time java -jar blc-bench-final.jar
To run the Clojure version:
-
Download: https://dl.dropboxusercontent.com/u/51836583/tnt-0.1.0-SNAPSHOT-standalone.jar
-
From command line (no
timeneeded since I baked it into the program):java -jar target/tnt-0.1.0-SNAPSHOT-standalone.jar
To run the Ruby and Python versions:
- Paste it into
miner.rband runtime ruby miner.rb - Or into
miner.pyand runtime python miner.py.
My results:
- Java: 11.640 seconds
- Clojure: 11.692 seconds
- Python: 32.628 seconds
- Ruby: 47.892 seconds
-- Dobry Den
Just to clarify to readers, the magic number we're looking to reach to hash is
kNTny7203745, which is hashed into0000000cea680366347c752dd41bb813e1b0f6e8aee8e4affc173ef[...](shortened for brevity).I ran the python script and got this:
Which is significantly faster than your 32 seconds.
For the Ruby script I got a large, but significantly faster result than you, yet again:
I think we're going to need to average stuff out, since my
9.92sis waaaaay faster than your32.628s.Also, I wrote a crappy C++ implementation, but keep in mind I'm not a C++ developer by any margin, I rarely write anything in it, so to an experienced programmer, this will look like ass cakes:
To be fair, that looks like asscakes to me, but you know.
(Compiled with:
g++ blc_miner.cpp -o blc_miner -lcrypto)For that I got the output: