Debajit
Debajit

Reputation: 47121

Ruby script to max out CPU?

I am trying to write a script to utilize a CPU heavily. (I need this to load test a service running on multiple hosts.)

What is the best way to do this?

Upvotes: 2

Views: 460

Answers (1)

spickermann
spickermann

Reputation: 106972

I would just do something like yes > /dev/null on the command line.

Upvotes: 1

Related Questions