MAD test.

This commit is contained in:
Peter Taoussanis 2012-07-05 16:48:14 +07:00
parent 3daa33c02c
commit d429ccc646
1 changed files with 8 additions and 6 deletions

View File

@ -132,12 +132,14 @@
(comment
(profile :info :Sleepy-threads
(dotimes [n 5]
(Thread/sleep 100) ; Unaccounted
(p :1ms (Thread/sleep 1))
(p :2s (Thread/sleep 2000))
(p :50ms (Thread/sleep 50))
(p :rand (Thread/sleep (if (> 0.5 (rand)) 10 500)))
(p :10ms (Thread/sleep 10))
"Result")
"Result"))
(p :hello "Hello, this is a result") ; Falls through (no *plog* context)