I Compared ASP.NET Core and Node.js for Performance

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 20

  • @rafaelpaiva8844
    @rafaelpaiva8844 16 дней назад +7

    Good test! But EF against raw SQL most of the time is not comparable. Maybe .NET Core could be even faster. Cheers!

    • @PhanxDEV95
      @PhanxDEV95  10 дней назад +3

      Yeah, I did not care enough about database access for this test, will keep it in mind for future benchmarks. Thank you for your comment :)

  • @mr.rahul4434
    @mr.rahul4434 17 дней назад +4

    Which one is good for 2025 as a fresher developer should i go for .net or go with Nodejs? To easily get a job as a fresher

    • @PhanxDEV95
      @PhanxDEV95  10 дней назад +1

      Good question, but hard to answer. I think Node.js with JavaScript/TypeScript is easier to start as a beginner. Also I think Node.js is more widely used in companies. I don't think you'll go wrong with either of them :)

    • @shrin210
      @shrin210 4 дня назад +2

      go with Go

  • @wmzayed
    @wmzayed Месяц назад +2

    Thanks for this informative comparison. What about the difference in bench mark between .net and python (gjango/fastapi)

    • @PhanxDEV95
      @PhanxDEV95  Месяц назад +2

      Thank you for your comment :)
      I already thought about comparing asp.net core with python, maybe I will make a video about this

  • @JustCode512
    @JustCode512 Месяц назад +1

    Thank u

  • @RJ-sw7zv
    @RJ-sw7zv 22 часа назад

    EF does some caching in the background so this means nothing.

  • @justinassakalavicius4465
    @justinassakalavicius4465 Месяц назад +4

    You pick EF Core versus raw SQL... That's not comparable.

    • @justinassakalavicius4465
      @justinassakalavicius4465 Месяц назад +1

      For reading queries, if you use other ORM like Dapper, you will gain at least 2x performance difference versus EF Core. If you want to push the limits, you will go with a full raw SQL query. In my personal opinion. You should not benchmark ORM's with raw SQL queries because of its performance differences. Don't compare beans with apples and vice versa.

    • @PhanxDEV95
      @PhanxDEV95  29 дней назад

      Thank you for sharing your opinion :)
      I know, comparing EF core versus raw SQL is not optimal, but I figured it is good enough as the benchmarks concentrated on the performance differences of ASP.NET Core and Node.js.

  • @trxe420
    @trxe420 14 дней назад +3

    Man, I just knew you were going to say the other one and I was going to come here and complain. This is exactly my finding too, I don't want to spoil in the comments, watch the clip yall.

  • @darkoplax7688
    @darkoplax7688 9 дней назад +1

    Nodejs has never been about performance, it's always been if your app doesn't require that big of a performance like 90% of the apps are fine working in Node then go to Node to keep your frontend and backend in the same language (now you even have Bun and Deno)
    Otherwise grab at Java and C# to improve performance a bit or Zig and Rust to improve it a lot
    Finally I never understood Python, Ruby and PHP's role in the stack; they are all slower than JS and don't ever offer that frontend/backend same language dev experience

    • @nasimicin
      @nasimicin 8 дней назад

      On my experience with django with traditonal html, css, js, and bootstrap, I rarely touch JS (except for manual ajax that not covered by python package).
      Maybe adding htmx on top of that can more minimalize JS writing for ajax.

    • @sinterusde8869
      @sinterusde8869 5 дней назад

      PHP has a well established MVC ecosystem that comes with battery included or at least opinionated/highly structured with a decent cli integration that simplifies debugging or startup. But yeah, it basically takes a degree to master whereas Node is very straightforward

  • @sinterusde8869
    @sinterusde8869 5 дней назад

    You do not necessarily measure api benchmark id you do heavy calculations. For API speed I'd rather be interested in data about request handling, routing or dynamic content creation. For heavy computation or generating data you could build any api to cpp rust or other languages that could lift that weight for you. Regardless, ASP would be faster anyway

  • @TOONSSTATION
    @TOONSSTATION 20 часов назад

    Hmmmm....

  • @statalys
    @statalys 5 дней назад

    .net core not usable for small projects