How To Determine Application Baseline Performance In Node JS 🔬 | OPTIMIZING NODE JS

  Рет қаралды 4,110

Bleeding Code (By John Jardin)

Bleeding Code (By John Jardin)

4 жыл бұрын

In this 3rd video of my "Node JS Performance Optimizations" series, I show you how to determine application baseline performance in Node JS. I first cover the theory and reasoning behind this kind of benchmark testing. I then move into live demonstrations and also stress the importance of measuring performance based on the minimum production requirement for the company/entity you're building the solution for.
Node JS Performance Optimizations KZfaq Playlist:
• Managing The Event Loo...
Subscribe to my Bleeding Code KZfaq Channel here:
/ @bleedingcode
Reference Links
=============
Bleeding Code - Node JS Performance Optimizations GitHub Repo
github.com/bleedingcode/nodej...
Autocannon Benchmark Testing
github.com/mcollina/autocanno...
Bleeding Code on Social Media
==========================
bleedingcode.com
/ bleedcode
/ bleedingcode

Пікірлер: 31
@BleedingCode
@BleedingCode 3 жыл бұрын
Hi coders 👋. Hope you're all enjoying the series. Question: Which performance benchmarking tool do you use and or recommend? Cheers 😎
@MrTejomay
@MrTejomay 3 жыл бұрын
Looking for the next videos in 2021 brother.
@markmiller8571
@markmiller8571 3 жыл бұрын
These Node JS Performance Optimizations videos are a real hidden gem. You deserve more views! Keep up the amazing work.
@BleedingCode
@BleedingCode 3 жыл бұрын
Awesome Mark thanks for the great feedback. A video on Multithreading on its way soon 💪.
@MrTejomay
@MrTejomay 3 жыл бұрын
Awesome video. waiting for your next video.
@BleedingCode
@BleedingCode 3 жыл бұрын
Glad you enjoyed it. Have you seen my other videos on Node JS Performance Practices? 🙂
@prabhusoft
@prabhusoft 2 жыл бұрын
Excellent!!
@BleedingCode
@BleedingCode 2 жыл бұрын
Thank you Prabhu 🙏🙂
@yonacoh
@yonacoh 3 жыл бұрын
great videos man
@BleedingCode
@BleedingCode 3 жыл бұрын
Awesome thanks Yonatan 🙏
@vladimirsapozhnikov5842
@vladimirsapozhnikov5842 3 жыл бұрын
I suggest the way how to increase a performance test quality - spin up a dedicated virtual machine (in some cloud) for your application (or spin up a dedicated stress-testing environment for your project, intended to be used only for the performance-tests), and a dedicated virtual machine (probably, more powerful) for the autocannon. By doing so your application will not be affected by the autocannon itself, and your testing condition will be 100% predictable. Well, not 100% predictable if you use Virtual machines, your results might depend on Virtualization and underlying host machine utilization. So, I suggest (and most of the time it is not cheap, unfortunately), spin up the dedicated server. One caveat to mention - your cloud provider might think that your performance tests is a DoS attack. In some situations, it is better to notify your hosting provider in advance about the traffic and purpose.
@BleedingCode
@BleedingCode 3 жыл бұрын
Great tip thanks Vladimir 👍
@sachinjaveri1
@sachinjaveri1 3 жыл бұрын
Man how are you now famous...Thank you very much for the information. Very few do that.
@BleedingCode
@BleedingCode 3 жыл бұрын
Hi Sachin. Thank you for the awesome comment. It's really appreciated 🙏
@ArshRadhanpura
@ArshRadhanpura 12 күн бұрын
can we do this inside the docker container that runs the nodejs application so that we can do this in an isolated environment?
@boot-strapper
@boot-strapper 3 жыл бұрын
How to improve performance: Ditch express and use fastify
@BleedingCode
@BleedingCode 3 жыл бұрын
Yes that's definitely a good path to go and will be a video on its own in the near future. Thanks for watching 🙏
@aben7810
@aben7810 Жыл бұрын
just benchmark outside of your process, VM, LAN and do the real benchmark using clients over the internet. you'll find you are practically doing the same thing with express, Fastify or even php
@boot-strapper
@boot-strapper Жыл бұрын
@@aben7810 the implementation of the thing does matter
@chiu-minglam630
@chiu-minglam630 Жыл бұрын
Hi - I would like to know why did you need to create the server with http instead using the express app as is? as in invoke the listen method on the express and not on http.
@BleedingCode
@BleedingCode Жыл бұрын
I went the route that most people would be familiar with.
@sachin__ak
@sachin__ak 3 жыл бұрын
You are underrated, lots of good information in your videos, please don't stop making videos like this. but fastify is becoming a better alternative for express. not many good videos are out there, even matteo(founder of fastify) tweeted last week that there aren't enough videos on fastify, which is the root cause of it not growing, as most developers prefer videos. why don't you make videos on fastify?
@BleedingCode
@BleedingCode 3 жыл бұрын
Hi Sachin. Thank you for watching and thanks for this awesome feedback. Yes Fastify is definitely on my list...The only reason I use Express is because currently most of my client environments run Express, and I want my tutorials on performance to be factual based on production environments and stability. We are slowly moving towards Nest/Fastify and as such will be able to benchmark performance accordingly and from that, I can throw out some content, good or bad 😎.
@vinaygupta7675
@vinaygupta7675 2 жыл бұрын
Hi is there a way to do a performance test of a CPU extensive node app. The app is cluster app with child_process and worker thread with lot of blocking code.
@BleedingCode
@BleedingCode 2 жыл бұрын
Hi Vinay. If I understand your question correctly, the best would be to expose the cluster app via an endpoint and use AutoCannon as I did? Maybe I'm not understanding your requirement :)
@harishrn1993
@harishrn1993 2 жыл бұрын
whats your pc configuration? @bleeding code?
@BleedingCode
@BleedingCode 2 жыл бұрын
Hi Harish. I run a MacBook Air (M1, 2020) with 8GB RAM
@Aphixx
@Aphixx 2 жыл бұрын
Protip: Don't log 404s unless you want a really easy way to DDoS your server/overload IO/fill your disk with logs.
@BleedingCode
@BleedingCode 2 жыл бұрын
Thanks for the tip 👍
@valikonen
@valikonen Жыл бұрын
Man, be more concise...
@BleedingCode
@BleedingCode Жыл бұрын
Lol. Cheers thanks :)
How To Test Your API Server Availability 🚀 | OPTIMIZING NODE JS
10:29
Bleeding Code (By John Jardin)
Рет қаралды 3,9 М.
Testing For Async Functions In NodeJS 💻  | OPTIMIZING NODE JS
21:10
Bleeding Code (By John Jardin)
Рет қаралды 4,3 М.
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 11 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 35 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 25 МЛН
Increase Node JS Performance With Thread Pool Management 📊 | OPTIMIZING NODE JS
12:29
Bleeding Code (By John Jardin)
Рет қаралды 15 М.
The Node.js Event Loop: Not So Single Threaded
31:54
node.js
Рет қаралды 165 М.
Managing The Event Loop Phases ⭕️ | OPTIMIZING NODE JS
23:32
Bleeding Code (By John Jardin)
Рет қаралды 18 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 124 М.
Mastering Memory Management in Node.js: Tips and Tricks for Better Performance
16:06
Software Developer Diaries
Рет қаралды 30 М.
When is NodeJS Single-Threaded and when is it Multi-Threaded?
18:42
Hussein Nasser
Рет қаралды 71 М.
How to make your Node.js API 5x faster!
16:39
Adventures in Nodeland - Matteo Collina
Рет қаралды 9 М.
Senior Angular Developer Interview (theory)
41:57
WeCoded
Рет қаралды 13 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 637 М.
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 949 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,2 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,3 МЛН