Skip to content

Commit

Permalink
bench: Put the spawn bench back on libgreen
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Mar 26, 2014
1 parent 0908ffa commit e12fda1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/test/bench/silly-test-spawn.rs
Expand Up @@ -8,7 +8,19 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// Useful smoketest for scheduler performance.
// This is (hopefully) a quick test to get a good idea about spawning
// performance in libgreen. Note that this uses the rustuv event loop rather
// than the basic event loop in order to get a better real world idea about the
// performance of a task spawn.

extern crate green;
extern crate rustuv;

#[start]
fn start(argc: int, argv: **u8) -> int {
green::start(argc, argv, rustuv::event_loop, main)
}

fn main() {
for _ in range(1, 100_000) {
spawn(proc() {})
Expand Down

9 comments on commit e12fda1

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at alexcrichton@e12fda1

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alexcrichton/rust/spawn-deadlock = e12fda1 into auto

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alexcrichton/rust/spawn-deadlock = e12fda1 merged ok, testing candidate = 15f92623

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at alexcrichton@e12fda1

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alexcrichton/rust/spawn-deadlock = e12fda1 into auto

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alexcrichton/rust/spawn-deadlock = e12fda1 merged ok, testing candidate = 3b04fba

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on e12fda1 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 3b04fba

Please sign in to comment.