V
V
Valeri Lavrov2016-12-16 03:25:41
JavaScript
Valeri Lavrov, 2016-12-16 03:25:41

How to speed up NodeJS code?

I wrote the code in JS, launched it in NodeJS. The code iterates over the hashes and logs the appropriate ones. 1 million hashes in 75 seconds. Looked in the task manager, NodeJS uses only 20% of the processor and 70MB of RAM.
Is it possible to speed things up by allowing more CPU and memory to be used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2016-12-16
@Sanasol

There is an excellent solution for iterating hashes: https://hashcat.net/hashcat/
The only question is to write some kind of shell if necessary.
NodeJS runs in one thread - one core uses.
To use several, you need to attach a cluster to run several processes and load several cores.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question