News for hackers. Stuff that matters.
Re:Minimalism in programming language design by nayuki on Tuesday May 24, 2022 @09:39AM (#31491930)
> the C++ lookup took 1 nanosecond[0] and the C# version took 1ms (1000x slower)

The ratio between 1 ns and 1 ms is a million.

Re:Minimalism in programming language design by flohofwoe on Tuesday May 24, 2022 @09:47AM (#31492038)
The link talks about nano- vs micro-seconds, so probably just a typo.
Re:Minimalism in programming language design by _gabe_ on Tuesday May 24, 2022 @12:54PM (#31494558)
I just re-ran the benchmarks and I was mis-remembering those statistics quite a bit. It looks like C# takes 124.5 nanoseconds on average for a hash set lookup. This was benchmarked using BenchmarkDotNet :)