Browse the latest JavaScript performance benchmarks created by the community.
Testing finding an object array via findIndex or by using a for loop
No description provided
No description provided
No description provided
This benchmark creates huge objects to be cloned by lodash's cloneDeep function vs the native structuredClone
Test
Compare getAttribute with dataset
No description provided
No description provided
No description provided
Reactive arrays cannot be completely changed in VueJS. We need to change the elements. Here are ways to do this without losing reactivity. The first test is a reference test and is not applicable for reactive arrays.
No description provided
No description provided
Note!: none of these tests actually do the same thing, and the data in the example is simple. consider also using arrays: those are nice. Some of these are shallow, some of these are deep-ish. Data is lost through JSON serialization and back, and more data would be lost in JSON and other methods depending on the data stored.
No description provided
No description provided
No description provided
No description provided
No description provided
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
No description provided
No description provided
compare for ..of iteration speed with forEach method
compare for ..of iteration speed with forEach method
Escape HTML string tags in JavaScript by Character replacement vs. Tagged template literal function