Skip to content

Commit 3b04fba

Browse files
committed
auto merge of #13136 : alexcrichton/rust/spawn-deadlock, r=brson
This bench is meant to exercise libgreen, not libnative. It recently caused the auto-linux-32-nopt-t bot to fail as no output was produced for an hour.
2 parents 25e5238 + e12fda1 commit 3b04fba

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/test/bench/silly-test-spawn.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// Useful smoketest for scheduler performance.
11+
// This is (hopefully) a quick test to get a good idea about spawning
12+
// performance in libgreen. Note that this uses the rustuv event loop rather
13+
// than the basic event loop in order to get a better real world idea about the
14+
// performance of a task spawn.
15+
16+
extern crate green;
17+
extern crate rustuv;
18+
19+
#[start]
20+
fn start(argc: int, argv: **u8) -> int {
21+
green::start(argc, argv, rustuv::event_loop, main)
22+
}
23+
1224
fn main() {
1325
for _ in range(1, 100_000) {
1426
spawn(proc() {})

0 commit comments

Comments
 (0)