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

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 31

  • @BleedingCode
    @BleedingCode  4 роки тому +1

    Hi coders 👋. Hope you're all enjoying the series. Question: Which performance benchmarking tool do you use and or recommend? Cheers 😎

    • @MrTejomay
      @MrTejomay 3 роки тому +2

      Looking for the next videos in 2021 brother.

  • @markmiller8571
    @markmiller8571 3 роки тому +2

    These Node JS Performance Optimizations videos are a real hidden gem. You deserve more views! Keep up the amazing work.

    • @BleedingCode
      @BleedingCode  3 роки тому +1

      Awesome Mark thanks for the great feedback. A video on Multithreading on its way soon 💪.

  • @MrTejomay
    @MrTejomay 3 роки тому +1

    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? 🙂

  • @chiu-minglam630
    @chiu-minglam630 2 роки тому +1

    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  2 роки тому

      I went the route that most people would be familiar with.

  • @sachinjaveri1
    @sachinjaveri1 4 роки тому +1

    Man how are you now famous...Thank you very much for the information. Very few do that.

    • @BleedingCode
      @BleedingCode  4 роки тому +1

      Hi Sachin. Thank you for the awesome comment. It's really appreciated 🙏

  • @ArshRadhanpura
    @ArshRadhanpura 6 місяців тому

    can we do this inside the docker container that runs the nodejs application so that we can do this in an isolated environment?

  • @yonacoh
    @yonacoh 4 роки тому +1

    great videos man

  • @vinaygupta7675
    @vinaygupta7675 3 роки тому +1

    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  3 роки тому

      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 3 роки тому +1

    whats your pc configuration? @bleeding code?

    • @BleedingCode
      @BleedingCode  2 роки тому

      Hi Harish. I run a MacBook Air (M1, 2020) with 8GB RAM

  • @prabhusoft
    @prabhusoft 3 роки тому

    Excellent!!

  • @vladimirsapozhnikov5842
    @vladimirsapozhnikov5842 3 роки тому +2

    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.

  • @boot-strapper
    @boot-strapper 4 роки тому +4

    How to improve performance: Ditch express and use fastify

    • @BleedingCode
      @BleedingCode  4 роки тому +1

      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 2 роки тому

      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 2 роки тому

      @@aben7810 the implementation of the thing does matter

  • @sachin__ak
    @sachin__ak 3 роки тому +1

    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 😎.

  • @Aphixx
    @Aphixx 2 роки тому +2

    Protip: Don't log 404s unless you want a really easy way to DDoS your server/overload IO/fill your disk with logs.

  • @valikonen
    @valikonen 2 роки тому +1

    Man, be more concise...