Time Complexity Estimator

Estimate runtime using a rough model: (operations ≈ k × f(n)) and time = operations / opsPerSecond.

Common rough guesses: 1e8 to 1e9 ops/sec.
If each iteration does more work, increase k (e.g., 5, 10, 50).

Results

Estimated operations:
Ops/sec:
k × f(n):

Notes

This is a back-of-the-envelope estimator. Real runtimes depend on CPU cache, memory, branching, IO, and language/runtime. For O(2ⁿ) and O(n!), the model becomes unusable quickly; results may be capped.