summary refs log tree commit diff stats
path: root/tests/gc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
committerAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
commita274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 (patch)
tree95dc5bf7fe3716a3ab266f78094fccce38c94ccf /tests/gc
parentd0772feb08baaea12bfdad0a7c20a41733f977bd (diff)
downloadNim-a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82.tar.gz
got rid of 'accept' dir in the tests
Diffstat (limited to 'tests/gc')
-rwxr-xr-xtests/gc/gcbench.nim6
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)