about summary refs log tree commit diff
path: root/src/test/bench/shootout-threadring.rs
AgeCommit message (Collapse)AuthorLines
2016-01-29Remove src/test/benchBrian Anderson-78/+0
I don't believe these test cases have served any purpose in years. The shootout benchmarks are now upstreamed. A new benchmark suite should rather be maintained out of tree.
2015-02-17rollup merge of #22435: aturon/final-stab-threadAlex Crichton-3/+3
Conflicts: src/test/bench/rt-messaging-ping-pong.rs src/test/bench/rt-parfib.rs src/test/bench/task-perf-spawnalot.rs
2015-02-17Fallout from stabilizationAaron Turon-3/+3
2015-02-16Replace some uses of deprecated os functionsSimonas Kazlauskas-3/+3
This commit mostly replaces some of the uses of os::args with env::args.
2015-02-13Cleanup getenv from tests and benchmarksSimonas Kazlauskas-1/+1
2015-01-30std: Stabilize FromStr and parseAlex Crichton-2/+2
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes #15138
2015-01-11fix shootout-threadring.rsGuillaume Pinot-7/+7
Without joining the threads, the program can finish before the end of the trip of the token.
2015-01-08bench: fix a few compiler warningsTshepang Lekhonkhobe-2/+2
2015-01-06Fallout from stabilizationAaron Turon-2/+2
2015-01-03Remove deprecated functionalityAlex Crichton-3/+2
This removes a large array of deprecated functionality, regardless of how recently it was deprecated. The purpose of this commit is to clean out the standard libraries and compiler for the upcoming alpha release. Some notable compiler changes were to enable warnings for all now-deprecated command line arguments (previously the deprecated versions were silently accepted) as well as removing deriving(Zero) entirely (the trait was removed). The distribution no longer contains the libtime or libregex_macros crates. Both of these have been deprecated for some time and are available externally.
2015-01-02Rollup test fixes and rebase conflictsAlex Crichton-1/+1
2015-01-02std: Stabilize the prelude moduleAlex Crichton-2/+6
This commit is an implementation of [RFC 503][rfc] which is a stabilization story for the prelude. Most of the RFC was directly applied, removing reexports. Some reexports are kept around, however: * `range` remains until range syntax has landed to reduce churn. * `Path` and `GenericPath` remain until path reform lands. This is done to prevent many imports of `GenericPath` which will soon be removed. * All `io` traits remain until I/O reform lands so imports can be rewritten all at once to `std::io::prelude::*`. This is a breaking change because many prelude reexports have been removed, and the RFC can be consulted for the exact list of removed reexports, as well as to find the locations of where to import them. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md [breaking-change] Closes #20068
2014-12-14Mostly rote conversion of `proc()` to `move||` (and occasionally `Thunk::new`)Niko Matsakis-2/+2
2014-10-01Remove all use of librustuvAaron Turon-4/+0
2014-07-04Relicense shootout-threadring.rsGuillaume Pinot-8/+38
Everyone agreed. Related to #14248, close #15328
2014-06-09Use phase(plugin) in testsKeegan McAllister-1/+1
2014-05-22libcore: Remove all uses of `~str` from `libcore`.Patrick Walton-2/+4
[breaking-change]
2014-05-08Handle fallout in bench testsKevin Ballard-0/+1
2014-04-21shootout-threadring rewriteGuillaume Pinot-49/+19
* simplify the code * remove trace to satisfy official shootout test * use libgreen to improve performances
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-1/+1
2014-04-08Improve searching for XXX in tidy script (#3303)Boris Egorov-1/+1
Few places where previous version of tidy script cannot find XXX: * inside one-line comment preceding by a few spaces; * inside multiline comments (now it finds it if multiline comment starts on the same line with XXX). Change occurences of XXX found by new tidy script.
2014-03-21test: Make manual changes to deal with the fallout from removal ofPatrick Walton-5/+4
`~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
2014-03-21test: Automatically remove all `~[T]` from tests.Patrick Walton-1/+1
2014-03-15log: Introduce liblog, the old std::loggingAlex Crichton-1/+1
This commit moves all logging out of the standard library into an external crate. This crate is the new crate which is responsible for all logging macros and logging implementation. A few reasons for this change are: * The crate map has always been a bit of a code smell among rust programs. It has difficulty being loaded on almost all platforms, and it's used almost exclusively for logging and only logging. Removing the crate map is one of the end goals of this movement. * The compiler has a fair bit of special support for logging. It has the __log_level() expression as well as generating a global word per module specifying the log level. This is unfairly favoring the built-in logging system, and is much better done purely in libraries instead of the compiler itself. * Initialization of logging is much easier to do if there is no reliance on a magical crate map being available to set module log levels. * If the logging library can be written outside of the standard library, there's no reason that it shouldn't be. It's likely that we're not going to build the highest quality logging library of all time, so third-party libraries should be able to provide just as high-quality logging systems as the default one provided in the rust distribution. With a migration such as this, the change does not come for free. There are some subtle changes in the behavior of liblog vs the previous logging macros: * The core change of this migration is that there is no longer a physical log-level per module. This concept is still emulated (it is quite useful), but there is now only a global log level, not a local one. This global log level is a reflection of the maximum of all log levels specified. The previously generated logging code looked like: if specified_level <= __module_log_level() { println!(...) } The newly generated code looks like: if specified_level <= ::log::LOG_LEVEL { if ::log::module_enabled(module_path!()) { println!(...) } } Notably, the first layer of checking is still intended to be "super fast" in that it's just a load of a global word and a compare. The second layer of checking is executed to determine if the current module does indeed have logging turned on. This means that if any module has a debug log level turned on, all modules with debug log levels get a little bit slower (they all do more expensive dynamic checks to determine if they're turned on or not). Semantically, this migration brings no change in this respect, but runtime-wise, this will have a perf impact on some code. * A `RUST_LOG=::help` directive will no longer print out a list of all modules that can be logged. This is because the crate map will no longer specify the log levels of all modules, so the list of modules is not known. Additionally, warnings can no longer be provided if a malformed logging directive was supplied. The new "hello world" for logging looks like: #[phase(syntax, link)] extern crate log; fn main() { debug!("Hello, world!"); }
2014-03-13std: Rename Chan/Port types and constructorAlex Crichton-12/+9
* Chan<T> => Sender<T> * Port<T> => Receiver<T> * Chan::new() => channel() * constructor returns (Sender, Receiver) instead of (Receiver, Sender) * local variables named `port` renamed to `rx` * local variables named `chan` renamed to `tx` Closes #11765
2014-02-24Remove std::from_str::FromStr from the preludeBrendan Zabarauskas-0/+2
2014-01-29Remove do keyword from test/Scott Lawrence-4/+4
2014-01-21Remove unnecessary parentheses.Huon Wilson-1/+1
2013-12-16Test fallout from std::comm rewriteAlex Crichton-2/+2
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-1/+1
Who doesn't like a massive renaming?
2013-09-26Update the compiler to not use printf/printflnAlex Crichton-2/+2
2013-08-30Revert "src/test/bench: restructure"Corey Richardson-0/+78
This reverts commit 14cdc26e8a7794e437946f46df5769362b42acdf.
2013-08-28src/test/bench: restructureCorey Richardson-78/+0
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-2/+2
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-07-24Change 'print(fmt!(...))' to printf!/printfln! in src/test/Birunthan Mohanathas-1/+1
2013-07-20Fix warnings in src/test/bench tests. Nobody will ever care.Ben Blum-2/+2
2013-07-17Clean-up tests after debug!/std-macros change.Huon Wilson-1/+1
The entire testsuite is converted to using info! rather than debug! because some depend on the code within the debug! being trans'd.
2013-06-28Fix threadringCorey Richardson-1/+3
2013-06-26rt: Release big stacks immediately after use to avoid holding on to them ↵Brian Anderson-9/+9
through yields This avoids the following pathological scenario that makes threadring OOM: 1) task calls C using fast_ffi, borrowing a big stack from the scheduler. 2) task returns from C and places the big stack on the task-local stack segment list 3) task calls further Rust functions that require growing the stack, and for this reuses the big stack 4) task yields, failing to return the big stack to the scheduler. 5) repeat 500+ times and OOM Conflicts: src/rt/rust_task.cpp
2013-04-20xfail two benchmarks that are failing on the botsBrian Anderson-0/+2
2013-03-13reinstate test/bench/shootout-threadring.rsTed Horst-0/+74
2012-12-14Remove bench/shootout-threadring.rsBrian Anderson-63/+0
Will need to be completely rewritten for pipes
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-04De-mode comm::ChanTim Chevalier-1/+1
2012-10-04Remove arg vectors from main functions. Stop supporting them.Brian Anderson-1/+2
2012-09-25use + mode for (almost) everything when not using legacy modesNiko Matsakis-1/+1
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-1/+1
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-1/+1
2012-08-27Camel case various core constructorsBrian Anderson-2/+2
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-2/+2