Tf - pyton vs nodejs cpu speed

Hi! I write in Node JS, it has poor implementation of parallel computing on the CPU. How are things going in Python? Is there a difference in speed? on new processors. The GPU has thousands of processors and everything works there, I don’t understand why this is a problem here.

Hi @gotostereo

Node.js has limitations in CPU-bound parallel processing due to its single-threaded nature, despite offering modules like ‘cluster’ for multi-core usage. Python provides more robust parallel computing support through modules like ‘multiprocessing’ and libraries such as NumPy and Pandas. While Node.js excels in I/O-bound tasks, Python may have an advantage in CPU-bound parallel computations, especially on multi-core processors. GPUs excel at parallel processing simple tasks, while CPUs handle complex, sequential tasks better .The choice between Node.js and Python depends on specific use cases and familiarity with each ecosystem.

Thank You .