Questions tagged [cpu-speed]

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.

203 questions
1
vote
1 answer

Computing time reduced after iterations

I am doing project on efficiency of sorting algorithm. Lets say I performed 50 iterations of bubble sorts and find the average time taken for n numbers. But I realize that the first few iterations are always slower than subsequent iterations e.g.…
Ren Fa Kay
  • 107
  • 1
  • 9
1
vote
1 answer

Confusing performance difference between Intel CPUs

I'm in the process of implementing different algorithms on CPUs and GPUs. What struck me as odd was that a very primitive example (sequentially - aka 1 thread - creating a histogram of an array with 100*1024*1024 elements) takes 200% - 300% longer…
lightxx
  • 1,037
  • 2
  • 11
  • 29
1
vote
3 answers

fast python matrix creation and iteration

I need to create a matrix starting from the values of a weight matrix. Which is the best structure to hold the matrix in term of speed both when creating and iterating over it? I was thinking about a list of lists or a numpy 2D array but they both…
Nadir
  • 139
  • 1
  • 3
  • 11
1
vote
1 answer

How to test functionality which requires the task to take an undefined amount of time to complete

I'm currently developing a web-site and ran into some bugs. In order to fix some bugs I need to reproduce them so I can debug and so forth.. Some bugs require me to do a repetitive specific combination of buttonclicks/checkbox markings within a…
Linora
  • 10,418
  • 9
  • 38
  • 49
1
vote
3 answers

What is faster and best for with if and return or while?

I have a question about the for and while loops, as we have to travel a value until a condition is met. I wonder which is more efficient at low level, and why? That is, these two codes give the same result: FOR: for (int i = 0; i<10 ; i++) { if…
leoledmag
  • 138
  • 1
  • 6
1
vote
3 answers

How to check CPU name, model, speed on Windows/Linux C?

I would like to get some infos with C about hardware: how many CPU's I have how many cores have each of them how many logical cores have every core in every CPU CPU name + model CPU speed + frequency CPU architecture (x86, x64) I know that on…
nullpointer
  • 245
  • 3
  • 6
  • 15
1
vote
1 answer

Clock frequency of the CPU & measuring time elapses

I wanted to know how much time "1ms sleep" takes. Ran this quest in kernel module: rdtscl(aj); msleep(1); rdtscl(b); printk(KERN_INFO "Difference = %lu", (b-a));// Number of clock cycles consumed Output i got: Difference = 13479219 Output for cat…
Kernel
  • 55
  • 7
1
vote
3 answers

Java code speed improvement

Hi all may such a code cause lag of process? while(true) if(!connected) break; As we see it checks for condition all the time. Would it be faster if I set small sleep in each iteration. The code runs on Android GingerBread. EDIT: It waits for…
Balvonas
  • 179
  • 2
  • 11
1
vote
2 answers

How to calculate and print clock_t time roughly

I am timing how long it takes to do three different types of searches, sequential, recursive binary, and iterative binary. I have those in place, and it does iterate through and finish the search. My problem is that when I time them all, I get 0…
SirRupertIII
  • 12,324
  • 20
  • 72
  • 121
1
vote
1 answer

How do I reduce CPU and memory usage by a python program?

I have a python program that uses a lot of my CPU's resources. While it is fine on my regular PC, I'm afraid it might be too much to handle for my Raspberry Pi. Speed is not an issue. I don't care if my code is executed slowly as I am implementing a…
user17151
  • 2,607
  • 3
  • 18
  • 13
1
vote
1 answer

Whetstone CPU performance algorithm

I'm going to develop an application for android that uses the whetstone algorithm to measure CPU performance. I've chosen the Whetstone algorithm because my research tells me it's an appropriate way of measure performance of less powerful…
Robert
  • 4,602
  • 4
  • 22
  • 33
1
vote
1 answer

Java 32 Bits with PAE Kernel + SO 32 bits and CPF 64 Bits

I'm facing a problem in my application using JBOSS 4.2.3GA. We have approximately 20 users online and is usual the cpu run to 95%, 99%. We search for problem in application using jmeter and other tests and we don't find a point or loop that can be…
Cateno Viglio
  • 407
  • 11
  • 25
1
vote
1 answer

Using Python (Bash?) to get OS-level system information (CPU Speed)

I want to repeat this question using python. Reason is I have access to 10 nodes in a cluster and each node is not identical. They range in performance and I want to find which is the best computer to use remotely based on memory and cpu-speed/cores…
physicsmichael
  • 4,793
  • 11
  • 35
  • 54
0
votes
1 answer

Constant animation speed, variable frame rate

Would you, dear all, suggest me best practices to get constant animation speed not depending on computer's real speed? Frames may be skipped.
Paul
  • 25,812
  • 38
  • 124
  • 247
0
votes
2 answers

measure time for popcount function in c++

i am interested how to put it in loop so that get real time which is taken by cpu to execute each different operation #include #include #include using namespace std; typedef unsigned __int64 uint64; const uint64…
user466534