Skip to content

bench: Put the spawn bench back on libgreen #13136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/test/bench/silly-test-spawn.rs
Original file line number Diff line number Diff line change
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