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

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

Bleeding Code (By John Jardin)

Bleeding Code (By John Jardin)

Күн бұрын

Пікірлер: 31
@BleedingCode
@BleedingCode 4 жыл бұрын
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 💪.
@sachinjaveri1
@sachinjaveri1 4 жыл бұрын
Man how are you now famous...Thank you very much for the information. Very few do that.
@BleedingCode
@BleedingCode 4 жыл бұрын
Hi Sachin. Thank you for the awesome comment. It's really appreciated 🙏
@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? 🙂
@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 👍
@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.
@vinaygupta7675
@vinaygupta7675 3 жыл бұрын
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 :)
@yonacoh
@yonacoh 4 жыл бұрын
great videos man
@BleedingCode
@BleedingCode 4 жыл бұрын
Awesome thanks Yonatan 🙏
@prabhusoft
@prabhusoft 3 жыл бұрын
Excellent!!
@BleedingCode
@BleedingCode 3 жыл бұрын
Thank you Prabhu 🙏🙂
@harishrn1993
@harishrn1993 2 жыл бұрын
whats your pc configuration? @bleeding code?
@BleedingCode
@BleedingCode 2 жыл бұрын
Hi Harish. I run a MacBook Air (M1, 2020) with 8GB RAM
@ArshRadhanpura
@ArshRadhanpura 4 ай бұрын
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 4 жыл бұрын
How to improve performance: Ditch express and use fastify
@BleedingCode
@BleedingCode 4 жыл бұрын
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
@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 👍
@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 😎.
@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)
Рет қаралды 4 М.
Managing The Event Loop Phases ⭕️ | OPTIMIZING NODE JS
23:32
Bleeding Code (By John Jardin)
Рет қаралды 19 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 45 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 20 МЛН
Node.js performance analytics and best practices | Sebastian Springer
1:04:00
International JavaScript Conference
Рет қаралды 8 М.
Testing For Async Functions In NodeJS 💻  | OPTIMIZING NODE JS
21:10
Bleeding Code (By John Jardin)
Рет қаралды 4,6 М.
Increase Node JS Performance With Thread Pool Management 📊 | OPTIMIZING NODE JS
12:29
Bleeding Code (By John Jardin)
Рет қаралды 15 М.
A Deep Dive Into the Node js Event Loop - Tyler Hawkins
28:29
How to make your Node.js API 5x faster!
16:39
Adventures in Nodeland - Matteo Collina
Рет қаралды 11 М.
When is NodeJS Single-Threaded and when is it Multi-Threaded?
18:42
Hussein Nasser
Рет қаралды 74 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 661 М.
How to use Multithreading with "worker threads" in Node.js?
19:34
Software Developer Diaries
Рет қаралды 75 М.
Mastering Memory Management in Node.js: Tips and Tricks for Better Performance
16:06
Software Developer Diaries
Рет қаралды 39 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 45 МЛН