Mehdi Akiki

Posts tagged "performance"

  • Published on

    Investigation · Part 11 of 20 · When the benchmark lies

    Measuring Something Faster Than the Clock

    Timed one call at a time, a small hash function and an empty loop both take 15 ns: the clock measures itself. With more calls per measurement, the same function costs 0.79 ns per call, or 3.02 ns when each call waits for the previous one.
  • Published on
    A prefilter can skip most automaton work, but it is heuristic rather than free. I show how candidate frequency and pattern shape decide whether it helps a Rust search.
  • Published on

    Investigation · Part 9 of 20 · When the benchmark lies

    Coordinated Omission: How a Load Test Hides Its Worst Latency

    My toy server stops for half a second every five seconds. A client that waits for each answer saw 4 slow requests out of 1.36 million, and a p99 of 30 microseconds. A client with a fixed schedule saw 1,608 slow requests and a p99 of 450 milliseconds.