← Back to context

Comment by skydhash

13 hours ago

> Is there a spec that says if you use a particular set of libraries you’d get less than 10 millisecond response?

There can be. But you’d have to map the libraries to opcodes and then count the cycles. That’s what people do when they care about that particular optimization. They measure and make guaranties.

That’s not realistic with any processor that does branch prediction, cache hits vs cache misses etc

  • You can easily compute the worst cases. All the details are in the specs of the processor.

    • Assuming also that you are not running on top of an operating system, running in a VM with “noisy neighbors”…

      I haven’t counted cycles since programming assembly on a 65C02 where you cooks save a clock cycle by accessing memory in the first page of memory - two opcodes to do LDA $02 instead of LDA $0201

      1 reply →