Skip to content

Commit abf97bd

Browse files
committed
GR support
1 parent 8835c46 commit abf97bd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ node test_ar2_chukwa.js || exit 1
4242
node test_ar2_chukwa2.js || exit 1
4343
node test_ar2_wrkz.js || exit 1
4444

45+
node test_perf_rtm.js
4546
node test_perf.js
4647
node test_perf_xla.js
4748
node test_perf_kawpow.js

tests/test_perf_rtm.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"use strict";
2+
let multiHashing = require('../build/Release/cryptonight-hashing');
3+
4+
const ITER = 200;
5+
let input = Buffer.from('000000208c246d0b90c3b389c4086e8b672ee040d64db5b9648527133e217fbfa48da64c0f3c0a0b0e8350800568b40fbb323ac3ccdf2965de51b9aaeb939b4f11ff81c49b74a16156ff251c00000000', 'hex');
6+
7+
let start = Date.now();
8+
for (let i = ITER; i; -- i) {
9+
multiHashing.cryptonight(input, 18);
10+
}
11+
let end = Date.now();
12+
console.log("Perf: " + 1000 * ITER / (end - start) + " H/s");

0 commit comments

Comments
 (0)