RUST vs JAVASCRIPT Speed Comparison Test

Поділитися
Вставка
  • Опубліковано 2 кві 2024
  • Welcome to our Rust vs JavaScript speed comparison test! In this video, we'll conduct a speed test comparison between Rust and JavaScript, analyzing their performance and code efficiency bu running fibonacci series programs from them.
    Join us as we delve into the intricacies of Rust vs JavaScript speed, exploring the nuances of code execution time comparison. Witness the ultimate performance comparison between these two popular programming languages. Witness the battle of code efficiency and performance as we delve into the intricacies of Rust vs JavaScript speed. Hopefully, this video will excite the developers, coders and programmers.
    Throughout the video, we'll provide you with insights into Rust performance and JavaScript speed. Whether you're interested in programming languages speed test or just curious about the language speed showdown, this video has something for you. Discover the secrets behind Rust optimization and JavaScript speed in this ultimate language speed showdown.
    Don't miss out on this epic Rust vs JavaScript battle as we uncover the secrets of rust optimization and JavaScript speed.
    Comment your thoughts as well and Share with your friends as well.
    I have also made go vs rust, react in a nutshell, python vs javascript speed comparisons videos, you can check them out on my channel.
    Like and Subscribe :)

КОМЕНТАРІ • 38

  • @zorin.andrey
    @zorin.andrey 2 місяці тому +7

    Bun vs Rust next

    • @zorin.andrey
      @zorin.andrey 2 місяці тому +7

      actually did it myself:
      node fibrec.js 6.31s user 0.01s system 99% cpu 6.335 total
      bun run fibrec.js 3.14s user 0.01s system 98% cpu 3.193 total
      ./fib 3.41s user 0.00s system 99% cpu 3.421 total

    • @TechFlex01
      @TechFlex01  2 місяці тому

      @@zorin.andrey Great 💯

    • @6IGNITION9
      @6IGNITION9 2 місяці тому

      Doesn't bun also use V8?

    • @zorin.andrey
      @zorin.andrey 2 місяці тому

      @@6IGNITION9 No. V8 is used by node. Bun uses some other engine

    • @6IGNITION9
      @6IGNITION9 2 місяці тому

      @@zorin.andrey Oh, fascinating. Apparently it uses Safari's engine, which prioritizes startup time (rather than execution speed). Seems to imply that a longer benchmark would favour Node?

  • @diesertyp1147
    @diesertyp1147 2 місяці тому +11

    In my opinion you should measure the execution of the fibonacci function fron inside of the runtime instead to not include the startup sequence of the runtime in your measurement, because for most applications you are not starting a new process every time you execute something, but instead the executed function is part of a bigger project and so only measuring the execution time of the fibonacci function and not the whole application would be more accurate. Probably similar end result in terms of Rust being faster, but in my opinion still a valid point for future comparisons.

  • @0xDEAD_Inside
    @0xDEAD_Inside 2 місяці тому +16

    It's like comparing Lamborghini & Toyota

    • @pietraderdetective8953
      @pietraderdetective8953 2 місяці тому +1

      yeah it's blazingly fast vs JS, Python, Java, C#..
      against other speed demon language like C or Zig...now that's a different matter.

    • @superduper6090
      @superduper6090 2 місяці тому

      @@pietraderdetective8953Most Rust is faster than most Zig and C. C and Zig can be faster, but usually arent.

    • @pietraderdetective8953
      @pietraderdetective8953 2 місяці тому

      @@superduper6090 you got some references / github links on this? I wrote some benches and hence my comment..would like to check other benches as well to recheck.

    • @ScienceTechComputers
      @ScienceTechComputers 2 місяці тому

      @@superduper6090it all comes down to how well you optimize the code when it’s that close to the hardware.

    • @superduper6090
      @superduper6090 2 місяці тому

      @@ScienceTechComputers Its not really close to the hardware in all honesty. People like to look at these languages and say theyre low level, but in reality that means nothing. Optimizations are the only thing that really decides it, and the rust compiler optimizes your code a lot.

  • @user-of6ls2ng5l
    @user-of6ls2ng5l 2 місяці тому

    Writing a Rust backend for a web application seems redundant. It is easier and faster to do it in TS.

  • @ThomazMartinez
    @ThomazMartinez 2 місяці тому +2

    Rust vs Zig pls

  • @3dgar4llenFLO
    @3dgar4llenFLO 2 місяці тому +1

    Why do you run nano with sudo?

    • @TechFlex01
      @TechFlex01  2 місяці тому

      Because sometimes it does not allow me to edit files without using sudo

    • @3dgar4llenFLO
      @3dgar4llenFLO 2 місяці тому

      @@TechFlex01 Did you ever wonder why? It just seems odd since you‘re working in your user‘s home directory.

  • @johnwoods978
    @johnwoods978 2 місяці тому

    Meanwhile CLISP+SBCL calculates 100'000! in less than 3 seconds.

    • @johnwoods978
      @johnwoods978 2 місяці тому

      (defun f (n res) (cond ((= 1 n) res) (f (- n 1) (* n res))))
      (f 100000 1)

  • @iSaac-kp5lk
    @iSaac-kp5lk 2 місяці тому

    Why do you sound like theo?

  • @6IGNITION9
    @6IGNITION9 2 місяці тому +1

    Is that an AI voice?

  • @SyntaxLexx
    @SyntaxLexx 2 місяці тому

    PHP8.4 vs Javascript Fibonacci

  • @edkachalov
    @edkachalov 2 місяці тому

    It is not Rust so fast. It's LLVM has great optimisation.

    • @bolt7
      @bolt7 2 місяці тому

      And without Rust's borrow checker managing memory at compile time, it would still be super slow.
      A lot goes into making the language fast.

    • @edkachalov
      @edkachalov 2 місяці тому

      ​@@bolt7C and C++ have no borrow checker and they are fast.

  • @bonkaiblue7906
    @bonkaiblue7906 2 місяці тому

    Python
    Libs In use
    Mypy
    Numba
    Pygame
    Numpy
    Time
    Random
    Math
    Asyncio
    .HTML
    .JS
    .CSS
    Blender
    Gimp

  • @jialx
    @jialx 2 місяці тому

    Why bother

  • @mrmonday2000
    @mrmonday2000 2 місяці тому

    nvim > nano

    • @TechFlex01
      @TechFlex01  2 місяці тому

      Who will exit the nvim then?

    • @mrmonday2000
      @mrmonday2000 2 місяці тому

      @@TechFlex01 esc :wq

  • @quinndirks5653
    @quinndirks5653 2 місяці тому

    Javascript is faster to develop in.

  • @TechFlex01
    @TechFlex01  2 місяці тому +1

    DOPAMINE FOR RUST USERS 🤫