Speeds and optimization

Personally my projects can need some work with optimization so how can i reduce cpu and server usage and how can i guage these numbers. I see wh0 made a post on this but i dont know how they got all those numbers. Thanks :blush: :blush:

Iโ€™ve been using this time keyword in bash Bash Reference Manual

You go in the terminal and type:

time node something.js

and itโ€™ll run that node something.js command and print out how long it all took:

real    0m0.000s
user    0m0.000s
sys     0m0.000s

And that doesnโ€™t, in itself, reduce the CPU usage, but it helps you put a number to each change you make in your code, so you can keep track of what new features are expensive, what optimizations really work, etc.

2 Likes

thanks again