Add microbenchmarks with script for analyzing our Prefetch and other results
[IRC.git] / Robust / src / Benchmarks / Prefetch / MicroBenchmarks / Metropolis.java
1 public class Metropolis {
2   public static void main(String[] args) {
3     int N = Integer.parseInt(args[0]);
4     double kT = Double.parseDouble(args[1]);
5     StdDraw.setXscale(0, N);
6     StdDraw.setYscale(0, N);
7     State state = new State(N, 0.5);
8     while (true) {
9       state.phase(kT);
10       state.draw();
11       StdDraw.show(50);
12     }
13   }
14 }