
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
distributed-game-of-life
Advanced tools
#WAT
Run your js in multithreaded!. Harness up to 100% CPU power. GOL done in distributed manner,
#HOW
Install node and npm, node-gyp, bower and git, then:
npm i --save gol
npm start
and wait till 10 workers will do the job
change first line of index.js
to use 2 workers
and observe that it takes twice more time to calculate the world
##Benchmark of calculations of game of life
10 workes
vs 100times x 2xrecalculate x 100xpartsOfWolrd
1: 6617ms
1: 5957ms
1: 5870ms
1 worker (single thread)
vs 100times x 2xrecalculate x 100xpartsOfWolrd
1: 22223ms
1: 23846ms
1: 24604ms
generally on 4 actual cores one can expect speedup of 3.9 times
#HOW
Change first line from 10 to 2 workers and run the script
you know the drill
git clone
cd
npm install
node index.js
FAQs
GOL(game of life) done in distributed manner
We found that distributed-game-of-life demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.