Is there a way to measure performance without depending on the hardware, i.e. two entirely different computers get the same score for the same code?

I could probably run the program on a server or something, but something local feels more reliable.

  • @[email protected]
    link
    fedilink
    71 year ago

    Yes, you can consider the algorithmic complexity of your code, which is independent of any hardware.

    • @[email protected]OP
      link
      fedilink
      21 year ago

      Sure, but that makes a lot of optimizations nonexistent (e.g. cloning the input on an O(n) algorithm is “free”)

      • @[email protected]
        link
        fedilink
        English
        41 year ago

        You don’t need to use big-O. You can calculate the full complexity in algebraic notation. It’s just a lot more work as you don’t get to discard terms.