jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
map vs reduce
const searchData = [
{ title: "Apple iPhone 15", description: "Latest model with improved camera" },
{ title: "Samsung Galaxy S23", description: "High performance Android smartphone" },
{ title: "Google Pixel 8", description: "Pure Android experience with AI features" },
{ title: "OnePlus 12", description: "Fast charging and smooth display" },
{ title: "Sony Xperia 1", description: "Professional camera technology in a phone" },
{ title: "Nokia X20", description: "Durable phone with long battery life" },
{ title: "Motorola Edge", description: "Edge display and strong performance" },
{ title: "Xiaomi Mi 14", description: "Affordable phone with flagship specs" },
{ title: "Huawei P60", description: "Excellent camera and design" },
{ title: "Oppo Find X6", description: "Innovative design and performance" },
{ title: "Apple iPhone 15", description: "Latest model with improved camera" },
{ title: "Samsung Galaxy S23", description: "High performance Android smartphone" },
{ title: "Google Pixel 8", description: "Pure Android experience with AI features" },
{ title: "OnePlus 12", description: "Fast charging and smooth display" },
{ title: "Sony Xperia 1", description: "Professional camera technology in a phone" },
{ title: "Nokia X20", description: "Durable phone with long battery life" },
{ title: "Motorola Edge", description: "Edge display and strong performance" },
{ title: "Xiaomi Mi 14", description: "Affordable phone with flagship specs" },
{ title: "Huawei P60", description: "Excellent camera and design" },
{ title: "Oppo Find X6", description: "Innovative design and performance" },
{ title: "Apple iPhone 15", description: "Latest model with improved camera" },
{ title: "Samsung Galaxy S23", description: "High performance Android smartphone" },
{ title: "Google Pixel 8", description: "Pure Android experience with AI features" },
{ title: "OnePlus 12", description: "Fast charging and smooth display" },
{ title: "Sony Xperia 1", description: "Professional camera technology in a phone" },
{ title: "Nokia X20", description: "Durable phone with long battery life" },
{ title: "Motorola Edge", description: "Edge display and strong performance" },
{ title: "Xiaomi Mi 14", description: "Affordable phone with flagship specs" },
{ title: "Huawei P60", description: "Excellent camera and design" },
{ title: "Oppo Find X6", description: "Innovative design and performance" },
{ title: "Apple iPhone 15", description: "Latest model with improved camera" },
{ title: "Samsung Galaxy S23", description: "High performance Android smartphone" },
{ title: "Google Pixel 8", description: "Pure Android experience with AI features" },
{ title: "OnePlus 12", description: "Fast charging and smooth display" },
{ title: "Sony Xperia 1", description: "Professional camera technology in a phone" },
{ title: "Nokia X20", description: "Durable phone with long battery life" },
{ title: "Motorola Edge", description: "Edge display and strong performance" },
{ title: "Xiaomi Mi 14", description: "Affordable phone with flagship specs" },
{ title: "Huawei P60", description: "Excellent camera and design" },
{ title: "Oppo Find X6", description: "Innovative design and performance" },
];
const query = { value: "item 5" };
let filteredResults = [];
let searchExecuted = false;
function highlightMatch(text, term) {
return text.replace(new RegExp(`(${term})`, "gi"), "[$1]");
}
Ready to run.
| Test | Ops/sec | |
|---|---|---|
| мапим | | ready |
| редюсим | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.