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.

Difference between as.POSIXct/as.POSIXlt and strptime for converting character vectors to POSIXct/POSIXlt

I have followed a number of questions here that asks about how to convert character vectors to datetime classes. I …

r date time benchmarking
LINQ Ring: Any() vs Contains() for Huge Collections

Given a huge collection of objects, is there a performance difference between the the following? Collection.Contains: myCollection.Contains(myElement) …

c# linq performance benchmarking
Performance Benchmarking of Contains, Exists and Any

I have been searching for a performance benchmarking between Contains, Exists and Any methods available in the List<T&…

c# performance benchmarking
Why does JavaScript appear to be 4 times faster than C++?

For a long time, I had thought of C++ being faster than JavaScript. However, today I made a benchmark script …

javascript c++ performance floating-point benchmarking
Measure and Benchmark Time for Ruby Methods

How can i measure the time taken by a method and the individual statements in that method in Ruby. If …

ruby-on-rails ruby time benchmarking interpreter
Why is looping over range() in Python faster than using a while loop?

The other day I was doing some Python benchmarking and I came across something interesting. Below are two loops that …

python performance benchmarking
Getting an accurate execution time in C++ (micro seconds)

I want to get an accurate execution time in micro seconds of my program implemented with C++. I have tried …

c++ performance benchmarking timing microbenchmark
Load Testing with AB ... fake failed requests (length)

To do some load testing, for my own curiosity, on my server I ran: ab -kc 50 -t 200 http://localhost/index.…

benchmarking load-testing apachebench
Why is Go so slow (compared to Java)?

As we could see from The Computer Language Benchmarks Game in 2010: Go is on average 10x slower than C Go …

java performance go benchmarking
gettimeofday() C++ Inconsistency

I'm doing a project that involves comparing programming languages. I'm computing the Ackermann function. I tested Java, Python, and Ruby, …

time programming-languages benchmarking stopwatch