File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ node test_ar2_chukwa.js || exit 1
42
42
node test_ar2_chukwa2.js || exit 1
43
43
node test_ar2_wrkz.js || exit 1
44
44
45
+ node test_perf_rtm.js
45
46
node test_perf.js
46
47
node test_perf_xla.js
47
48
node test_perf_kawpow.js
Original file line number Diff line number Diff line change
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" ) ;
You can’t perform that action at this time.
0 commit comments