about summary refs log tree commit diff
path: root/src/test/bench
AgeCommit message (Collapse)AuthorLines
2014-02-06getopts: unify testsArcterus-1/+1
2014-02-06Move getopts out of extraArcterus-1/+2
2014-02-05move concurrent stuff from libextra to libsyncJeremyLetang-13/+16
2014-02-03Fixing remaining warnings and errors throughoutAlex Crichton-2/+4
2014-01-30Remove Times traitBrendan Zabarauskas-8/+8
`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
2014-01-29auto merge of #11868 : bytbox/rust/remove-do, r=alexcrichtonbors-53/+53
Fixes #10815.
2014-01-29Remove do keyword from test/Scott Lawrence-53/+53
2014-01-29extra: move arena to libarenaDavid Manescu-1/+2
In line with the dissolution of libextra - #8784 - moves arena to its own library libarena. Changes based on PR #11787. Updates .gitignore to ignore doc/arena.
2014-01-26auto merge of #11817 : salemtalha/rust/master, r=brsonbors-2/+2
Fixes Issue #11815
2014-01-26Removed all instances of XXX in preparation for relaxing of FIXME ruleSalem Talha-2/+2
2014-01-26Fix privacy fallout from previous changeAlex Crichton-3/+3
2014-01-24Add benchmarksCorey Richardson-0/+30
2014-01-24Update task-perf-one-millionCorey Richardson-2/+2
2014-01-23Update flip() to be rev().Sean Chalmers-3/+3
Consensus leaned in favour of using rev instead of flip.
2014-01-23Rename Invert to Flip - Issue 10632Sean Chalmers-3/+3
Renamed the invert() function in iter.rs to flip(). Also renamed the Invert<T> type to Flip<T>. Some related code comments changed. Documentation that I could find has been updated, and all the instances I could locate where the function/type were called have been updated as well.
2014-01-21[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old ↵Simon Sapin-2/+2
from_utf8_owned() behavior
2014-01-21[std::vec] Rename .shift_opt() to .shift(), drop the old .shift() behaviorSimon Sapin-1/+1
2014-01-21[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behaviorSimon Sapin-2/+2
2014-01-21[std::vec] Rename .last_opt() to .last(), drop the old .last() behaviorSimon Sapin-1/+1
2014-01-21Remove unnecessary parentheses.Huon Wilson-4/+4
2014-01-18auto merge of #11629 : brson/rust/whattayaknowitsmoreandroidfixes, r=cmrbors-0/+2
2014-01-17xfail shootout-reverse-complement on androidBrian Anderson-0/+2
2014-01-17auto merge of #11503 : FlaPer87/rust/master, r=huonwbors-1/+1
The patch adds the missing pow method for all the implementations of the Integer trait. This is a small addition that will most likely be improved by the work happening in #10387. Fixes #11499
2014-01-17Tweak the interface of std::ioAlex Crichton-9/+5
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
2014-01-17Add a generic power functionFlavio Percoco-1/+1
The patch adds a `pow` function for types implementing `One`, `Mul` and `Clone` trait. The patch also renames f32 and f64 pow into powf in order to still have a way to easily have float powers. It uses llvms intrinsics. The pow implementation for all num types uses the exponentiation by square. Fixes bug #11499
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-28/+31
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-07libextra: Introduce typed arenas.Patrick Walton-11/+12
A typed arena is a type of arena that can only allocate objects of one type. It is 3x faster than the existing arena and 13x faster than malloc on Mac.
2014-01-04Don't allow newtype structs to be dereferenced. #6246Brian Anderson-2/+3
2014-01-03test: De-`@mut` the test suitePatrick Walton-2/+2
2013-12-25Test fixes and rebase conflictsAlex Crichton-6/+5
* vec::raw::to_ptr is gone * Pausible => Pausable * Removing @ * Calling the main task "<main>" * Removing unused imports * Removing unused mut * Bringing some libextra tests up to date * Allowing compiletest to work at stage0 * Fixing the bootstrap-from-c rmake tests * assert => rtassert in a few cases * printing to stderr instead of stdout in fail!()
2013-12-22std::vec: make the sorting closure use `Ordering` rather than just beingHuon Wilson-24/+19
(implicitly) less_eq.
2013-12-21std::vec: add a sugary .sort() method for plain Ord sorting.Huon Wilson-3/+3
This moves the custom sorting to `.sort_by`.
2013-12-20extra: remove sort in favour of the std method.Huon Wilson-5/+5
Fixes #9676.
2013-12-16Test fallout from std::comm rewriteAlex Crichton-38/+40
2013-12-15librustc: Remove identifiers named `box`, since it's about to become a keyword.Patrick Walton-3/+3
2013-12-15std::vec: move pointless `raw::get` and `unsafe_get` functions.Huon Wilson-6/+6
This can easily be written as `(*v.unsafe_ref(i)).clone()`, or just `*v.unsafe_ref(i)` for primitive types like `i32` (the common case).
2013-12-15std::vec: remove unnecessary count parameter on {bytes,Huon Wilson-3/+2
raw}::copy_memory. Slices carry their length with them, so we can just use that information.
2013-12-14auto merge of #10933 : TeXitoi/rust/shootout-fasta-rewrite, r=alexcrichtonbors-112/+80
improvements: - no managed box - no virtual calls - no useless copy - optimizations (bisect is slower, limit tests, BufferedWriter...) - pass shootout test - 10 times faster
2013-12-12rewrite of shootout-fasta.rsGuillaume Pinot-112/+80
improvements: - no managed box - no virtual calls - no useless copy - optimizations (bisect is slower, limit tests, BufferedWriter...) - pass shootout test - should be as fast as the best official test Thanks to @cmr and @eddyb for their help!
2013-12-11Make 'self lifetime illegal.Erik Price-13/+13
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-12-11std::io: Add Buffer.lines(), change .bytes() apiklutzy-15/+3
- `Buffer.lines()` returns `LineIterator` which yields line using `.read_line()`. - `Reader.bytes()` now takes `&mut self` instead of `self`. - `Reader.read_until()` swallows `EndOfFile`. This also affects `.read_line()`.
2013-12-10libstd: Remove `Cell` from the library.Patrick Walton-2/+4
2013-12-10librustpkg: Make `io::ignore_io_error()` use RAII; remove a few morePatrick Walton-2/+6
cells.
2013-12-10libextra: Another round of de-`Cell`-ing.Patrick Walton-36/+16
34 uses of `Cell` remain.
2013-12-04Revert "libstd: Change `Path::new` to `Path::init`."Kevin Ballard-3/+3
This reverts commit c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b. Leave the #[ignores] in that were added to rustpkg tests. Conflicts: src/librustc/driver/driver.rs src/librustc/metadata/creader.rs
2013-12-04auto merge of #10799 : TeXitoi/rust/shootout-reverse-complement-resurected, ↵bors-142/+70
r=alexcrichton This version is inspired by the best version in C by Mr Ledrug, but without the parallelisation.
2013-12-04rewrite of shootout-reverse-complement.rsGuillaume Pinot-142/+70
This version is inspired by the best version in C by Mr Ledrug, but without the parallelisation.
2013-12-04std::str: remove from_utf8.Huon Wilson-5/+3
This function had type &[u8] -> ~str, i.e. it allocates a string internally, even though the non-allocating version that take &[u8] -> &str and ~[u8] -> ~str are all that is necessary in most circumstances.
2013-11-29libstd: Change `Path::new` to `Path::init`.Patrick Walton-2/+2
2013-11-28shootout-spectralnorm resurection with parallelizationGuillaume Pinot-31/+66