about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/bench/shootout-spectralnorm.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/bench/shootout-spectralnorm.rs b/src/test/bench/shootout-spectralnorm.rs
index f0cdc020dc3..e63c78d50af 100644
--- a/src/test/bench/shootout-spectralnorm.rs
+++ b/src/test/bench/shootout-spectralnorm.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(phase)]
+#[phase(syntax)] extern crate green;
 extern crate sync;
 
 use std::from_str::FromStr;
@@ -16,6 +18,8 @@ use std::cmp::min;
 use std::os;
 use sync::{Arc, RWLock};
 
+green_start!(main)
+
 fn A(i: uint, j: uint) -> f64 {
     ((i + j) * (i + j + 1) / 2 + i + 1) as f64
 }
@@ -38,7 +42,7 @@ fn mult(v: Arc<RWLock<Vec<f64>>>, out: Arc<RWLock<Vec<f64>>>,
     let (tx, rx) = channel();
 
     let len = out.read().len();
-    let chunk = len / 100 + 1;
+    let chunk = len / 20 + 1;
     for chk in count(0, chunk) {
         if chk >= len {break;}
         let tx = tx.clone();