How Slow is JavaScript Really? JavaScript vs C++ (Data Structures & Optimization)
Is JavaScript really that slow? Or is that just a leftover impression from the old days?
Patreon: https://www.patreon.com/simondevyt
Follow me on:
Twitter: https://twitter.com/iced_coffee_dev
Instagram: https://www.instagram.com/beer_and_code/
Github: https://github.com/simondevyoutube/
In this video we talk a bit about JavaScript vs C++, and the performance difference between them. We'll talk quickly about the history of JavaScript before working through a few small benchmarks to compare performance between them, using various optimization levels for gcc. It's kind of interesting to see how much JavaScript's performance has evolved with JIT (just in time) compilation since the early Netscape days. The v8 team has made enormous strides in performance and is narrowing the gap with C++ year by year. We'll also walk through some examples of what you can do with your basic C++ code to squeeze more performance out, either by using better compiler flags or SSE/AVX intrinsics to get better usage out of your CPU.
What's covered:
* Super brief history of JavaScript and V8
* Benchmarks and comparison of JavaScript vs C++
* SSE and AVX intrinsics
* gcc -Ofast and float associativity
* Some closing thoughts on JavaScript's performance today, as well as C++.
Speed, Speed, Speed: JavaScript vs C++ vs WebAssembly:
https://www.youtube.com/watch?v=aC_QLLilwso
Godbolt:
https://godbolt.org/
Wikipedia:
https://en.wikipedia.org/wiki/JavaScript
https://en.wikipedia.org/wiki/Associative_property
Various blog posts from V8 team:
https://blog.chromium.org/2010/12/new-crankshaft-for-v8.html
https://v8.dev/blog/10-years
https://v8.dev/blog/launching-ignition-and-turbofan
https://v8.dev/blog/adaptor-frame
https://v8.dev/blog/high-performance-cpp-gc
https://v8.dev/blog/fast-super
https://v8.dev/blog/preparser
https://v8.dev/blog/spread-elements
https://v8.dev/blog/background-compilation
https://v8.dev/blog/fast-properties
https://v8.dev/blog/fast-for-in
Видео How Slow is JavaScript Really? JavaScript vs C++ (Data Structures & Optimization) канала SimonDev
Patreon: https://www.patreon.com/simondevyt
Follow me on:
Twitter: https://twitter.com/iced_coffee_dev
Instagram: https://www.instagram.com/beer_and_code/
Github: https://github.com/simondevyoutube/
In this video we talk a bit about JavaScript vs C++, and the performance difference between them. We'll talk quickly about the history of JavaScript before working through a few small benchmarks to compare performance between them, using various optimization levels for gcc. It's kind of interesting to see how much JavaScript's performance has evolved with JIT (just in time) compilation since the early Netscape days. The v8 team has made enormous strides in performance and is narrowing the gap with C++ year by year. We'll also walk through some examples of what you can do with your basic C++ code to squeeze more performance out, either by using better compiler flags or SSE/AVX intrinsics to get better usage out of your CPU.
What's covered:
* Super brief history of JavaScript and V8
* Benchmarks and comparison of JavaScript vs C++
* SSE and AVX intrinsics
* gcc -Ofast and float associativity
* Some closing thoughts on JavaScript's performance today, as well as C++.
Speed, Speed, Speed: JavaScript vs C++ vs WebAssembly:
https://www.youtube.com/watch?v=aC_QLLilwso
Godbolt:
https://godbolt.org/
Wikipedia:
https://en.wikipedia.org/wiki/JavaScript
https://en.wikipedia.org/wiki/Associative_property
Various blog posts from V8 team:
https://blog.chromium.org/2010/12/new-crankshaft-for-v8.html
https://v8.dev/blog/10-years
https://v8.dev/blog/launching-ignition-and-turbofan
https://v8.dev/blog/adaptor-frame
https://v8.dev/blog/high-performance-cpp-gc
https://v8.dev/blog/fast-super
https://v8.dev/blog/preparser
https://v8.dev/blog/spread-elements
https://v8.dev/blog/background-compilation
https://v8.dev/blog/fast-properties
https://v8.dev/blog/fast-for-in
Видео How Slow is JavaScript Really? JavaScript vs C++ (Data Structures & Optimization) канала SimonDev
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![How I Optimized My JavaScript Project (Complete Walkthrough) | Faster Spatial Hash Grids](https://i.ytimg.com/vi/oewDaISQpw0/default.jpg)
![JavaScript Pro Tips - Code This, NOT That](https://i.ytimg.com/vi/Mus_vwhTCq0/default.jpg)
![I made an EVEN BETTER Minecraft](https://i.ytimg.com/vi/MQt0exToUEY/default.jpg)
![Branchless Programming: Why "If" is Sloowww... and what we can do about it!](https://i.ytimg.com/vi/bVJ-mWWL7cE/default.jpg)
![I've been challenged to a CSS Battle rematch | Can I beat him again???](https://i.ytimg.com/vi/20QiX8rmHnU/default.jpg)
![Speed, Speed, Speed: JavaScript vs C++ vs WebAssembly](https://i.ytimg.com/vi/uMuYaES4W3o/default.jpg)
![](https://i.ytimg.com/vi/gVDabIxH2iU/default.jpg)
![Linked Lists vs Arrays, When They Suck, and When They Don't (Data Structures and Optimization)](https://i.ytimg.com/vi/34ky600VTN0/default.jpg)
![I Tried Making a 3D MMORPG Game in JavaScript](https://i.ytimg.com/vi/IptkgFOoci0/default.jpg)
![3D World Generation: Heightmap Tutorial](https://i.ytimg.com/vi/hHGshzIXFWY/default.jpg)
![Experienced C++ Developers Tell the Truth in 2021](https://i.ytimg.com/vi/hF0l2M-oD04/default.jpg)
![Three.js Tutorial on Shaders (beginners)](https://i.ytimg.com/vi/C8Cuwq1eqDw/default.jpg)
![How Many AI Agents can JavaScript Handle?](https://i.ytimg.com/vi/kuy17LVDESk/default.jpg)
![Coding Adventure: Procedural Moons and Planets](https://i.ytimg.com/vi/lctXaT9pxA0/default.jpg)
![Pass by Value vs Reference (JavaScript): Memory, Functions, and more!](https://i.ytimg.com/vi/jxaxyvHo8ZM/default.jpg)
![Object Oriented Programming vs Functional Programming](https://i.ytimg.com/vi/wyABTfR9UTU/default.jpg)
![Learn JavaScript - Full Course for Beginners](https://i.ytimg.com/vi/PkZNo7MFNFg/default.jpg)
![Three.js Post Processing Tutorial | Easy & Quick for Beginners (JavaScript)](https://i.ytimg.com/vi/_da8WNeZZ4w/default.jpg)
![Memory, Cache Locality, and why Arrays are Fast (Data Structures and Optimization)](https://i.ytimg.com/vi/247cXLkYt2M/default.jpg)
![Java vs JavaScript](https://i.ytimg.com/vi/Wpeym1_lmPo/default.jpg)