Skip to main content

Questions tagged [benchmarking]

The tag has no usage guidance.

3 votes
1 answer
254 views

Benchmarking C# code - results

I watch this YouTuber's mostly excellent videos on .NET features (let's call him Nick). He more often than not uses Benchmark.net to demonstrate the differences in performance of different approaches ...
Martin Maat's user avatar
  • 18.5k
29 votes
5 answers
4k views

Benchmarking, why discard lowest time?

I've quite frequently seen benchmarks where the tester discarded the highest and the lowest time out of N runs. Discarding the highest time I understand; it's probably high because of some other ...
pepoluan's user avatar
  • 499
3 votes
1 answer
365 views

What is the expected performance of While loops using `array.pop()` assignment vs other methods

Recently I was asked to refactor some code that leverages JavaScript's array.reduce() method because other developers felt the code hard to read. While doing this I decided to play around with some ...
Kenneth Moore's user avatar
-3 votes
1 answer
163 views

Methods for reliably benchmarking own program's run time

I'm writing a basic password cracker in C as an introduction to multithreaded programming. I've implemented this already using a 'parallelization' approach that spins up a set number of threads and ...
muke's user avatar
  • 109
2 votes
3 answers
5k views

Comparison of build times on various hardware; why non-linear results?

Why do the compile times not vary significantly between different era CPUs, even though disk (NVMe vs. HDD) and CPU benchmarks vary significantly in performance? Why does disabling hyperthreading ...
casualcoder's user avatar
2 votes
0 answers
83 views

How to write disk benchmarking software?

I am coding a disk (HDD/SSD) benchmarking software. I have a few questions on how a disk should be benchmarked (regardless of programming language used). This is my pseudo code for testing sequential ...
Canol Gökel's user avatar
3 votes
2 answers
1k views

How to benchmark software performance under same conditions (RAM, CPU caching etc)?

I am writing a software that splits big files into smaller files and I have coded several solutions. I am measuring the execution time of each of my solutions. (with threads, go routines, MPI etc) ...
Kristi Jorgji's user avatar
-3 votes
1 answer
83 views

Handling different versions of a program and benchmarking with OO

Note: I'm not sure if the way I phrase the question initially will fit 100% on this board, so please help me to focus on the main point. Scenario: You develop an algorithm or a neural network that ...
Gaze's user avatar
  • 111
2 votes
1 answer
289 views

How do I triage a website effectively?

I've inherited responsibilities for maintaining a section of enterprise intranet, and my manager has tasked me with, "Clean up the code, please. We're probably going to get lots of change requests ...
Eric's user avatar
  • 207
3 votes
1 answer
293 views

How to compare C and CUDA performance fairly?

I have developed a CUDA code that is a reimplementation of a (CPU only) C code. I would like to benchmark the performance of these two programs. I am wondering how to do benchmarking well in this ...
Vince Varga's user avatar
1 vote
2 answers
1k views

Can I use statistical methods to compare benchmark performance figures?

Imagine I am working on a C compiler. I have made some changes to the compiler's code, and am interested to know what effect these changes have on the performance of generated binaries. I have a ...
user200783's user avatar
4 votes
4 answers
981 views

How to manage code experiments meant to stay permanently with git?

I have an asm/C code which implements some image filters. The objective of this project is experimentation with different implementations, benchmarking, plotting and reporting data to write a paper ...
Damian Pereira's user avatar
5 votes
2 answers
120 views

Estimate if benchmark sampling difference is significative

In order to estimate the fastest function in various cases in a non fully deterministic context, I'm running an experiment calling one or the other at random and recording the duration of the ...
Denys Séguret's user avatar
3 votes
1 answer
2k views

Load testing HTTP server with large number of concurrent connections

I'm trying to load test/benchmark a http server with a very large number of simultaneous connections (10-100k). What is a good procedure for doing this? On linux I've seen that both the client and ...
kag0's user avatar
  • 131
1 vote
1 answer
586 views

When do micro-benchmarks make sense? [closed]

I've been researching micro-benchmarks (e.g. using JMH or Caliper, though not necessarily limited to Java). Now, there are many articles which describe how to write a benchmark but I haven't found ...
blalasaadri's user avatar

15 30 50 per page