Go IS Slower Than PHP | Prime Reacts

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2023
  • Recorded live on twitch, GET IN
    / theprimeagen
    Reviewed YT Short: • Is PHP really that slow?
    By: Andrew Schmelyun | / @aschmelyun
    MY MAIN YT CHANNEL: Has well edited engineering videos
    / theprimeagen
    Discord
    / discord
    Have something for me to read or react to?: / theprimeagenreact
    Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
    turso.tech/deeznuts
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 247

  • @keenoogodlike
    @keenoogodlike 8 หลายเดือนก่อน +194

    Mojo claim to be 35,000 times faster than Python -​> C is 80 times faster than Python -​> Mojo 437.5 times faster than C -​> Mojo faster than machine code

    • @FlanPoirot
      @FlanPoirot 8 หลายเดือนก่อน +63

      mojo highjacks the fundamentals of physics by giving electrons monster energy, making them able to speed up how much clock cycles they can do per second without heating up as much. it's complicated you wouldn't get it.
      Meanwhile C and C++ instead of using hydrolyctic electron excitation, they're still just generating raw instructions... so arcane... sigh

    • @Hebruwu
      @Hebruwu 8 หลายเดือนก่อน +10

      I think it’s based of the fact that mojo is capable of utilizing parallel hardware like GPUs and TPUs for certain tasks. I suppose it’s similar to claiming that CUDA/OpenCl are faster than C

    • @TheWrapperup
      @TheWrapperup 8 หลายเดือนก่อน +4

      me when mojo for loop be 50x slower than c

    • @krtirtho
      @krtirtho 8 หลายเดือนก่อน +1

      I think optimized C is 45,000 times faster than anyform of Python

    • @melodyogonna
      @melodyogonna 8 หลายเดือนก่อน

      It is, for that specific test case.

  • @multiwebinc
    @multiwebinc 8 หลายเดือนก่อน +46

    Even if the benchmark might not be accurate when comparing to other languages, you have to admit that making a PHP script go from 630 requests/sec to nearly 30k requests/sec is a massive improvement.

  • @z3rocodes
    @z3rocodes 8 หลายเดือนก่อน +48

    There are lies, damned lies, and statistics.

    • @LtdJorge
      @LtdJorge 8 หลายเดือนก่อน

      And this is the second

  • @dimitris470
    @dimitris470 8 หลายเดือนก่อน +111

    The baseline PHP test was done with the internal server which is meant for quick and dirty testing/dev, not production. PHP-FPM is far faster than that, especially if configured properly for production

    • @yungifez
      @yungifez 8 หลายเดือนก่อน +10

      True
      The benchmark has a lot of flaws

    • @filomontani8683
      @filomontani8683 8 หลายเดือนก่อน +7

      And autoloading, JIT, Opcache configuration. Besides, frankenphp 1.0 was released a few days ago, would be interesting to try it.

    • @notlekrut
      @notlekrut 8 หลายเดือนก่อน +8

      But... but it's fun to make fun of PHP. Yeah, there's far too many people that just don't know better.

    • @neptronix
      @neptronix 8 หลายเดือนก่อน +2

      That's always the case with PHP tests isn't it, they basically rig them. Techempower composite score is the only score i trust.

    • @binaryfire
      @binaryfire 8 หลายเดือนก่อน +8

      ⁠@@neptronixSwoole sits at no. 33 on the latest Techempower composite scores. There’s nothing rigged about it. It’s very, very fast. Frameworks like Hyperf that are built around it can handle way more requests/sec than Node.

  • @thingsiplay
    @thingsiplay 8 หลายเดือนก่อน +322

    Python is faster than Rust.

    • @kirillgimranov4943
      @kirillgimranov4943 8 หลายเดือนก่อน +33

      Always has been

    • @0.Maiden
      @0.Maiden 8 หลายเดือนก่อน +6

      just a dream 🤭

    • @thingsiplay
      @thingsiplay 8 หลายเดือนก่อน +14

      @@0.Maiden A fever dream.

    • @geomorillo
      @geomorillo 8 หลายเดือนก่อน +1

      Who cares😂

    • @shadamethyst1258
      @shadamethyst1258 8 หลายเดือนก่อน +12

      And javascript is 20x faster than typescript (people quoting that research paper always makes me chuckle)

  • @David-ng9qh
    @David-ng9qh 8 หลายเดือนก่อน +30

    I've been making my own framework with OpenSwoole for a while. I can confirm, it is faster than Bun and while I haven't tested Go, it can't be that much slower. Although you have to take into consideration that Go is compiled, and this speed is only in a vacuum. Once you start building out ALL the rest of the application Go will, of course, be faster. On top of that, the OpenSwoole library is not actually PHP. It's an extension, written in C++.

  • @Hobbitstomper
    @Hobbitstomper 8 หลายเดือนก่อน +41

    I've been using PHP since 2002. I've seen the good, the bad and the ugly. In recent years I started seeing PHP going from ugly, to bad, to good, to great.

    • @Hobbitstomper
      @Hobbitstomper 8 หลายเดือนก่อน +6

      Still, in the long run I am hoping for Rust/WASM to be able to have full access to the browsers DOM without the need for JavaScript. That would change everything.

    • @HT-hj5jp
      @HT-hj5jp 8 หลายเดือนก่อน +4

      True. PHP truly evolves in a way that boosts businesses a lot. Now, you can do anything in PHP except low-level stuff, but for low-level, you choose C or Rust.

    • @agustingomez7172
      @agustingomez7172 2 หลายเดือนก่อน

      Yea me too, but is really impossible to be faster than go. It really improved the performance no doubt, but not that way.

  • @ANONAAAAAAAAA
    @ANONAAAAAAAAA 8 หลายเดือนก่อน +24

    I'm pretty sure databases are the main bottlenecks and the source of troubles for 99% of backend applications.
    Juniors who have no experience of tackling serious performance issues in backend systems, tend to like this kind of discussions.

    • @ANONAAAAAAAAA
      @ANONAAAAAAAAA 8 หลายเดือนก่อน

      And the most important thing to build performant backend systems is, monitoring or utilizing APMs like DataDog and NewRelic.

    • @alexaneals8194
      @alexaneals8194 8 หลายเดือนก่อน +11

      For a lot of companies, poor database design and maintenance is a major issue. I was brought in to one company and I asked if there were any DBAs and was told we used to have DBAs, but not now. The dev database server was running out of disk space so a ticket was put in to double the diskspace. I looked a the database and just ran a script to shrink the logs and recovered 75% of the existing disk space. I am not a DBA, but as a database developer I have had to perform more DBA tasks in the last few years because companies decided they didn't need DBAs they had full stack engineers.

    • @LiveType
      @LiveType 8 หลายเดือนก่อน

      Optane says hello.
      Sad intel canned it. Memory prices fell too much for it to be viable.

    • @vigilantezack
      @vigilantezack 4 หลายเดือนก่อน

      Maybe, but wouldn't HDD be worse still? A lot of fat frameworks and CMSes and PHP projects not optimized/compiled/cached/whatever, have a ton of file reads, which would be much slower than DB.

  • @2JulioHD
    @2JulioHD 8 หลายเดือนก่อน +33

    Funny how the base compare is with a PHP development server (which should never be used in prod), would like to see how PHP-FPM or the apache module performs, not a dev server.

    • @aragnophy
      @aragnophy 19 ชั่วโมงที่ผ่านมา

      Apache mod is dead, nobody uses it these days

  • @patrickhollywood93
    @patrickhollywood93 8 หลายเดือนก่อน +3

    Love the consistent quality content Prime Time. :) Thx

  • @ilu1994
    @ilu1994 8 หลายเดือนก่อน +90

    PHPs integrated server (the first benchmark) is a development server. It doesn't even use multiple workers by default. It's not meant to be used in production. Of course, the second benchmark is also inaccurate because it benchmarks OpenSwole and PHPs JSON implementation which are both written in C, not PHP.

    • @mvargasmoran
      @mvargasmoran 8 หลายเดือนก่อน +16

      same thing happens to a lot of langs, Python always tries to be as fast as C, by using libs written in C.
      Is a common thing to do.

    • @lollol012
      @lollol012 8 หลายเดือนก่อน +32

      @@mvargasmoran Basically all high level languages reach those benchmarks by using low-level libraries under the hood.

    • @LightTheMars
      @LightTheMars 8 หลายเดือนก่อน +28

      You'll be surprised to know that most of Node's runtime is also written in C++.

    • @zebraforceone
      @zebraforceone 8 หลายเดือนก่อน +14

      I mean PHP is essentially bindings for C and it's libraries. It's always been capable of being fastafbois. You'd obviously never use a PHP based JSON parser in PHP when you can use the native functions to hand that work to C. I think this is a more realistic benchmark than say, arithmetic in a tight loop.

    • @oleksiistri8429
      @oleksiistri8429 8 หลายเดือนก่อน +4

      fare/unfare, lol, who cares ? you can do it faster. period.
      and that most high level langs use C/C++ under the hood (including JS) everybody has already told you above.

  • @aschmelyun
    @aschmelyun 8 หลายเดือนก่อน +6

    Hey, that’s my video!
    Appreciate the dig through it, lot of valid points in those comments. If you’re ever in the mood to dig into PHP sometime, let me know! 😂

  • @alperen-dev
    @alperen-dev 8 หลายเดือนก่อน +71

    Enough GO. It's time for PHP, again.

  • @geoblk3000
    @geoblk3000 8 หลายเดือนก่อน +1

    10 lines of code benchmarks are like looking through a keyhole and trying to figure out the room's size.

  • @Andressuquaz156
    @Andressuquaz156 8 หลายเดือนก่อน +4

    Virgin rustard developer vs chad swoole PHP expert

  • @electricshmoo
    @electricshmoo 7 หลายเดือนก่อน +2

    I love OpenSwoole - finally PSR-7 compliant as well now. PHP and Go are similar in that they compile extra fast. PHP, Java, and .Net are similar in that there is a virtual machine running translated bytecode.

  • @MickDavies
    @MickDavies 8 หลายเดือนก่อน +35

    Blazingly fast! Laravel Octane just wraps the PHP Laravel up inside of a go routine and keeps it all in memory. Pretty cool advancement, PHP lives to fight another day.

    • @mvargasmoran
      @mvargasmoran 8 หลายเดือนก่อน +8

      PHP is king. No doubt about it.

    • @enkiimuto1041
      @enkiimuto1041 8 หลายเดือนก่อน +19

      "PHP is faster than Go!"
      "Cool! How did you do it?"
      "...Wrapped it in go..."

    • @DaviMartins99
      @DaviMartins99 8 หลายเดือนก่อน +3

      That's true if you use Roadrunner, if you use Swoole it's just PHP.
      Nonetheless it's a great alternative if you need the extra performance.

    • @HT-hj5jp
      @HT-hj5jp 8 หลายเดือนก่อน

      ​@@enkiimuto1041 Dude, do you understand that power to use powers of other powers? That basically neglects the need for the usage of any other language except if you want to go low-level. You have amazing developer experience, and all stuff is ready in PHP/Laravel & PHP can use extensions like Swoole or Parallel or even use Go capabilities while Go can't use the capabilities of PHP!

  • @Kane0123
    @Kane0123 8 หลายเดือนก่อน +2

    At some point someone will write code so fast it’ll break the laws of physics and we’ll collapse into a black hole…

    • @Me-vc4sf
      @Me-vc4sf 3 หลายเดือนก่อน

      I'm looking forward

  • @patricknelson
    @patricknelson 8 หลายเดือนก่อน +1

    I’ve tried Swoole but I’m not sure if it’s production ready per se, but it’s an exciting direction for PHP. Definitely requires you to think differently and carefully about how you architect your PHP app since it is contrary to the traditional model of the short lived lifecycle (where everything starts fresh and gets discarded at end of request). It is very interesting, though.

    • @LukeCreates
      @LukeCreates 5 วันที่ผ่านมา +1

      We use Swoole in production and have been for quite awhile now on an API that serves 500 -> 2000 heavy, requests per second. Took a little bit of configuration, and it is important to understand that your app will live in memory, but it’s been wonderful.

  • @akarin-desu
    @akarin-desu 8 หลายเดือนก่อน +3

    the php guy's voice reminds me of a mix of "DailyDoseOfInternet" and "Fireship"

  • @youtup69420
    @youtup69420 8 หลายเดือนก่อน

    The-swole-agen brings me happiness every time I watch his vids. Thank you Prime

  • @miguelborges7913
    @miguelborges7913 8 หลายเดือนก่อน

    Is the repo of the source code of the benchmarks public?

  • @oscarljimenez5717
    @oscarljimenez5717 8 หลายเดือนก่อน +3

    Are you sure that's the fastest Bun? Have you tried Elysiajs? I don't know i expected Bun more closed to Go.

  • @crimsonbit
    @crimsonbit 8 หลายเดือนก่อน

    This got me wondering, what if you compile Go to C with CGO?

  • @ondrejmarek1980
    @ondrejmarek1980 8 หลายเดือนก่อน +1

    did i just.. witness a birth of a supervillain?

  • @Dev-Siri
    @Dev-Siri 8 หลายเดือนก่อน +1

    we need a benchmark with fasthttp

  • @stuff9282
    @stuff9282 8 หลายเดือนก่อน

    The issue with "async PHP" is that once you use it, you throw out all native PHP functions that do IO. Also i would be interested to see a deeper comparison what is actually done in the async PHP runtime. Does it handle all sorts of issues with encoding and unicode? As a default its most likely just dumping bytes and not doing much else. Every time i did run some stringly benchmarks with PHP perf dropped drastically when you did unicode (what most other languages do as a default)

    • @henrywooddk
      @henrywooddk 28 วันที่ผ่านมา

      Swoole/OpenSwoole hooks into all the *EXISTING* I/O functions of PHP making them asynchronous

  • @GabrielGamesYTG
    @GabrielGamesYTG 8 หลายเดือนก่อน

    Im missing 20min videos for me to eat breakfast watching hehe

  • @minor12828
    @minor12828 8 หลายเดือนก่อน +6

    PHP is a great language. Just let it be.

  • @rollin340
    @rollin340 8 หลายเดือนก่อน

    Everything aside, we can at least agree that that is a pretty cool module name. lol

  • @jjeverson2269
    @jjeverson2269 8 หลายเดือนก่อน

    It’s how you write code that matters

  • @arunabraham9382
    @arunabraham9382 3 หลายเดือนก่อน

    Guess what Appwrite backend is in Swoole

  • @ParanoidxProd
    @ParanoidxProd 8 หลายเดือนก่อน +1

    We want the Gaslight-agen

  • @yungifez
    @yungifez 8 หลายเดือนก่อน +5

    Php devs can't take a break 😂😂😂
    All the mockery

  • @steves9250
    @steves9250 8 หลายเดือนก่อน +1

    “Dude do you even bench….mark?”

  • @Meleeman011
    @Meleeman011 8 หลายเดือนก่อน

    it seems primagen has finally become the villain

  • @AllanSavolainen
    @AllanSavolainen 8 หลายเดือนก่อน +11

    PHP is fast enough for most use cases. Just don't use any frameworks (or ORMs). Decade ago I helped to rewrite a video rental service. Original one was done with PHP + some popular framework at the time and managed to handle 20 users/s. We implemented the service as pure PHP without ORM and managed to get 2000-3000 users/s on the same hardware. We did also test node.js implementation and it was twice as fast, but customer didn't want to go with that as PHP devs were so much cheaper and easier to find than node devs. Today they would probably want it to be implemented with Java and Spring Boot, ugh. Still that would make more sense than use node :)

    • @neptronix
      @neptronix 8 หลายเดือนก่อน +3

      I'm working on a computationally hyperefficient framework for PHP and we notice that laravel and symfony are 5x slower at almost everything.
      Yeah a chunky framework is a huge tax on PHP, raw PHP is really fast considering it's a dynamic typed language.

    • @AllanSavolainen
      @AllanSavolainen 8 หลายเดือนก่อน +2

      @@neptronix Yep, PHP is fast enough for most use cases. Just don't use ORM, but you shouldn't be using ORM with any language.

    • @mdbk2
      @mdbk2 8 หลายเดือนก่อน +2

      It is. But why would you want to use PHP, which is still slower than something else and not necessarily harder to use? Also, PHP consumes a lot of memory per request and actually that's a bigger issue.

    • @neptronix
      @neptronix 8 หลายเดือนก่อน +1

      @@AllanSavolainen Yep, i run an extremely lightweight stack that's about 5x faster than laravel, i'm with you on not being a bloat enjoyer

    • @neptronix
      @neptronix 8 หลายเดือนก่อน

      ​@@mdbk2
      I use it because:
      1) It's extremely fast. 3 times faster than node when used with openswoole ( source: techempower composite benchmarks ). This is amazing considering it's a simplified and dynamic typed language. This is because it's a thinner layer on top of C than most languages are today.
      2) It's extremely quick to work in because it simplifies coding... at the same time it doesn't limit you to do crazy shit if needed. Best of both worlds.
      3) Other languages are more of a pain in the ass due to lower convenience + longer code, or are a tad easier but dramatically slower ( meaning you will spend more time optimizing and go negative on your productivity gains ), PHP hits a great sweet spot for me of short code and fast code.
      4) Much like Rasmus Lerdorf himself, i am simply an impatient programmer.
      My PHP scripts take less than a megabyte per instantiation on average, i personally don't feel like that is too much.

  • @PabloGnesutta
    @PabloGnesutta 8 หลายเดือนก่อน +5

    Excuse my ignorance but, if I understand correctly, prime is saying that the benchmark is misleading or something like that. Why?
    Aren't the go and php programs doing the same but one simply handles more RPS thsn the other?

    • @nodidog
      @nodidog 8 หลายเดือนก่อน +2

      Goroutines use parallelism if you have multiple cores available

    • @matteac_rs
      @matteac_rs 8 หลายเดือนก่อน +7

      The first php exmaple is using a dev server (not meant to be performant). OpenSwoole is written in C, so it isnt actual php. The NodeJS example uses express, one of the slowest libraries, and the with Golang example I dont have idea, but it seems like a bad implementation or some weird scenario
      And the most important thing is that he ran the benchmarks locally with an unknown version of php, an unknown version of nodejs, an unknown version of go and an unknown ENVIRONMENT
      A lot of things could go wild testing locally

    • @forevernoob97
      @forevernoob97 7 หลายเดือนก่อน +2

      @@matteac_rs "OpenSwoole is written in C, so isn't actual php". I'm sorry but this is just nonsense. Even go is written in C.

    • @matteac_rs
      @matteac_rs 7 หลายเดือนก่อน

      @@forevernoob97 and JavaScript is C++

    • @psychechip
      @psychechip 3 หลายเดือนก่อน +2

      @@forevernoob97Go is not written in C. Go compiles directly to machine code.

  • @Beastintheomlet
    @Beastintheomlet 4 หลายเดือนก่อน

    I am 100% on board with you making click bait misinformation shorts as long as you do it under the name “The Crimagen”. You don’t harm your actual reputation that way and it’s a good name for parody content.

  • @legends_assemble4938
    @legends_assemble4938 8 หลายเดือนก่อน +20

    Never used PHP, but its absurd that it is faster than GO(I have seen it being faster than rust in some edge cases)... Even the most unoptimzed code should outperform majority of the interpreted languages.

    • @LtdJorge
      @LtdJorge 8 หลายเดือนก่อน +1

      PHP has a JIT, but even then Go is still vastly superior

    • @AllanSavolainen
      @AllanSavolainen 8 หลายเดือนก่อน

      @@LtdJorge Isn't Go typed, thus vastly inferior to PHP?

    • @ea_naseer
      @ea_naseer 8 หลายเดือนก่อน

      ​@@AllanSavolainenwe have type hinting in php 8 and you can enforce types at run time

    • @masterchief1520
      @masterchief1520 8 หลายเดือนก่อน +5

      ​@@AllanSavolainentypes are inferior? 😂

    • @AllanSavolainen
      @AllanSavolainen 8 หลายเดือนก่อน +1

      @@ea_naseer yeah, fortunately they are optional, thus not making PHP inferior :)

  • @NickByers-og9cx
    @NickByers-og9cx 8 หลายเดือนก่อน +3

    Actually, JavaScript is faster than digital circuits using the timewarp library.

  • @GreyDeathVaccine
    @GreyDeathVaccine 8 หลายเดือนก่อน +2

    Never trust benchmarks you haven't fabricated yourself (don't remember the author).

  • @HT-hj5jp
    @HT-hj5jp 8 หลายเดือนก่อน

    Mooooar PHP, please! Test krakjoe/parallel extension for multithreading!

  • @russelllapua4904
    @russelllapua4904 8 หลายเดือนก่อน

    Prime's voice sounds like a mix between Bill Burr and Gru.

  • @chakier
    @chakier 8 หลายเดือนก่อน

    OMG PHP is the king of the hill now. Again!

  • @2mbst1
    @2mbst1 8 หลายเดือนก่อน

    You should release shorts where each short contradicts another using bad benchmarks. "RUST slower than NODE?!" and the inverse, "PYTHON FASTER THAN C?!" etc

  • @semyaza555
    @semyaza555 8 หลายเดือนก่อน +1

    Openswoole making concurrency gains 💪

  • @ddruganov
    @ddruganov 8 หลายเดือนก่อน

    @2:55 45k req/s on what hardware exactly? lmao

  • @dungeonmir
    @dungeonmir 8 หลายเดือนก่อน +7

    Actually, php is fast enough...

    • @yungifez
      @yungifez 8 หลายเดือนก่อน

      Aaron Francis

  • @patiencebear
    @patiencebear 8 หลายเดือนก่อน

    3:19 - every tech blogger ever

  • @nightshade427
    @nightshade427 8 หลายเดือนก่อน

    Try adding drogon to your echo test

  • @Skinface1000
    @Skinface1000 8 หลายเดือนก่อน +1

    I just miss the streams, so sadge...

  • @neptronix
    @neptronix 8 หลายเดือนก่อน +3

    That's because PHP is usually benchmarked using apache or nginx, in the case what the benchmark is measuring is the overhead of apache or nginx more than it's measuring PHP.
    When you run node.js out through apache/nginx, it's really, really slow in a similar condition.

  • @SyncMasterXD
    @SyncMasterXD 8 หลายเดือนก่อน +1

    Netflix stock go brrr

  • @nicolascarrez3409
    @nicolascarrez3409 8 หลายเดือนก่อน +5

    The problem is that PHP is synchronous by default. On the contrary JS & Go are asynchronous by default.
    So all the libraries of JS and Go will natively support asynchronous code, but for each PHP I/O lib you will have to find an up-to-date version of this library supporting asynchronous code which is not necessarily easy (same problem than python async apps).

    • @henrywooddk
      @henrywooddk 29 วันที่ผ่านมา

      Swoole/OpenSwoole hooks into all synchronous I/O functions of PHP and makes them asynchronous automatically - This means that the code still looks synchronous (except the fact that the synchronous code is wrapped in coroutines). OpenSwoole/Swoole does the same for most PHP extensions

  • @jorismak
    @jorismak 8 หลายเดือนก่อน

    Lol. I commented some things that massively improved php performance the last years , so much that it can be found at the top of (framework) benchmarks _sometimes_, while also agreeing that this benchmark was done wrong and go is surely sister , agreeing with the response of this video . And it got marked as spam and removed ?

  • @stilldreamy5181
    @stilldreamy5181 8 หลายเดือนก่อน +1

    I don't get why it was slow without Swoole and way faster with it. What server were they using with php before using it with Swoole? Yes, php is blocking, but I thought that didn't matter because, well it's not like you typically run a server implemented in blocking php. Instead you use Apache or something and it just launches more php instances as needed, or something like that (I'm probably wrong about this part...)

    • @mdbk2
      @mdbk2 8 หลายเดือนก่อน +3

      Because without Swoole, PHP executes the entire script from scratch with each request. With Swoole it works more like a Node or Go server, where only the handler is executed, but the rest of the application remains in memory.

    • @pianochess1882
      @pianochess1882 8 หลายเดือนก่อน +1

      The first example didn’t use a real web server, but phps built in dev server, which can’t handle multiple requests at a time. They should have used Apache or nginx+ php-fpm

    • @stilldreamy5181
      @stilldreamy5181 8 หลายเดือนก่อน +1

      @@mdbk2 yeah but if the server is then just your php process long running, yes there are some opportunities for optimization there, but I am not convinced these numbers mean anything at all unless you compare with a typical server used with php. There could also be some speed advantage to just giving each request its own blocking php process.

  • @udakyv2
    @udakyv2 8 หลายเดือนก่อน

    Dam, its fast

  • @EdwinMartin
    @EdwinMartin 8 หลายเดือนก่อน +3

    Does he really not know what PM2 is? It's almost mandatory for running a Nodejs server!

    • @complexity5545
      @complexity5545 8 หลายเดือนก่อน +1

      Most of use bare metal senior guys don't use node as web apps. We only use nodejs for the css and js development. I didn't know about pm2.
      I would use a top, htop, [-SIG trap], daemon tools, and other unix scripts instead of a process manager. [ pm2 ] reminds me of what J2EE used to do and that experience was horrible.
      I guess I learn something everyday.

    • @EdwinMartin
      @EdwinMartin 8 หลายเดือนก่อน

      @@complexity5545 In that case, PM2 is what you want 😉 It makes Nodejs just like any other unix server and feels natural in such an environment.

  • @Marxone
    @Marxone 8 หลายเดือนก่อน +1

    Lambo awaits you ... but without the await crap

  • @jorge.barcelos
    @jorge.barcelos 8 หลายเดือนก่อน +1

    Open Swole Bro, PHP Bench 🏋

  • @simple_classic
    @simple_classic 10 วันที่ผ่านมา

    I mean any language under proper language runtimes becomes got. I don't know you want to code it in Rust?

  • @viko1786
    @viko1786 8 หลายเดือนก่อน

    Do it as an April fools joke

  • @user-tb4ig7qh9b
    @user-tb4ig7qh9b 8 หลายเดือนก่อน

    🤔it is not a lie and already in production use and php written in c

  • @mdbk2
    @mdbk2 8 หลายเดือนก่อน +7

    tl;dw; If your PHP application uses an HTTP server written in C/C++ and doing nothing except calling two functions written in C then PHP is faster than GO :D

  • @zebraforceone
    @zebraforceone 8 หลายเดือนก่อน

    Laravel Octane is pretty ridiculous

  • @7heMech
    @7heMech 8 หลายเดือนก่อน +2

    PHP is faster than Assembly.

  • @issussov
    @issussov 8 หลายเดือนก่อน +1

    Go to a company and ask for money, else benchmark their products? :D

  • @chakier
    @chakier 8 หลายเดือนก่อน +1

    What I sure exactly know PHP is much more faster and comfortable in time parsing then GO. Don't believe me? Try to do time.Parse() fast and correct in GO!

  • @Tony-dp1rl
    @Tony-dp1rl 8 หลายเดือนก่อน

    My next benchmark ... MS-DOS with GWBasic server faster than Go.

  • @colewyant4271
    @colewyant4271 8 หลายเดือนก่อน

    Hand written letters are faster than C

  • @catcatcatcatcatcatcatcatcatca
    @catcatcatcatcatcatcatcatcatca 8 หลายเดือนก่อน +1

    LLVM is faster than my CPU

  • @linkernick5379
    @linkernick5379 8 หลายเดือนก่อน

    Swollagen, haha 😂

  • @Z4KIUS
    @Z4KIUS 5 หลายเดือนก่อน

    php serve is slow, php-fpm still has some unnecessary overhead, especially when using big frameworks, but php itself does crunching really fast when you let it

  • @mindasb
    @mindasb 8 หลายเดือนก่อน

    You all need to write the following on a blackboard like Bart:
    Languages are not slow or fast - runtimes are.
    Languages are not slow or fast - runtimes are.
    Languages are not slow or fast - runtimes are.
    Languages are not slow or fast - runtimes are.
    Languages are not slow or fast - runtimes are.
    People saying "PHP is not fast, that library is" , LOL WHAT?
    Can anyone compare C compilers from the 80s with modern ones ? :D

  • @anj000
    @anj000 8 หลายเดือนก่อน

    3:40 do it

  • @YTChannel344
    @YTChannel344 18 วันที่ผ่านมา

    As always old school tech still more stable and reliable.

  • @lcarv20
    @lcarv20 8 หลายเดือนก่อน

    css as backend benchmark needed. To prove css is faster than c++.

  • @muhdkamilmohdbaki7054
    @muhdkamilmohdbaki7054 8 หลายเดือนก่อน

    You all got it wrong. X, formerly known as Twitter is the fastest of anything😂.

  • @efenollal
    @efenollal 8 หลายเดือนก่อน

    PHP/Hack ftw

  • @stanleyparks
    @stanleyparks 8 หลายเดือนก่อน

    GO destroyed by open source elephant-logo chad swole language

  • @susiebaka3388
    @susiebaka3388 4 หลายเดือนก่อน

    Swolagen 💪 😂

  • @xcrap
    @xcrap 8 หลายเดือนก่อน

    Even Prime is faster than GO ~:)

  • @tokiomutex4148
    @tokiomutex4148 8 หลายเดือนก่อน

    Good old offload to C trick

  • @aprilmintacpineda2713
    @aprilmintacpineda2713 8 หลายเดือนก่อน +1

    The Prime reading my comment is sooooo satisfying. Gotta add that to my resume.

  • @thisbridgehascables
    @thisbridgehascables 8 หลายเดือนก่อน

    Sending a string of text and asking for it back just seems like an unrealistic test. Again technology if at its pace will make these silly benchmarks unnecessary and the language wars will be ignored.
    Pick the language which meets the project’s requirements and will have the best chance of success. Highly dependent on the size and scale of the application..

  • @jackmoloney
    @jackmoloney 8 หลายเดือนก่อน

    JavaScript > C - April fools day upload

  • @user-qr4jf4tv2x
    @user-qr4jf4tv2x 8 หลายเดือนก่อน +1

    swolengen

  • @markhou
    @markhou 8 หลายเดือนก่อน

    Is Python faster?

  • @nodidog
    @nodidog 8 หลายเดือนก่อน +1

    PHP 😂 people still fighting the good fight

    • @yungifez
      @yungifez 8 หลายเดือนก่อน +1

      We shall not falter

  • @dovh49
    @dovh49 8 หลายเดือนก่อน +2

    According to techempower benchmarks PHP can be faster than Go, but Go does have multiple implementations that are faster than PHP. But it looks like you can get PHP going extremely fast. And, yes, PHP is faster than JS, significantly.
    Granted, C# is faster than Go, C# is only slower than Rust and C++.

  • @forevernoob97
    @forevernoob97 7 หลายเดือนก่อน

    It's quite sad to see that most people still believe the myth that there are intrinsically "fast" or "slow" languages.

  • @iliealexandru2181
    @iliealexandru2181 8 หลายเดือนก่อน

    Python is faster than C Kappa

  • @GeorgijTovarsen
    @GeorgijTovarsen 8 หลายเดือนก่อน

    "How Tcl is WAY faster than Rust"

  • @nextlifeonearth
    @nextlifeonearth 8 หลายเดือนก่อน +1

    Bash is so fast. I start my optimised C application in it and it wins all the benchmarks.
    Bash is so fast.

  • @softwarechats9307
    @softwarechats9307 8 หลายเดือนก่อน

    "I could make so many bad benchmarks" ... just make a troll youtube channel with nothing but BS benchmarks!

  • @eduardoADSL
    @eduardoADSL 8 หลายเดือนก่อน +2

    I can manually parse a JSON file faster than Go.

  • @Samurai-Kit
    @Samurai-Kit 8 หลายเดือนก่อน +1

    Dear Prime, goto politics. Your trolling, crowd management/manipulation skills and rust propaganda are perfect.

  • @dixztube
    @dixztube 8 หลายเดือนก่อน

    Man all this go haten need to stop right now

  • @mbehboodian
    @mbehboodian 8 หลายเดือนก่อน

    JS is faster than C