Files
pulsing-server/test.fsx
2021-02-17 19:07:25 +00:00

18 lines
344 B
Plaintext

open System.Net
open System.Diagnostics
let timer = new Stopwatch()
timer.Restart()
[ for i in 1 .. 1000 do
yield
async {
let w = new WebClient()
return w.DownloadString("http://localhost:5000/")
} ]
|> Async.Parallel
|> Async.RunSynchronously
timer.Stop()
printfn "%+A" timer.ElapsedMilliseconds