about summary refs log tree commit diff
path: root/src/test/bench
AgeCommit message (Collapse)AuthorLines
2013-07-20Fix warnings in src/test/bench tests. Nobody will ever care.Ben Blum-78/+60
2013-07-18hashmap: Remove .consume() has rename .consume_iter() to .consume()blake2-ppc-3/+3
Updated all users of HashMap, HashSet old .consume() to use .consume() with a for loop. Since .consume() takes the map or set by value, it needs awkward extra code to in librusti's use of @mut HashMap, where the map value can not be directly moved out.
2013-07-17librustc: Remove some extra "copy" keywords that came in before this change ↵Patrick Walton-1/+1
merged.
2013-07-17test: Fix tests.Patrick Walton-4/+0
2013-07-17test: Fix tests.Patrick Walton-20/+13
2013-07-17librustc: Remove all uses of the `Copy` bound.Patrick Walton-8/+5
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-34/+52
2013-07-16auto merge of #7831 : ozten/rust/issues-7764-swap_unwarp-take-unwrap, r=pcwaltonbors-4/+4
Fixes Issue #7764 Running `make check` I do get a failure: test rt::io::extensions::test::push_bytes ... ok rustest rt::comm::test::oneshot_single_thread_send_port_close ... t: task failed at 'Unhandled condition: read_error: {kind: OtherIoError, desc: "Placeholder error. You shouldn\'t be seeing this", detail: None}', /Users/shout/Projects/rust/src/libstd/condition.rs:50 /bin/sh: line 1: 35056 Abort trap: 6 x86_64-apple-darwin/stage2/test/stdtest-x86_64-apple-darwin --logfile tmp/check-stage2-T-x86_64-apple-darwin-H-x86_64-apple-darwin-std.log make: *** [tmp/check-stage2-T-x86_64-apple-darwin-H-x86_64-apple-darwin-std.ok] Error 134
2013-07-16Rename Option swap_unwrap to take_unwrap. Fixes Issue#7764Austin King-4/+4
2013-07-17Clean-up tests after debug!/std-macros change.Huon Wilson-7/+7
The entire testsuite is converted to using info! rather than debug! because some depend on the code within the debug! being trans'd.
2013-07-13Un-broke benchmarksSteven Fackler-5/+5
2013-07-12auto merge of #7696 : glinscott/rust/utf8_perf, r=cmrbors-0/+24
Moves multibyte code to it's own function to make char_range_at easier to inline, and faster for single and multibyte chars. Benchmarked reading example.json 100 times, 1.18s before, 1.08s after. Also, optimize str::is_utf8 for the single and multibyte case Before: is_utf8_ascii: 272.355162 ms is_utf8_multibyte: 167.337334 ms After: is_utf8_ascii: 218.088049 ms is_utf8_multibyte: 134.836722 ms
2013-07-11Add is_utf8 bench testsGary Linscott-0/+24
Before: is_utf8_ascii: 272.355162 ms is_utf8_multibyte: 167.337334 ms After: is_utf8_ascii: 218.088049 ms is_utf8_multibyte: 134.836722 ms
2013-07-11extra: Rename deque::Deque to ringbuf::RingBuf and impl trait Dequeblake2-ppc-5/+6
Let RingBuf have a logical name for a concrete type, and Deque is used for the Deque trait (implemented by RingBuf and dlist).
2013-07-09auto merge of #7117 : jensnockert/rust/freestanding, r=cmrbors-11/+8
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. This means that instead of having to know everywhere what the type is, like ~~~ f64::sin(x) ~~~ You can simply write code that uses the type-generic versions in num instead, this works for all types that implement the corresponding trait in num. ~~~ num::sin(x) ~~~ Note 1: If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note 2: If you were using a function that corresponds to an operator, use the operator instead. Note 3: This is just https://github.com/mozilla/rust/pull/7090 reopened against master.
2013-07-08And I forgot to run the benchmarks after rebasingJens Nockert-10/+7
2013-07-08Fix pretty printer, which was ignoring `ref` in irrefutable patternsNiko Matsakis-2/+2
2013-07-08 Replaces the free-standing functions in f32, &c.Jens Nockert-1/+1
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead.
2013-07-07remove some method resolve workaroundsDaniel Micay-4/+4
2013-07-04Remove standalone comparison functions in vec, make the trait impls better.Huon Wilson-1/+1
2013-07-04Implement consuming iterators for ~[], remove vec::{consume, ↵Huon Wilson-10/+11
consume_reverse, map_consume}.
2013-06-30Remove vec::{map, mapi, zip_map} and the methods, except for .map, since thisHuon Wilson-15/+14
is very common, and the replacement (.iter().transform().collect()) is very ugly.
2013-06-30Convert vec::{rposition, rposition_elem, position_elem, contains} to methods.Huon Wilson-1/+1
2013-06-28auto merge of #7466 : thestinger/rust/passes, r=cmrbors-4/+4
2013-06-28copy the optimization passes from clangDaniel Micay-4/+4
2013-06-28Fix threadringCorey Richardson-1/+3
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-8/+9
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-1/+4
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-3/+3
2013-06-28Convert vec::{reserve, reserve_at_least, capacity} to methods.Huon Wilson-4/+3
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-13/+10
2013-06-26auto merge of #7111 : brson/rust/stack, r=brsonbors-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 (reopening after incoming fallout. *do not r+*. broken)
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-06-25auto merge of #7269 : luqmana/rust/drop, r=thestingerbors-1/+1
Finally rename finalize to drop. Closes #4332.
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-7/+7
2013-06-23Updated shootout-fasta.rs copyright years, removed stuff that caused lint to ↵Matthijs Hofstra-18/+12
complain.
2013-06-23Fixed shootout-fasta.rs outputMatthijs Hofstra-10/+14
2013-06-23Added missing copyright notice to shootout-spectralnorm.Matthijs Hofstra-0/+10
2013-06-23Changed shootout-chameneos-redux output to conform to the 'official' output ↵Matthijs Hofstra-1/+1
format.
2013-06-23Updated copyright year on shootout-binarytrees.rsMatthijs Hofstra-21/+17
2013-06-23Fixed os:: and int:: not being in scope, changed io::println to printlnMatthijs Hofstra-4/+6
2013-06-23vec: remove BaseIter implementationDaniel Micay-11/+11
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-9/+9
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-21vec: remove eachiDaniel Micay-7/+7
replaced by the `enumerate` method from std::iterator
2013-06-18test: xfail bench/task-perf-one-million. OOM on 32-bit linux w/o optsBrian Anderson-0/+2
2013-06-16Add copies to type params with Copy boundNiko Matsakis-17/+9
2013-06-16fix benchmark and the tutorialsDaniel Micay-1/+2
2013-06-14rm MutableIterDaniel Micay-3/+3
replaced with mutable implementations of Iterator
2013-06-14rm ExtendedMutableIterDaniel Micay-1/+0
replaced with `xs.mut_iter().enumerate()`