I'm working on building a simple app that I can use to test out microservice scaling. I have a simple node.js webserver running with a few routes, but now I need to find something to run that will use some CPU when hitting the routes.
Right now I have a listener up that starts a child process and calculates prime numbers. In my testing it may take a decent while to generate primes up to 100,000,000.... but even with 10+ child process running I am not seeing any real CPU load. So guessing this single threaded type of math equation isn't a great use case.
Can anyone point me to some simple to run things in JS that will burn some CPU?
