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
var valuesArray = [
"Apple", "Banana", "Cherry", "Date", "Elderberry", "Fig", "Grape", "Honeydew",
"Iceberg lettuce", "Jackfruit", "Kiwi", "Lemon", "Mango", "Nectarine", "Orange",
"Papaya", "Quince", "Raspberry", "Strawberry", "Tomato", "Ugli fruit", "Vanilla",
"Watermelon", "Xigua", "Yellow watermelon", "Zucchini", "Asparagus", "Broccoli",
"Carrot", "Daikon", "Eggplant", "Fennel", "Garlic", "Horseradish", "Italian parsley",
"Jalapeño", "Kale", "Leek", "Mushroom", "Napa cabbage", "Okra", "Parsnip",
"Quinoa", "Radish", "Spinach", "Turnip", "Ube", "Vidalia onion", "Watercress",
"Yam", "Zucchini", "Almond", "Brazil nut", "Cashew", "Doughnut", "English muffin",
"French toast", "Gingerbread", "Hot dog", "Ice cream", "Jelly", "Kebab", "Lasagna",
"Macaroni", "Nachos", "Omelet", "Pancake", "Quesadilla", "Ravioli", "Sushi",
"Taco", "Udon", "Vermicelli", "Waffle", "Xylocarp", "Yogurt", "Ziti", "Apricot",
"Blueberry", "Cantaloupe", "Dragonfruit", "Endive", "Fried chicken", "Goulash",
"Hummus", "Iced tea", "Jambalaya", "Ketchup", "Lamb", "Meatloaf", "Noodle", "Olive",
"Pineapple", "Quail", "Ribs", "Soup", "Turkey", "Vegetable soup", "Wheat bread"
];
var valuesObject = valuesArray.reduce((acc, e) => ({ ...acc, [e]: true }), {});
var getRandomValue = () => valuesArray[Math.floor(Math.random() * valuesArray.length)];
Ready to run.
Test | Ops/sec | |
---|---|---|
.includes |
| ready |
.find |
| ready |
object lookup |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.