Created
June 9, 2018 04:36
-
-
Save manofstick/b7544e94ebae75ff0c29290056512558 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
module Program | |
open Perf | |
open System | |
open System.Diagnostics | |
module Tortoise = | |
let test () = | |
let today = DateTime.Now | |
let tomorrow = today.AddDays 1.0 | |
let mutable result = 0 | |
for i = 1 to 10000000 do | |
result <- result + if today = tomorrow then 1 else 0 | |
[<EntryPoint>] | |
let main argv = | |
printfn "%s" Id.Name | |
for __ = 1 to 5 do | |
let sw = Stopwatch.StartNew () | |
for i = 1 to 10 do | |
Tortoise.test () | |
printfn "%A" sw.ElapsedMilliseconds | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment