2009-03-26から1日間の記事一覧
$ cat a.scala import scala.concurrent.ops._ import java.lang.System.{currentTimeMillis => curt} def foo(n: Int) = { (0 until n).foreach { _ => new Object } } def bench(weight: Int, ncore: Int) { val s = curt (0 until ncore).map(_ => future…