Home > Back-end >  Who can tell me, the programming language for loop, if the short run, a second can run several times
Who can tell me, the programming language for loop, if the short run, a second can run several times

Time:09-28

Who can tell me, the programming language for loop, if let it run, can run a few times a second?

CodePudding user response:

The CPU, the better, the more times,
Good in theory, if the computer CPU, the number is no upper limit,

CodePudding user response:

Should see the assembly statement, then CPU cycles a few lines of statements, out-of-order whether the executive branch prediction accuracy, a cache hit, CPU frequency and so on, also did not consider the multitasking operating system process scheduling,

CodePudding user response:

Run a 100000 times to see, how long will it take to your computer

CodePudding user response:

Consider the compiler optimization, if optimized, empty running is deleted, time is 0
  • Related