Skip to content

Commit

Permalink
reduce benchmark count
Browse files Browse the repository at this point in the history
- the 10M benchmark test accounts for 50% (5s) of datetime's
  unittest runtime
  • Loading branch information
MartinNowak committed Jun 7, 2012
1 parent 1480c79 commit ec9b7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/datetime.d
Expand Up @@ -30896,7 +30896,7 @@ int a;
void f0() {}
void f1() {auto b = a;}
void f2() {auto b = to!(string)(a);}
auto r = benchmark!(f0, f1, f2)(10_000_000);
auto r = benchmark!(f0, f1, f2)(10_000);
writefln("Milliseconds to call fun[0] n times: %s", r[0].to!("msecs", int));
--------------------
+/
Expand Down Expand Up @@ -30947,7 +30947,7 @@ version(testStdDateTime) unittest
void f0() {}
void f1() {auto b = a;}
void f2() {auto b = to!(string)(a);}
auto r = benchmark!(f0, f1, f2)(10_000_000);
auto r = benchmark!(f0, f1, f2)(10_000);
writefln("Milliseconds to call fun[0] n times: %s", r[0].to!("msecs", int)());
}

Expand Down

0 comments on commit ec9b7f7

Please sign in to comment.