An arbitrary number. I've done no measurements but it's intended to overcome
the effects of tasks randomly being scheduled to threads and no work stealing.
If scheduler threads == 1 then we just use a single test task.
fn run_test_task(config: common::config,
procsrv_chan: procsrv::reqchan,
testfile: str) {
- test::configure_test_task();
let procsrv = procsrv::from_chan(procsrv_chan);
let cx = {config: config, procsrv: procsrv};
}
}
-fn get_concurrency() -> uint { rustrt::sched_threads() }
+fn get_concurrency() -> uint {
+ let threads = rustrt::sched_threads();
+ if threads == 1u { 1u }
+ else { threads * 4u }
+}
fn filter_tests(opts: test_opts,
tests: [test_desc]) -> [test_desc] {