Improving Your JavaScript's Performance
  • Introduction
  • Do we need to care about performance issues?
  • Deciding What To Optimize
    • Why Data?
    • What Types of Data Do I Need?
    • User Analytics
    • The Browser - Loading
      • The Browser - Profiling on the Processing Tab
      • The Browser - Throttling
      • The Browser - Memory Usage
    • The Server
      • Profiling Your Code On The Server
      • Using Profiling Data - NodeJS
  • Optimization Concepts
    • Overall Application Structure (or Communication)
    • Structures and Algorithms
    • JavaScript
    • Browsers
Powered by GitBook
On this page
  • Start With the Browser
  • General Server Statistics
  • Check Databases and Other External Sources
  1. Deciding What To Optimize

The Server

How is the server performing?

Start With the Browser

The browser is one of the best tools for seeing how the overall application is working but when we look at JavaScript running on the server, it seems that the browser shouldn't be of much help.

Browsers do give us some information. In particular, we discussed TTFB or Time To First Byte earlier. TTFB is mostly a measure of server performance, and if it is more then about half a second, something should be done to speed up the server.

All the browser lets us see about the server's performance is what endpoints are slow. Knowing which API endpoints or pages are slow gives us a place to start looking for what is causing the slowdown.

General Server Statistics

Another place we should start looking for performance bottlenecks is by looking at general server statistics. CPU usage, memory usage, and bandwidth usage are all areas to track.

In particular when checking CPU usage and memory usage you should review individual applications, such as NodeJS or any other application that may be consuming a significant portion of your processing power or memory usage.

Check Databases and Other External Sources

If the server uses a database or accesses another server, you will want to check how those are performing as well.

PreviousThe Browser - Memory UsageNextProfiling Your Code On The Server

Last updated 6 years ago