diff options
author | Araq <rumpf_a@web.de> | 2011-11-19 15:45:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-19 15:45:51 +0100 |
commit | a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 (patch) | |
tree | 95dc5bf7fe3716a3ab266f78094fccce38c94ccf /tests/gc | |
parent | d0772feb08baaea12bfdad0a7c20a41733f977bd (diff) | |
download | Nim-a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82.tar.gz |
got rid of 'accept' dir in the tests
Diffstat (limited to 'tests/gc')
-rwxr-xr-x | tests/gc/gcbench.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/gc/gcbench.nim b/tests/gc/gcbench.nim index 66164a9e9..253b74805 100755 --- a/tests/gc/gcbench.nim +++ b/tests/gc/gcbench.nim @@ -100,13 +100,12 @@ proc PrintDiagnostics() = proc TimeConstruction(depth: int) = var root, tempTree: PNode - t: int iNumIters: int iNumIters = NumIters(depth) echo("Creating " & $iNumIters & " trees of depth " & $depth) - t = epochTime() + var t = epochTime() for i in 0..iNumIters-1: new(tempTree) Populate(depth, tempTree) @@ -124,13 +123,12 @@ type proc main() = var root, longLivedTree, tempTree: PNode - t: int myarray: tMyArray echo("Garbage Collector Test") echo(" Stretching memory with a binary tree of depth " & $kStretchTreeDepth) PrintDiagnostics() - t = epochTime() + var t = epochTime() # Stretch the memory space quickly tempTree = MakeTree(kStretchTreeDepth) |