Top "Benchmarking" questions

Benchmarking is the process of comparing two or more systems or processes under controlled circumstances in order to have a quantitative measure with which to compare or rank them.

What do 'real', 'user' and 'sys' mean in the output of time(1)?

$ time foo real 0m0.003s user 0m0.000s sys 0m0.004s $ What do 'real', 'user' and 'sys' mean in the …

unix time benchmarking
Execution time of C program

I have a C program that aims to be run in parallel on several processors. I need to be able …

c benchmarking
How to use clock() in C++

How do I call clock() in C++? For example, I want to test how much time a linear search takes …

c++ benchmarking clock
Why is reading lines from stdin much slower in C++ than Python?

I wanted to compare reading lines of string input from stdin using Python and C++ and was shocked to see …

python c++ benchmarking iostream getline
Why is 2 * (i * i) faster than 2 * i * i in Java?

The following Java program takes on average between 0.50 secs and 0.55 secs to run: public static void main(String[] args) { long …

java performance benchmarking bytecode jit
ab load testing

Can someone please walk me through the process of how I can load test my website using apache bench tool (…

apache benchmarking
How much faster is C++ than C#?

Or is it now the other way around? From what I've heard there are some areas in which C# proves …

c# c++ performance benchmarking
How to Calculate Execution Time of a Code Snippet in C++

I have to compute execution time of a C++ code snippet in seconds. It must be working either on Windows …

c++ benchmarking
Clang vs GCC - which produces faster binaries?

I'm currently using GCC, but I discovered Clang recently and I'm pondering switching. There is one deciding factor though - …

optimization gcc compiler-construction clang benchmarking
How do I write a correct micro-benchmark in Java?

How do you write (and run) a correct micro-benchmark in Java? I'm looking for some code samples and comments illustrating …

java jvm benchmarking jvm-hotspot microbenchmark