Configurable number of PhantomJS instances in Attester #335

Closed
jakub-g opened this Issue Jan 18, 2013 · 1 comment

1 participant

@jakub-g

Currently in package.json we use hardcoded value of 2 PhantomJS instances to be used by Attester. We should make it configurable.

This requires code change in Attester as well as AT's package.json.

@jakub-g jakub-g added a commit to jakub-g/ariatemplates that referenced this issue Jan 24, 2013
@jakub-g jakub-g 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.
be8dd4b
@divdavem divdavem added a commit to divdavem/ariatemplates that referenced this issue Jan 24, 2013
@jakub-g jakub-g 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.
9446154
@jakub-g jakub-g added a commit that closed this issue Jan 24, 2013
@jakub-g jakub-g 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.
9446154
@jakub-g jakub-g closed this in 9446154 Jan 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment