Skip to content
Browse files

feat #335 configurable number of PhantomJS instances in Attester

Makes it possible to increase (locally, per-user) no. of PhantomJS
instances in Attester to parallelize the execution of the test suite
when launched via 'npm run-script attester' (and 'npm test').

Type in the console e.g.
 npm config set ariatemplates:phantomjsInstances 4
to change the default to 4.

Set it to ~= your processor's noOfCores * noOfThreads * 2
for max performance. E.g. on quad-core dual-threaded processor,
set it to 4*2*2 = 16.

Keep in mind that each thread consumes ~= 30-50 MB of RAM.

This commit requires attester 1.0.2.

Close #335. Close #337.
  • Loading branch information...
1 parent 67a8e10 commit 9446154242424f22b17482987267ca69997b7b61 @jakub-g jakub-g committed with divdavem
Showing with 3 additions and 2 deletions.
  1. +3 −2 package.json
View
5 package.json
@@ -16,13 +16,14 @@
"grunt-verifylowercase": "*"
},
"config": {
- "port": "8080"
+ "port": "8080",
+ "phantomjsInstances": 2
},
"scripts": {
"start": "node scripts/server.js",
"prestart": "npm install && node node_modules/grunt/bin/grunt package",
"grunt": "node node_modules/grunt/bin/grunt",
- "attester": "node node_modules/attester/bin/attester.js test/attester.yml --phantomjs-instances 2",
+ "attester": "node node_modules/attester/bin/attester.js test/attester.yml",
"lint": "node node_modules/grunt/bin/grunt checkStyle",
"test": "npm run-script lint && npm run-script attester && npm run-script grunt"
},

0 comments on commit 9446154

Please sign in to comment.
Something went wrong with that request. Please try again.