Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
TR for of VS foreach a
(version: 1)
TR for of VS foreach
Comparing performance of:
for of vs forEach vs _forEach
Created:
5 years ago
by:
Registered User
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 data = [ { "V20926": "Středočeský", "V20925": "@DTM_46032", "V20928": "@DTM_46033", "iproc_case_status": null, "iproc_name": "t3f-1141 DT multi", "iproc_description": null, "iproc_inst_owner_user": "Fanda Josef", "iproc_actual_start_date": "2020-10-06T06:40:59.000Z", "iproc_due_date_finish": null, "iproc_priority": "M", "iproc_summary": "t3f-1141 DT multi: Fanda Josef, \nt3f-1141 DT multiÚkol - url v podminkach: Fanda Josef", "iproc_actual_finish_date": null, "IPROC_ID": 13849, "CS_NAME_CS": null, "CS_NAME_EN": null, "CS_NAME_SK": null }, { "V20926": null, "V20925": null, "V20928": null, "iproc_case_status": null, "iproc_name": "t3f-1141 DT multi", "iproc_description": null, "iproc_inst_owner_user": "Fanda Josef", "iproc_actual_start_date": "2020-10-05T13:32:50.000Z", "iproc_due_date_finish": null, "iproc_priority": "M", "iproc_summary": "t3f-1141 DT multi: Fanda Josef, \nt3f-1141 DT multiÚkol - url v podminkach: Fanda Josef", "iproc_actual_finish_date": null, "IPROC_ID": 13848, "CS_NAME_CS": null, "CS_NAME_EN": null, "CS_NAME_SK": null }, { "V20926": null, "V20925": null, "V20928": null, "iproc_case_status": null, "iproc_name": "t3f-1141 DT multi", "iproc_description": null, "iproc_inst_owner_user": "Fanda Josef", "iproc_actual_start_date": "2020-10-05T12:07:04.000Z", "iproc_due_date_finish": null, "iproc_priority": "M", "iproc_summary": "t3f-1141 DT multi: Fanda Josef, \nt3f-1141 DT multiÚkol - url v podminkach: Fanda Josef", "iproc_actual_finish_date": null, "IPROC_ID": 13847, "CS_NAME_CS": null, "CS_NAME_EN": null, "CS_NAME_SK": null }, { "V20926": null, "V20925": null, "V20928": null, "iproc_case_status": null, "iproc_name": "t3f-1141 DT multi", "iproc_description": null, "iproc_inst_owner_user": "Fanda Josef", "iproc_actual_start_date": "2020-10-05T11:46:14.000Z", "iproc_due_date_finish": null, "iproc_priority": "M", "iproc_summary": "t3f-1141 DT multi: Fanda Josef, \nt3f-1141 DT multiÚkol - url v podminkach: Fanda Josef", "iproc_actual_finish_date": null, "IPROC_ID": 13846, "CS_NAME_CS": null, "CS_NAME_EN": null, "CS_NAME_SK": null }, { "V20926": "Jihočeskýyy", "V20925": null, "V20928": "1", "iproc_case_status": null, "iproc_name": "t3f-1141 DT multi", "iproc_description": null, "iproc_inst_owner_user": "Fanda Josef", "iproc_actual_start_date": "2020-10-05T07:35:30.000Z", "iproc_due_date_finish": null, "iproc_priority": "M", "iproc_summary": "t3f-1141 DT multi: Fanda Josef", "iproc_actual_finish_date": null, "IPROC_ID": 13845, "CS_NAME_CS": null, "CS_NAME_EN": null, "CS_NAME_SK": null }, { "V20926": null, "V20925": null, "V20928": null, "iproc_case_status": null, "iproc_name": "t3f-1141 DT multi", "iproc_description": null, "iproc_inst_owner_user": "Fanda Josef", "iproc_actual_start_date": "2020-10-02T14:16:13.000Z", "iproc_due_date_finish": null, "iproc_priority": "M", "iproc_summary": "t3f-1141 DT multi: Fanda Josef", "iproc_actual_finish_date": null, "IPROC_ID": 13844, "CS_NAME_CS": null, "CS_NAME_EN": null, "CS_NAME_SK": null }, { "V20926": null, "V20925": null, "V20928": null, "iproc_case_status": null, "iproc_name": "t3f-1141 DT multi", "iproc_description": null, "iproc_inst_owner_user": "Fanda Josef", "iproc_actual_start_date": "2020-10-02T14:14:22.000Z", "iproc_due_date_finish": null, "iproc_priority": "M", "iproc_summary": null, "iproc_actual_finish_date": null, "IPROC_ID": 13843, "CS_NAME_CS": null, "CS_NAME_EN": null, "CS_NAME_SK": null } ]
Tests:
for of
for (var d of data) { }
forEach
data.forEach(d => { })
_forEach
_(data).forEach(function(n) { });
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
for of
forEach
_forEach
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):
To provide an answer, I need to analyze the provided JSON data and determine which of the individual test cases produce the highest number of executions per second. Based on the latest benchmark result, the order from highest to lowest is: 1. `_forEach` (TestName: "_forEach") - 3,466,511.5 ExecutionsPerSecond 2. `for of` (TestName: "for of") - 13,090,040.0 ExecutionsPerSecond 3. `forEach` (TestName: "forEach") - 14,161,423.0 ExecutionsPerSecond The results suggest that the `_forEach` test case produces the most executions per second, followed closely by the `for of` and then the `forEach` tests. Please provide more context or clarify which specific metrics you would like to use for comparison.
Related benchmarks:
testing performance for dates
dsdsdsdsdsdsds
for vs foreach vs some vs for..of vs for..in 3
iso date string sort comparison
ISO 8601 parsing
Comments
Confirm delete:
Do you really want to delete benchmark?