Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
For loop test
(version: 0)
Comparing performance of:
for and reduce vs for and find
Created:
5 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var pcaOutputR = [{"label":"20490","PC1":-12188.0627,"PC2":48396.0699,"PC3":-49003.5052},{"label":"20491","PC1":-82930.0451,"PC2":57083.2305,"PC3":48671.4617},{"label":"20492","PC1":-46183.644,"PC2":-30477.8429,"PC3":-9128.823},{"label":"20493","PC1":43.6251,"PC2":45764.5135,"PC3":39964.2976},{"label":"20494","PC1":-56315.0645,"PC2":-46134.52,"PC3":19834.7696},{"label":"20495","PC1":40166.9192,"PC2":-5424.6946,"PC3":20115.6475},{"label":"20496","PC1":86924.6654,"PC2":42818.3478,"PC3":16708.6601},{"label":"20497","PC1":52010.8804,"PC2":-71648.8411,"PC3":-71092.9659},{"label":"20498","PC1":-20288.2543,"PC2":-3952.8646,"PC3":-7053.3124},{"label":"20499","PC1":-31310.1081,"PC2":40454.271,"PC3":3534.3343},{"label":"20500","PC1":-8827.2672,"PC2":-86495.943,"PC3":-2091.6988},{"label":"20501","PC1":-19756.8037,"PC2":18951.1961,"PC3":-47423.506},{"label":"20502","PC1":-28511.711,"PC2":6322.6739,"PC3":-685.5941},{"label":"20503","PC1":-30043.5241,"PC2":-159693.0675,"PC3":-63791.8482},{"label":"20504","PC1":39617.8971,"PC2":-84441.5049,"PC3":-22166.0908},{"label":"20505","PC1":-56430.3323,"PC2":62423.7355,"PC3":53163.6517},{"label":"20506","PC1":-35516.0496,"PC2":-22419.5063,"PC3":-85244.8226},{"label":"20507","PC1":-25063.5429,"PC2":-7429.3068,"PC3":22988.9081},{"label":"20508","PC1":166483.5697,"PC2":115279.0903,"PC3":8392.663},{"label":"20509","PC1":-24510.8826,"PC2":46115.4786,"PC3":32156.4442},{"label":"20510","PC1":-59046.0812,"PC2":-133.9186,"PC3":15705.0432},{"label":"20511","PC1":-38244.4857,"PC2":-249.4885,"PC3":13731.9875},{"label":"20512","PC1":-56217.4845,"PC2":-6958.5096,"PC3":72527.1509},{"label":"20513","PC1":2354.736,"PC2":55496.1587,"PC3":-156.1892},{"label":"20514","PC1":236560.0929,"PC2":-84629.5167,"PC3":35119.5652},{"label":"20515","PC1":-49704.0598,"PC2":-4321.7839,"PC3":-22341.3852},{"label":"20516","PC1":-41272.7042,"PC2":23152.8386,"PC3":-35002.2506},{"label":"20517","PC1":-52365.1494,"PC2":9183.4236,"PC3":21365.8386},{"label":"20518","PC1":40816.6957,"PC2":119950.554,"PC3":-94466.2353},{"label":"20519","PC1":-19000.2624,"PC2":2411.8659,"PC3":143190.5041},{"label":"20520","PC1":-41203.2045,"PC2":27650.7925,"PC3":-51413.3391},{"label":"20521","PC1":-42824.2153,"PC2":69110.6051,"PC3":-9788.1096},{"label":"20522","PC1":157007.5891,"PC2":-21852.6835,"PC3":-74839.5418},{"label":"20523","PC1":-35460.2908,"PC2":31173.2909,"PC3":-54046.908},{"label":"20524","PC1":-35380.6057,"PC2":-65229.4677,"PC3":-35118.0248},{"label":"20525","PC1":173421.4967,"PC2":32608.0234,"PC3":63592.0458},{"label":"20526","PC1":-5613.2442,"PC2":-113167.6237,"PC3":53763.6388},{"label":"20527","PC1":-13711.6801,"PC2":-114027.4461,"PC3":-33456.177},{"label":"20528","PC1":17205.9765,"PC2":2918.0908,"PC3":117198.3227},{"label":"20529","PC1":-10499.2051,"PC2":95388.1189,"PC3":-103991.2557},{"label":"20530","PC1":-34196.1788,"PC2":-23963.8394,"PC3":70576.649}]; var sampleData = [{"sample_id":"20490","sample_barcode":"001-015_A_C1D1","timepoint":"A_C1D1","subject_id":"1232","gender":"F","suid":"001-015","age":null,"vital_status":null,"subject_study_mapping_id":"1250","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20491","sample_barcode":"001-015_A_C1D8","timepoint":"A_C1D8","subject_id":"1232","gender":"F","suid":"001-015","age":null,"vital_status":null,"subject_study_mapping_id":"1250","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20492","sample_barcode":"001-015_A_C2D1","timepoint":"A_C2D1","subject_id":"1232","gender":"F","suid":"001-015","age":null,"vital_status":null,"subject_study_mapping_id":"1250","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20493","sample_barcode":"001-019_A_C1D1","timepoint":"A_C1D1","subject_id":"1236","gender":null,"suid":"001-019","age":null,"vital_status":null,"subject_study_mapping_id":"1254","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20494","sample_barcode":"001-019_A_C1D8","timepoint":"A_C1D8","subject_id":"1236","gender":null,"suid":"001-019","age":null,"vital_status":null,"subject_study_mapping_id":"1254","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20495","sample_barcode":"001-019_A_C2D1","timepoint":"A_C2D1","subject_id":"1236","gender":null,"suid":"001-019","age":null,"vital_status":null,"subject_study_mapping_id":"1254","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20496","sample_barcode":"001-019_A_C3D1","timepoint":"A_C3D1","subject_id":"1236","gender":null,"suid":"001-019","age":null,"vital_status":null,"subject_study_mapping_id":"1254","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20497","sample_barcode":"002-006_A_C1D1","timepoint":"A_C1D1","subject_id":"1233","gender":null,"suid":"002-006","age":null,"vital_status":null,"subject_study_mapping_id":"1251","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20498","sample_barcode":"002-006_A_C1D8","timepoint":"A_C1D8","subject_id":"1233","gender":null,"suid":"002-006","age":null,"vital_status":null,"subject_study_mapping_id":"1251","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20499","sample_barcode":"002-006_A_C2D1","timepoint":"A_C2D1","subject_id":"1233","gender":null,"suid":"002-006","age":null,"vital_status":null,"subject_study_mapping_id":"1251","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20500","sample_barcode":"002-006_A_C3D1","timepoint":"A_C3D1","subject_id":"1233","gender":null,"suid":"002-006","age":null,"vital_status":null,"subject_study_mapping_id":"1251","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20501","sample_barcode":"002-007_A_C1D1","timepoint":"A_C1D1","subject_id":"1234","gender":"M","suid":"002-007","age":null,"vital_status":null,"subject_study_mapping_id":"1252","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20502","sample_barcode":"002-007_A_C1D8","timepoint":"A_C1D8","subject_id":"1234","gender":"M","suid":"002-007","age":null,"vital_status":null,"subject_study_mapping_id":"1252","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20503","sample_barcode":"002-007_A_C2D1","timepoint":"A_C2D1","subject_id":"1234","gender":"M","suid":"002-007","age":null,"vital_status":null,"subject_study_mapping_id":"1252","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20504","sample_barcode":"002-007_A_C3D1","timepoint":"A_C3D1","subject_id":"1234","gender":"M","suid":"002-007","age":null,"vital_status":null,"subject_study_mapping_id":"1252","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20505","sample_barcode":"002-012_A_C1D1","timepoint":"A_C1D1","subject_id":"1237","gender":"F","suid":"002-012","age":null,"vital_status":null,"subject_study_mapping_id":"1255","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20506","sample_barcode":"002-012_A_C2D1","timepoint":"A_C2D1","subject_id":"1237","gender":"F","suid":"002-012","age":null,"vital_status":null,"subject_study_mapping_id":"1255","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20507","sample_barcode":"002-012_A_C3D1","timepoint":"A_C3D1","subject_id":"1237","gender":"F","suid":"002-012","age":null,"vital_status":null,"subject_study_mapping_id":"1255","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20508","sample_barcode":"002-015_B_C1D1","timepoint":"B_C1D1","subject_id":"1241","gender":"M","suid":"002-015","age":null,"vital_status":null,"subject_study_mapping_id":"1259","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20509","sample_barcode":"002-015_B_C1D8","timepoint":"B_C1D8","subject_id":"1241","gender":"M","suid":"002-015","age":null,"vital_status":null,"subject_study_mapping_id":"1259","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20510","sample_barcode":"002-015_B_C2D1","timepoint":"B_C2D1","subject_id":"1241","gender":"M","suid":"002-015","age":null,"vital_status":null,"subject_study_mapping_id":"1259","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20511","sample_barcode":"003-003_A_C1D1","timepoint":"A_C1D1","subject_id":"1235","gender":"M","suid":"003-003","age":null,"vital_status":null,"subject_study_mapping_id":"1253","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20512","sample_barcode":"003-003_A_C1D8","timepoint":"A_C1D8","subject_id":"1235","gender":"M","suid":"003-003","age":null,"vital_status":null,"subject_study_mapping_id":"1253","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20513","sample_barcode":"003-003_A_C2D1","timepoint":"A_C2D1","subject_id":"1235","gender":"M","suid":"003-003","age":null,"vital_status":null,"subject_study_mapping_id":"1253","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20514","sample_barcode":"003-003_A_C3D1","timepoint":"A_C3D1","subject_id":"1235","gender":"M","suid":"003-003","age":null,"vital_status":null,"subject_study_mapping_id":"1253","study_id":"3","study_phase_arm_id":"21","cohort_group":null,"phase":"1/1b","arm":"A","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20515","sample_barcode":"003-004_B_C1D1","timepoint":"B_C1D1","subject_id":"1238","gender":"M","suid":"003-004","age":null,"vital_status":null,"subject_study_mapping_id":"1256","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20516","sample_barcode":"003-004_B_C1D8","timepoint":"B_C1D8","subject_id":"1238","gender":"M","suid":"003-004","age":null,"vital_status":null,"subject_study_mapping_id":"1256","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20517","sample_barcode":"003-004_B_C2D1","timepoint":"B_C2D1","subject_id":"1238","gender":"M","suid":"003-004","age":null,"vital_status":null,"subject_study_mapping_id":"1256","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20518","sample_barcode":"003-004_B_C3D1","timepoint":"B_C3D1","subject_id":"1238","gender":"M","suid":"003-004","age":null,"vital_status":null,"subject_study_mapping_id":"1256","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20519","sample_barcode":"006-005_B_C1D1","timepoint":"B_C1D1","subject_id":"1239","gender":"M","suid":"006-005","age":null,"vital_status":null,"subject_study_mapping_id":"1257","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20520","sample_barcode":"006-005_B_C1D8","timepoint":"B_C1D8","subject_id":"1239","gender":"M","suid":"006-005","age":null,"vital_status":null,"subject_study_mapping_id":"1257","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20521","sample_barcode":"006-005_B_C2D1","timepoint":"B_C2D1","subject_id":"1239","gender":"M","suid":"006-005","age":null,"vital_status":null,"subject_study_mapping_id":"1257","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20522","sample_barcode":"006-005_B_C3D1","timepoint":"B_C3D1","subject_id":"1239","gender":"M","suid":"006-005","age":null,"vital_status":null,"subject_study_mapping_id":"1257","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20523","sample_barcode":"006-007_B_C1D1","timepoint":"B_C1D1","subject_id":"1242","gender":"M","suid":"006-007","age":null,"vital_status":null,"subject_study_mapping_id":"1260","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20524","sample_barcode":"006-007_B_TT","timepoint":"B_TT","subject_id":"1242","gender":"M","suid":"006-007","age":null,"vital_status":null,"subject_study_mapping_id":"1260","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20525","sample_barcode":"006-007_B_C1D8","timepoint":"B_C1D8","subject_id":"1242","gender":"M","suid":"006-007","age":null,"vital_status":null,"subject_study_mapping_id":"1260","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20526","sample_barcode":"006-007_B_C2D1","timepoint":"B_C2D1","subject_id":"1242","gender":"M","suid":"006-007","age":null,"vital_status":null,"subject_study_mapping_id":"1260","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20527","sample_barcode":"007-005_B_C1D1","timepoint":"B_C1D1","subject_id":"1240","gender":"M","suid":"007-005","age":null,"vital_status":null,"subject_study_mapping_id":"1258","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20528","sample_barcode":"007-005_B_C1D8","timepoint":"B_C1D8","subject_id":"1240","gender":"M","suid":"007-005","age":null,"vital_status":null,"subject_study_mapping_id":"1258","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20529","sample_barcode":"007-005_B_C2D1","timepoint":"B_C2D1","subject_id":"1240","gender":"M","suid":"007-005","age":null,"vital_status":null,"subject_study_mapping_id":"1258","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null},{"sample_id":"20530","sample_barcode":"007-005_B_C3D1","timepoint":"B_C3D1","subject_id":"1240","gender":"M","suid":"007-005","age":null,"vital_status":null,"subject_study_mapping_id":"1258","study_id":"3","study_phase_arm_id":"22","cohort_group":null,"phase":"1/1b","arm":"B","diagnosis_id":null,"disease_name":null,"disease_detail":null,"disease_stage":null,"screen_detail":null,"prior_treatment":null,"response_id":null,"response":null,"response_group":null,"response_duration_in_months":null,"response_survival_status":null,"response_survival_in_months":null,"treatment_id":null,"treatment":null,"treatment_detail_id":null,"days_on_treatment":null}];
Tests:
for and reduce
let sampleDataObject = sampleData.reduce(function (acc, curr) { acc[curr.sample_id] = curr; return acc; }, {}); for (let item of pcaOutputR) { let matchedSample = sampleDataObject[item.label] || false; if (matchedSample) { Object.assign(item, matchedSample); } }
for and find
for (let item of pcaOutputR) { let matchedSample = sampleData.find(function(a) { a.sample_id === item.label}); if (matchedSample) { Object.assign(item, matchedSample); } }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
for and reduce
for and find
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):
Based on the provided input data, I will provide an answer. It appears that we have two benchmark test cases: **Individual Test Cases** * **"for and reduce"`: This test case involves reducing an array of objects using the `reduce` method, and then iterating over a new array (`pcaOutputR`) to assign values from the reduced object to each item in the new array. * **"for and find"`: This test case involves finding an object with a specific `sample_id` property in the original `sampleData` array using the `find` method, and then iterating over a new array (`pcaOutputR`) to assign values from the found object to each item in the new array. **Latest Benchmark Result** The latest benchmark result shows that the "for and find" test case performed better than the "for and reduce" test case, with an execution time of 34470.2890625 executions per second compared to 27039.41015625 executions per second for the "for and reduce" test case. Please note that this analysis is based on the provided input data and may not be representative of the entire benchmarking scenario.
Related benchmarks:
Loop perf
Quotes vs no quotes
Filter and return property values of an array of objects
_.forEach() vs _.each() vs [].forEach()
_.filter() vs [].filter()
Comments
Confirm delete:
Do you really want to delete benchmark?