Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
IndexOf vs Includes vs lodash includes with big array
(version: 0)
Banana
Comparing performance of:
IndexOf vs Includes vs lodash
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var array = [ "turnin-notification:list", "yxSystemStoreStaff:edit", "YXSYSTEMUSERLEVEL_SELECT", "purchase-manage", "YXSYSTEMGROUPDATA_CREATE", "job:edit", "cates:list,YXSTORECATEGORY_ALL,YXSTORECATEGORY_SELECT", "compute:list", "generator:list", "YXSTORECOMBINATION_DELETE", "dict:add", "yxSystemStore:edit", "dictInfo:del", "assembly:add", "dept:list", "YXEXPRESS_SELECT", "farmer-manage:list", "yxWechatTemplate:add", "YXSTORECOMBINATION_EDIT", "view-cliam-form:list", "large-standard:list", "plan-application-file:list", "purchase-price:list", "menu:list", "rotation-manage", "shop:list", "YXSYSTEMCONFIG_SELECT", "YxWechatMenu_CREATE", "YXSTOREORDER_EDIT", "email:list", "YXSTORECOUPON_DELETE", "YXSTORECOUPONISSUE_DELETE", "yxUserRecharge:list", "YXSTORESECKILL_DELETE", "payment-account:list", "YXSTOREBARGAIN_DELETE", "YXSTOREBARGAIN_EDIT", "payment-claim:list", "YXSTORECOUPONUSER_SELECT", "dict:edit", "YXSTOREPRODUCT_DELETE", "dept:del", "YXSYSTEMGROUPDATA_ALL,YXSYSTEMGROUPDATA_SELECT", "yxSystemStore:add", "YXSTORESECKILL_EDIT", "general-rotation-scheme:list", "YXUSEREXTRACT_SELECT", "YXSTORECOMBINATION_SELECT", "YXEXPRESS_DELETE", "farmer-group-manage:list", "YXSTORECATEGORY_DELETE", "yxSystemStoreStaff:add", "YXSTOREPRODUCT_SELECT,YXSTORECATEGORY_ALL,YXSTORECATEGORY_SELECT", "annual-rotation-plan:list", "YXSTOREPRODUCT_CREATE", "storage:list", "target-manage:list", "YXSTOREPINK_SELECT", "timing:add", "customer-information:list", "job:add", "swagger:list", "output-sale-scheme:list", "YXSYSTEMCONFIG_ALL", "YXSTORECOUPON_CREATE", "roles:add", "user:add", "YxWechatMenu_ALL,YxWechatMenu_SELECT", "timing:edit", "yxUserRecharge:del", "open-lading-bill:list", "allocate-rotation:list", "YXUSERBILL_ALL,YXUSERBILL_SELECT", "YXSYSTEMUSERLEVEL_CREATE", "YXUSER_EDIT", "YXWECHATREPLY_ALL", "store:list", "rotation-plan", "yxWechatTemplate:list", "YXARTICLE_ALL,YXARTICLE_SELECT", "user:edit", "roles:edit", "YXSTORECATEGORY_EDIT", "notification-management", "create-rotation-plan:list", "logError:list,logError:detail", "YXUSER_SELECT", "dept:edit", "YXUSEREXTRACT_EDIT", "dept:add", "tools:list", "turnin-execution:list", "datax:list", "YXSYSTEMCONFIG_CREATE", "menu:del", "reward:list", "business-process", "monitor:list", "YXSTORECOUPON_EDIT", "food-category-manage:list", "draft-turnin-scheme:list", "dict:del", "YXSTOREPRODUCTREPLY_DELETE", "dict:list", "YXSTORECATEGORY_CREATE", "druid:list", "timing:list", "file:list", "YXSYSTEMGROUPDATA_DELETE", "YXSTOREORDER_SELECT", "YXSYSTEMUSERTASK_EDIT", "YXSYSTEMGROUPDATA_SELECT", "YXSTORESECKILL_SELECT", "yxSystemStore:list", "assembly:addable", "preview:list", "menu:edit", "YXSTOREBARGAIN_SELECT", "YXSTORECOUPONISSUE_SELECT", "toAssembly:form", "yxWechatTemplate:del", "dictInfo:add", "YXEXPRESS_CREATE", "purchase-base-info", "yxSystemStoreStaff:list", "YXSYSTEMUSERLEVEL_EDIT", "rotation-scheme", "YXSYSTEMUSERLEVEL_DELETE", "user:list", "admin", "ads:list", "YXSTOREPRODUCT_EDIT", "assembly:list", "rotation-execution", "user:del", "dictInfo:edit", "rotation-plan-detail:list", "max-per-mu:list", "YXSYSTEMUSERTASK_SELECT", "selling-card:list", "YXSTORECOUPON_SELECT", "yxSystemStore:del", "YXSTORECOUPONISSUE_EDIT", "yxSystemStoreStaff:del", "flow:list", "yxWechatTemplate:edit", "output-execution:list", "output-notification:list", "YXSTOREPRODUCTREPLY_SELECT", "transfer-notification:list", "log:list", "roles:list", "YXEXPRESS_EDIT", "job:del", "menu:add", "YXSYSTEMGROUPDATA_EDIT", "timing:del", "online:list", "purchase-group:list", "deal-result:list" ]
Tests:
IndexOf
array.indexOf('transfer-notification:list') !== 1
Includes
array.includes('transfer-notification:list')
lodash
_.includes(array, 'transfer-notification:list')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
IndexOf
Includes
lodash
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
It appears that we have a detailed report from a benchmarking test, including: 1. **JSON payload**: A JSON object with various keys and values related to the benchmarking test. The keys include "dict:list", "YXSTORECATEGORY_CREATE", etc., which seem to be related to system or application configuration. 2. **Individual test cases**: An array of objects representing individual test cases, each with a "Benchmark Definition" property (e.g., "array.indexOf('transfer-notification:list') !== 1") and a "Test Name" property (e.g., "IndexOf"). 3. **Latest benchmark result**: A JSON array containing the results of the latest execution, including metrics such as `ExecutionsPerSecond` for each test case. However, without more context about what these results mean or how they were obtained, I'll take a stab in the dark and ask: * What is the purpose of this report? * Is it related to performance optimization, testing, or something else? * Can you provide more information about the benchmarking framework or tools used? If you'd like me to analyze any specific part of this report or offer suggestions based on my understanding, please feel free to ask!
Related benchmarks:
IndexOf vs Includes vs lodash includes
IndexOf vs Includes vs lodash includes vs lodash indexOf
IndexOf vs Includes vs lodash includes vs manual check
IndexOf vs Includes vs lodash includes test2
IndexOf vs Includes vs lodash includes for string
Comments
Confirm delete:
Do you really want to delete benchmark?