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
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:
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.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.