From f3e99a3414ab1e8f9bedcdc67ba34323671c45b1 Mon Sep 17 00:00:00 2001 From: adash Date: Sat, 26 Sep 2009 18:32:31 +0000 Subject: [PATCH] new tree microbenchmark --- Robust/src/Benchmarks/Prefetch/Tree/Tree.java | 149 ++++++++++++++++++ Robust/src/Benchmarks/Prefetch/Tree/makefile | 13 ++ 2 files changed, 162 insertions(+) create mode 100644 Robust/src/Benchmarks/Prefetch/Tree/Tree.java create mode 100644 Robust/src/Benchmarks/Prefetch/Tree/makefile diff --git a/Robust/src/Benchmarks/Prefetch/Tree/Tree.java b/Robust/src/Benchmarks/Prefetch/Tree/Tree.java new file mode 100644 index 00000000..91a65657 --- /dev/null +++ b/Robust/src/Benchmarks/Prefetch/Tree/Tree.java @@ -0,0 +1,149 @@ +public class TreeT extends Thread { + Tree[] tt; + int numTrees; + int TreeDepth; + + public TreeT() { + + } + + public static void main(String[] argv) { + TreeT t; + atomic { + t=global new TreeT(); + t.numTrees=5000; + t.TreeDepth=10; + } + t.start((128<<24)|(195<<16)|(136<<8)|162); + t.join(); + atomic { + t.exec(); + } + System.out.println("Done"); + } + + public void run () { + atomic { + tt = global new Tree[numTrees]; + for(int i =0; i