Mehdi Akiki

Posts tagged "rust"

  • Published on
    Pattern count alone cannot predict fast string search. I show how rare bytes, short literals, prefixes, alphabet size, and candidate density shape SIMD-assisted Rust performance.
  • Published on

    Investigation · Part 11 of 20 · From source to a running process

    What Is on the Stack When a Process Starts: argv, envp and auxv

    Before the first instruction, the kernel writes argc, argv, envp and 22 pairs of numbers for the loader at the top of the stack. I read them from a C program, compared them with LD_SHOW_AUXV, and saw 4,000 bytes of environment move every local variable of main.
  • 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.