Hehe

Benchmark created on


Setup

let testdata = ['k4rDVimW', 'mqJz8k8D', 'mqJz8k8D', '7XoxWmv1', 'RrxTxNr4', 'QtyvV0Jl', '39nrnkAC', 
 'RrxTxNr4', 'fpCyn0xl', 's7Q3c24i', 'bImL8B3P', 'QrMVk9lg', 'PA3QJE8Z', 'k4rDVimW', 
 'lphGEIY5', 'PZ5VELvm', 'PaJ3GnTS', 'YMHMu0S8', 'YMHMu0S8', 'uvTUiLnd', '7XoxWmv1', 
 'yh1NQtOT', '7UrClWpE', '39nrnkAC', 'QtyvV0Jl', '0TIYBoBl', 's6CQ4qPM', 'NbEvOr2a', 
 'qy5wT8Oz', '39nrnkAC', 'mqJz8k8D', 'bImL8B3P', 'PA3QJE8Z', 'GYCmw2Br', '4Va6BKEB', 
 'GYCmw2Br', 'sex8DJxa', '7tIXiHQ6', 'aX5f3aJK', '17lRWwel', 'TJVZXdP6', 'PA3QJE8Z', 
 'ynFLuRlL', 'dnwUY5B7', 'ynFLuRlL', 'SZlPfvaj', 'QtyvV0Jl', 'ynFLuRlL', 'bImL8B3P', 
 'fpCyn0xl', '1vRHZx4o', 'PA3QJE8Z', 'Ur6UNZus', '39nrnkAC', 'ZRj1Ydvk', 'yAGRla27', 
 'ynFLuRlL', '7XoxWmv1', '4Va6BKEB', '55W13b9H', '7XoxWmv1', 'gSbPRYKC', 'yAGRla27', 
 'GYCmw2Br', 'PA3QJE8Z', 'MpOUTioH', '7XoxWmv1', 'mqJz8k8D', 'PA3QJE8Z', 'JeAScrcM', 
 'MsEeDRTt', 'PZ5VELvm', 'JeAScrcM', '0TIYBoBl', 'ZRj1Ydvk', 'RrxTxNr4', 'aX5f3aJK', 
 '39nrnkAC', 'JeAScrcM', 'fpCyn0xl', 'fpCyn0xl', 'JeAScrcM', 'QrMVk9lg', 'bImL8B3P', 
 'QrMVk9lg', '7UrClWpE', 'YMHMu0S8', 'MsEeDRTt', '7XoxWmv1', 'MpOUTioH', 'uvTUiLnd', 
 'PZ5VELvm', '55W13b9H', 'GYCmw2Br', 'Rf1TO5NO', 'MsEeDRTt', '17lRWwel', '39nrnkAC', 
 'PA3QJE8Z', '4Va6BKEB'];

Test runner

Ready to run.

Testing in
TestOps/sec
unique by iteration
let temp = [];
testdata.forEach(s=>{
	if(!temp.includes(s))
		temp.push(s);
})
ready
Set
let temp = [];
testdata.forEach(s=>{
	temp.push(s);
})
temp = [...new Set(temp)]
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.