CPU speed determines how fast your process can perform tasks. CPU speeds matter less than they did in the past, thanks to the advent of multi-core processors.
Questions tagged [cpu-speed]
203 questions
13
votes
5 answers
How to profile django application with respect to execution time?
My Django application is insanely slow, I want to figure out what is taking time :
I tried Django-debug-toolbar but was unable to find a panel that can give me the break-up of the load time.
My requirements:
A stack-trace type output with time of…

Yugal Jindle
- 44,057
- 43
- 129
- 197
12
votes
5 answers
ATLAS install: Really need to get past CPU throttle check
ATLAS 3.10.1 will not install on my organization's CentOS 6.x platform because it detects CPU throttling. In older versions of the package, there was a configure flag to turn the throttle check off (-Si cputhrchk 0) and forge ahead regardless. …

bob.sacamento
- 6,283
- 10
- 56
- 115
12
votes
1 answer
How are logarithms programmed?
Are they just figured out using the same mechanism as a linear search or is the range narrowed down somehow, similar to a binary search.

Taffer
- 147
- 1
- 1
- 4
11
votes
1 answer
Why cpu bound is better with blocking I/O and I/O bound is better with non blocking I/O
I have been told that for I/O bound applications, non blocking I/O would be better. For CPU bound applications, blocking I/O is much better. I could not find the reason for such a statement. Tried google, but few articles just touches the topic with…

piyushGoyal
- 1,079
- 1
- 11
- 26
10
votes
4 answers
Measure CPU speed by counting assembly instructions
Edit: My original example had a silly mistake. After fixing it I still get weird results, though.
In my naive attempt to measure my CPU speed the "brute-force" way, I made the program below:
#include
#include
#include…

user541686
- 205,094
- 128
- 528
- 886
9
votes
1 answer
Which is faster: x*x or x**2?
I am trying to optimize my Python code. Between:
y = x*x
or
y = x**2
if I need one trillion iterations in a speed-critical program, which one should I choose?

kmonsoor
- 7,600
- 7
- 41
- 55
8
votes
9 answers
Run my application in a simulated low memory, slow CPU environment
I want to stress-test my application this way, because it seems to be failing in some very old client machines.
At first I read a bit about QEmu and thought about hardware emulation, but it seems a long shot. I asked at superuser, but didn't get…

dario_ramos
- 7,118
- 9
- 61
- 108
8
votes
1 answer
Why is R slower on my (stronger) Desktop than on my (weaker) laptop?
I'm using a Dell Latitude E7440 Laptop with Windows 7 Enterprise OS, 8GB RAM, 64-bit OS, Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz Processor, 2701 Mhz, 2 Cores, 4 Logical Processors (that's 4 cores).
I'm using a Dell Precision Tower 7810 Desktop with…

Giora Simchoni
- 3,487
- 3
- 34
- 72
7
votes
26 answers
Will optimizing code become unnecessary?
If Moore's Law holds true, and CPUs/GPUs become increasingly fast, will software (and, by association, you software developers) still push the boundaries to the extent that you still need to optimize your code? Or will a naive factorial solution be…

jkeys
- 3,803
- 11
- 39
- 63
7
votes
1 answer
I need to call accurate CPU usage of a single process
The Trick is I also need to be able to do it on multicore machines. My education in C# is a tad broken. I have managed the following code. Can anyone help me out? I have tried using the "_Total" flag and I have tried modifying some other code…

Solaris17
- 73
- 1
- 1
- 5
7
votes
1 answer
Python - Core Speed
I'm trying to find out where this value is stored in both windows and osx, in order to do some calculations to make a better task distribution.
Core speed in Hz
Thanks in advance.
Using the platform.process() command only returns the name not the…

NightmaresInd
- 75
- 1
- 1
- 5
7
votes
1 answer
How to derive the Peak performance in GFlop/s of Intel Xeon E5-2690?
I was able to find the theoretical DP peak performance 371 GFlop/s for the Xeon E5-2690 in this Processor Comparison (interesting that it is easier to find this information in Intel's competitor than Intel support pages itself). However, when I try…

SkyWalker
- 13,729
- 18
- 91
- 187
6
votes
4 answers
Would writing HTML with PHP's echo vs writing plain HTML cause any differences in performance?
Which is better in terms of CPU optimization for a web server? Writing plain HTML and inserting PHP code here and there?

Andres SK
- 10,779
- 25
- 90
- 152
6
votes
2 answers
Is it faster to add a key to a dictionary or append a value to a list in Python?
I have an application where I need to build a list or a dictionary and speed is important. Normally I would just declare a list of zeros of the appropriate length and assign values one at a time but I need to be able to check the length and have it…

MattTheSnake
- 107
- 1
- 7
6
votes
2 answers
What exactly is a machine cycle?
I'm kinda confused about the exact definition of a "machine cycle".
For example, some source online say that it is:
The four steps which the CPU carries out for each machine language instruction: fetch, decode, execute, and store.
While the book…

Abdelrahman Eid
- 881
- 2
- 13
- 28