diff --git a/src/test/bench/shootout-spectralnorm.rs b/src/test/bench/shootout-spectralnorm.rs index f0cdc020dc37..e63c78d50af7 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>>, out: Arc>>, 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();