Created
May 6, 2017 12:42
-
-
Save anonymous/972ffe79457aaa1b8672b4d7babc02bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| cfflush(interval=16); | |
| start = getTickCount(); | |
| trackIt("Begin Test"); | |
| ["first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth"].each(function(value, index, array){ | |
| trackIt("(#value#) start"); | |
| var delay = (array.len() - index) * 1000; | |
| trackIt("(#value#) wating for #delay#ms"); | |
| sleep(delay); | |
| trackIt("(#value#) end"); | |
| }, true); | |
| trackIt("Test Complete"); | |
| end = getTickCount(); | |
| writeOutput("Total execution time: #end-start#ms<br>"); | |
| function trackIt(what){ | |
| var when = dateTimeFormat(now(), "HH:MM:SS.LLL"); | |
| var message = "(#when#) #what#"; | |
| writeOutput("#message#<br>"); | |
| writeLog(file="arrayEachParallel", text=message); | |
| } | |
| </cfscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Severity","ThreadID","Date","Time","Application","Message" | |
| "INFO","Thread-29","05/06/2017","13:37:33","","(13:05:33.103) Begin Test" | |
| "INFO","pool-1-thread-1","05/06/2017","13:37:33","","(13:05:33.180) (first) start" | |
| "INFO","pool-1-thread-2","05/06/2017","13:37:33","","(13:05:33.180) (second) start" | |
| "INFO","pool-1-thread-3","05/06/2017","13:37:33","","(13:05:33.182) (third) start" | |
| "INFO","pool-1-thread-1","05/06/2017","13:37:33","","(13:05:33.183) (first) wating for 9000ms" | |
| "INFO","pool-1-thread-3","05/06/2017","13:37:33","","(13:05:33.184) (third) wating for 7000ms" | |
| "INFO","pool-1-thread-2","05/06/2017","13:37:33","","(13:05:33.184) (second) wating for 8000ms" | |
| "INFO","pool-1-thread-4","05/06/2017","13:37:33","","(13:05:33.187) (fourth) start" | |
| "INFO","pool-1-thread-5","05/06/2017","13:37:33","","(13:05:33.187) (fifth) start" | |
| "INFO","pool-1-thread-4","05/06/2017","13:37:33","","(13:05:33.188) (fourth) wating for 6000ms" | |
| "INFO","pool-1-thread-6","05/06/2017","13:37:33","","(13:05:33.188) (sixth) start" | |
| "INFO","pool-1-thread-7","05/06/2017","13:37:33","","(13:05:33.189) (seventh) start" | |
| "INFO","pool-1-thread-5","05/06/2017","13:37:33","","(13:05:33.189) (fifth) wating for 5000ms" | |
| "INFO","pool-1-thread-6","05/06/2017","13:37:33","","(13:05:33.189) (sixth) wating for 4000ms" | |
| "INFO","pool-1-thread-7","05/06/2017","13:37:33","","(13:05:33.190) (seventh) wating for 3000ms" | |
| "INFO","pool-1-thread-8","05/06/2017","13:37:33","","(13:05:33.190) (eighth) start" | |
| "INFO","pool-1-thread-9","05/06/2017","13:37:33","","(13:05:33.190) (ninth) start" | |
| "INFO","pool-1-thread-10","05/06/2017","13:37:33","","(13:05:33.190) (tenth) start" | |
| "INFO","pool-1-thread-9","05/06/2017","13:37:33","","(13:05:33.194) (ninth) wating for 1000ms" | |
| "INFO","pool-1-thread-10","05/06/2017","13:37:33","","(13:05:33.194) (tenth) wating for 0ms" | |
| "INFO","pool-1-thread-8","05/06/2017","13:37:33","","(13:05:33.194) (eighth) wating for 2000ms" | |
| "INFO","pool-1-thread-10","05/06/2017","13:37:33","","(13:05:33.195) (tenth) end" | |
| "INFO","pool-1-thread-9","05/06/2017","13:37:34","","(13:05:34.196) (ninth) end" | |
| "INFO","pool-1-thread-8","05/06/2017","13:37:35","","(13:05:35.195) (eighth) end" | |
| "INFO","pool-1-thread-7","05/06/2017","13:37:36","","(13:05:36.190) (seventh) end" | |
| "INFO","pool-1-thread-6","05/06/2017","13:37:37","","(13:05:37.191) (sixth) end" | |
| "INFO","pool-1-thread-5","05/06/2017","13:37:38","","(13:05:38.190) (fifth) end" | |
| "INFO","pool-1-thread-4","05/06/2017","13:37:39","","(13:05:39.189) (fourth) end" | |
| "INFO","pool-1-thread-3","05/06/2017","13:37:40","","(13:05:40.187) (third) end" | |
| "INFO","pool-1-thread-2","05/06/2017","13:37:41","","(13:05:41.188) (second) end" | |
| "INFO","pool-1-thread-1","05/06/2017","13:37:42","","(13:05:42.186) (first) end" | |
| "INFO","Thread-29","05/06/2017","13:37:42","","(13:05:42.195) Test Complete" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (13:05:33.103) Begin Test | |
| (13:05:33.180) (first) start | |
| (13:05:33.183) (first) wating for 9000ms | |
| (13:05:42.186) (first) end | |
| (13:05:33.180) (second) start | |
| (13:05:33.184) (second) wating for 8000ms | |
| (13:05:41.188) (second) end | |
| (13:05:33.182) (third) start | |
| (13:05:33.184) (third) wating for 7000ms | |
| (13:05:40.187) (third) end | |
| (13:05:33.187) (fourth) start | |
| (13:05:33.188) (fourth) wating for 6000ms | |
| (13:05:39.189) (fourth) end | |
| (13:05:33.187) (fifth) start | |
| (13:05:33.189) (fifth) wating for 5000ms | |
| (13:05:38.190) (fifth) end | |
| (13:05:33.188) (sixth) start | |
| (13:05:33.189) (sixth) wating for 4000ms | |
| (13:05:37.191) (sixth) end | |
| (13:05:33.189) (seventh) start | |
| (13:05:33.190) (seventh) wating for 3000ms | |
| (13:05:36.190) (seventh) end | |
| (13:05:33.190) (eighth) start | |
| (13:05:33.194) (eighth) wating for 2000ms | |
| (13:05:35.195) (eighth) end | |
| (13:05:33.190) (ninth) start | |
| (13:05:33.194) (ninth) wating for 1000ms | |
| (13:05:34.196) (ninth) end | |
| (13:05:33.190) (tenth) start | |
| (13:05:33.194) (tenth) wating for 0ms | |
| (13:05:33.195) (tenth) end | |
| (13:05:42.195) Test Complete | |
| Total execution time: 9098ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment