Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

For loop VS Reverse for loop VS Rever for loop without comparison

No description provided

Diffenent ways to get cookie

No description provided

Array find vs lodash find vs Array some

No description provided

cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString currency loop

No description provided

slice vs subarray -1

No description provided

slice vs subarray

No description provided

Measure date regex

No description provided

getComputedStyle vs style.getPropertyValue vs. getBoundingClientRect

No description provided

style.getPropertyValue vs. getBoundingClientRect

No description provided

reduce vs map,filter

No description provided

reduce vs map-filter

No description provided

Lodash isEmpty vs Length < 1 check

Checking length comparison vs isEmpty comparison

switch on object references

No description provided

for vs foreach vs for..of vs for..of over entries vs for in 2

Compare loop performance

Mapping of Map: for of VS destructuring of values

No description provided

Convert Set to Array

No description provided

Map for map vs entries.map

No description provided

String() vs .toString() vs template-string vs string-concat fixed

No description provided

String() vs .toString() vs template-string vs string-concat

No description provided

getCookie variations

No description provided

new set vs reusing set

No description provided

.at vs bracket notation

.at vs bracket notation

stringCount REDUCE VS FOREACH

Write a function named `stringCount` that takes in an array of strings and returns an object where the keys are the strings from the array and the value of each key is a count of how many times the string appears in the object. If there are duplicate strings the values should reflect that.

highestFrequencyString-2

Write a function named `highestFrequencyString` that takes in an array of strings and returns the string with the highest frequency in the array and how many times it appears.

highestFrequencyString

1. Write a function named `highestFrequencyString` that takes in an array of strings and returns the string with the highest frequency in the array and how many times it appears.