V
V
vanyok7462015-03-25 19:03:37
Test Driven Development
vanyok746, 2015-03-25 19:03:37

Which benchmark to choose?

There is a task:
"We need to force the CPU to load at 5, 10, 15 ... 90, 95, 100%"
As I understand it, you need to use some kind of benchmark, where you can manually specify the CPU load level in percent / MHz.
What are the solutions to this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Martyanov, 2015-03-25
@vilgeforce

Write the appropriate software. It will be necessary to determine the number of logical processors and, in accordance with it and the required load, create threads. Threads will already be executing code to load the processor.

V
vanyok746, 2015-03-30
@vanyok746

all garbage ..)
we solve the issue through Linux. We start an eternal loop, we get CPU 100%, and through cpulimit we limit by n%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question