Tag Archives: Benchmark

Comparing algorithms and platforms

RNG Range Projection

RNG Range Projection is a new page discussing the pitfalls of projecting the output of a pseudo-random number generator with a small native range (specifically, the rand() function of MS Visual C++) into an arbitrary target range. This page essentially replicates the contents of a plain text file that used to be included with my […]

Uncontested Lock Performance

Recently I wondered about the performance cost of preemptively putting monitor locks on small library methods that might conceivably be called from multiple threads. That’s a great subject for a micro-benchmark, so I wrote a few tests in C# and Java and posted the results in Uncontested Lock Performance. As it turns out, standard locking […]