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
2
votes
2 answers

C++ vector element erase versus new vector creation

I'm working with a vector of elements that need to be selected at random and effectively removed until either either a condition is met, or until all the elements have been selected. However, they won't actually be removed until some later stage in…
2
votes
0 answers

TensorFlow speed on CPU: large batch versus long sequence

I am experimenting with different batch sizes (N) and sequence lengths (L) for LSTM. Clearly, number of computations required for N=10, L=100 and N=100, L=10 should be the same if there is no parallelization. However, I observe that the larger batch…
Minjoon Seo
  • 526
  • 7
  • 10
2
votes
1 answer

How do I determine the max frequency of the processor (Android)

I've used many apps that show the speed in MHz on my phone, but where are they getting the information from? I am trying to get the minimum and maximum frequencies of my processor, but am stuck. I've tried reading…
MarkInTheDark
  • 244
  • 2
  • 15
2
votes
1 answer

How to get real max cpu cores speed?

I'm trying to get the real max cpu cores speed. This code works just for the four first cores of my nexus 5x, but it fails for the last two cores: for (int i = 0; i < cpuCoresNumber; i++) { try { BufferedReader…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
2
votes
1 answer

How to store array to fit cache line size

I want to have an array with 32 elements of 64bit numbers like this : long int arr[32]; however my cache line size is 64 bytes. Does it mean my array will not go at all into the cache system or rather some of elements will do? Would it help to fit…
Tunga
  • 93
  • 4
2
votes
4 answers

CPU efficient algorithms?

I do fair bit of dabbling in performance focused programming. Typically, most of the techniques I have been taught and am aware of pertain to conserving RAM. That being said, I recently addressing the question here Memory efficient AI objects for…
bigcodeszzer
  • 916
  • 1
  • 8
  • 27
2
votes
3 answers

How to detect CPU speed on Windows 64bit?

I've found the following code from here "http://www.boyet.com/Articles/CodeFromInternet.html". It returns the speed of the CPU in GHz but works only on 32bit Windows. using System; using System.Management; namespace CpuSpeed { class Program …
Marc
  • 9,012
  • 13
  • 57
  • 72
2
votes
0 answers

Converting cycles per byte to bytes per second?

I find that many algorithms in cryptography show performance in cpb (cycles per byte) but I need the throughput in MB/s for some modern representative cpu. How can I convert from cpb to MB/s?
ArekBulski
  • 4,520
  • 4
  • 39
  • 61
2
votes
1 answer

How many 32-bit integer ops can a Haswell core perform at once?

In the context of preparing some presentation, it occurred to me that I don't know what the theoretical limit is for the number of integer operations a Haswell core can perform at once. I used to naively assume "Intel cores have HT, but that's…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
2
votes
0 answers

Insert Speed Compare HashMap, LinkedHashMap

Trying to compare the speed of insertion between a HashMap and a LinkedHashMap I found that initially for a smaller no of objects until 100000 objects the speed was faster for the HashMap. However when I set the insertion count to 500000 the speed…
acearch
  • 343
  • 1
  • 8
2
votes
1 answer

relation of CPU speed and NIC throughput

I'm testing a performance of DPDK-based OpenvSwitch implementation (github.com/01org/dpdk-ovs) on the following server: Intel CPU Xeon E3 3.30Ghz Intel 1G NIC I210 RAM 8G Basically my setup includes two ports, traffic enters port0 and forwarded by…
Mark
  • 6,052
  • 8
  • 61
  • 129
2
votes
1 answer

How to give an emulation the right speed?

I want to write an emulator for a particulary slow CPU which runs at 600 or so kilohertz. If I were to write an emulator for the CPU in the naïve way (i.e. emulating one instruction at a time without anything else), the emulation would be much…
fuz
  • 88,405
  • 25
  • 200
  • 352
2
votes
0 answers

Disable Speedstep Feature

I had a situation with some code where it's come to my attention that the speed-stepping feature on modern processors might be an issue. While I guess I could have created a thread putting load on the processor to try and fix it (and some things I…
Glenn1234
  • 2,542
  • 1
  • 16
  • 21
2
votes
5 answers

Comparing CPU speed likely improvements for business hardware upgrade justification

I have c# Console app, Monte Carlo simulation entirely CPU bound, execution time is inversely proportional to the number of dedicated threads/cores available (I keep a 1:1 ratio between cores/threads). It currently runs daily on: AMD Opteron 275 @…
m3ntat
  • 3,635
  • 11
  • 38
  • 50
2
votes
1 answer

Calculating Floating point Operations Per Second(FLOPS) and Integer Operations Per Second(IOPS)

I am trying to learn some basic benchmarking. I have a loop in my Java program like, float a=6.5f; int b=3; for(long j=0; j<999999999; j++){ var = a*b+(a/b); }//end of for My processor takes around 0.431635 second to…
Prasanna
  • 2,593
  • 7
  • 39
  • 53