Skip to content

Commit

Permalink
Update parallelsForLoop.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecilsingh authored Sep 5, 2024
1 parent 09b0d43 commit 848f075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parallelCompute/parallelsForLoop.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ createForLoop <- function(i){
###Capture Results###

#Non-parallel code execution
#lapply iterates over the while loop
#lapply iterates over the FOR loop
#Runs the createLoop function above 1000 times
system.time(nonParallelFunc <- lapply(1:10000, createForLoop))

Expand Down

0 comments on commit 848f075

Please sign in to comment.