Sign in to follow this  
Followers 0
Kasteel

Simulate CPU usage

4 posts in this topic

Hi

I need to simulate 20% (more or less) of CPU usage.

Is this possible to do with AutoIT?

Thanks :)

Share this post


Link to post
Share on other sites



Dont understand that.

Whats your endgame?

I need to simulate CPU usage for a performance test. In other words I need to keep the CPU busy where this will simulate as if a user is working on the computer.

Share this post


Link to post
Share on other sites

I need to simulate 20% (more or less) of CPU usage.

this may be a difficalt task considering AutoIt is single threded. a single autoit instance can never take more than one core of the processor.

You may be able to use this to your advantage. eg. if you have a 4 core processor you could run the below (very simple) script and it would take approx 25% of the CPU.

Is that enough for your purposes?

while 1
wend

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0