Summary

A good, performant application is all about how well it performs. A complete test suite ensures that you also perform well in developing and can introduce changes fast—changes that can improve performance. The test suite should have specific tests for benchmark analysis, with demanding time restrictions. The developers should know about them and work hard to keep the tests passing without having to lift those restrictions.

Use the test suite as a metric for production. Ensure that you merge new changes if your test suite covers your application source in at least 90 percent coverage and passes all the benchmark tests. Use a separate server for those tests, and don't mix tests with production. Keep your production server lean and fast, and ...

Get Node.js High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.