Skip to main content

I found this post : https://romgrk.com/posts/optimizing-javascript/

Which lists a bunch of interesting optimisations for javascripters in 2024. The best thing is it includes benchmarks for each!

"Avoid different shapes" is included and the performance hit is large ("Percentage results represent the number of operations completed within 1s, divided by the number of operations of the highest scoring case. Higher is better.")

enter image description here

It also suggests

"Use eval" enter image description here

and

"Avoid map filter reduce"

enter image description here

I think this is my new favorite page on the internet and I will be optimising all my javascript code in future, mainly to troll front end devs :)

I found this post : https://romgrk.com/posts/optimizing-javascript/

Which lists a bunch of interesting optimisations for javascripters in 2024. The best thing is it includes benchmarks for each!

"Avoid different shapes" is included and the performance hit is large

enter image description here

It also suggests

"Use eval" enter image description here

and

"Avoid map filter reduce"

enter image description here

I think this is my new favorite page on the internet and I will be optimising all my javascript code in future, mainly to troll front end devs :)

I found this post : https://romgrk.com/posts/optimizing-javascript/

Which lists a bunch of interesting optimisations for javascripters in 2024. The best thing is it includes benchmarks for each!

"Avoid different shapes" is included and the performance hit is large ("Percentage results represent the number of operations completed within 1s, divided by the number of operations of the highest scoring case. Higher is better.")

enter image description here

It also suggests

"Use eval" enter image description here

and

"Avoid map filter reduce"

enter image description here

I think this is my new favorite page on the internet and I will be optimising all my javascript code in future, mainly to troll front end devs :)

Source Link
Ewan
  • 79.8k
  • 5
  • 83
  • 179

I found this post : https://romgrk.com/posts/optimizing-javascript/

Which lists a bunch of interesting optimisations for javascripters in 2024. The best thing is it includes benchmarks for each!

"Avoid different shapes" is included and the performance hit is large

enter image description here

It also suggests

"Use eval" enter image description here

and

"Avoid map filter reduce"

enter image description here

I think this is my new favorite page on the internet and I will be optimising all my javascript code in future, mainly to troll front end devs :)