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 :)
Bun vs Rust next
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
@@zorin.andrey Great 💯
Doesn't bun also use V8?
@@6IGNITION9 No. V8 is used by node. Bun uses some other engine
@@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?
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.
It's like comparing Lamborghini & Toyota
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.
@@pietraderdetective8953Most Rust is faster than most Zig and C. C and Zig can be faster, but usually arent.
@@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.
@@superduper6090it all comes down to how well you optimize the code when it’s that close to the hardware.
@@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.
Writing a Rust backend for a web application seems redundant. It is easier and faster to do it in TS.
Rust vs Zig pls
Why do you run nano with sudo?
Because sometimes it does not allow me to edit files without using sudo
@@TechFlex01 Did you ever wonder why? It just seems odd since you‘re working in your user‘s home directory.
Meanwhile CLISP+SBCL calculates 100'000! in less than 3 seconds.
(defun f (n res) (cond ((= 1 n) res) (f (- n 1) (* n res))))
(f 100000 1)
Why do you sound like theo?
Is that an AI voice?
PHP8.4 vs Javascript Fibonacci
Hopefully next
It is not Rust so fast. It's LLVM has great optimisation.
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.
@@bolt7C and C++ have no borrow checker and they are fast.
Python
Libs In use
Mypy
Numba
Pygame
Numpy
Time
Random
Math
Asyncio
.HTML
.JS
.CSS
Blender
Gimp
Why bother
nvim > nano
Who will exit the nvim then?
@@TechFlex01 esc :wq
Javascript is faster to develop in.
DOPAMINE FOR RUST USERS 🤫
lol