# 📊 Performance

1 min read, 140 words performancenode

Time Complexity

# Time and space complexity

term description
time complexity time #inputs (not Execution time)
space complexity How much memoery is consumed
How to measure and analyse the complexity of your algorithm?

Asymptotic Notation / Analysis Big-O

  • How many times an instruction runs? How often?
  • Narrow down variables in function to fastest growing expression
Notation Time complexity
constant Time
Logarithmic Time
Linear Time
Quadratic Time
Exponential Time

How to accurately measure runtime of js script in node?

performance.now();

Subscribe to our Newsletter

If you like my work and think it was helpful kindly support my work


Buy Me A Coffee