about summary refs log tree commit diff
path: root/src/test/bench
AgeCommit message (Collapse)AuthorLines
2016-01-29Remove src/test/benchBrian Anderson-87856/+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-12-10std: Remove deprecated functionality from 1.5Alex Crichton-332/+0
This is a standard "clean out libstd" commit which removes all 1.5-and-before deprecated functionality as it's now all been deprecated for at least one entire cycle.
2015-10-14Remove unnecessary parentheses around range expressionsAndrew Paseltiner-1/+1
2015-10-07bench: rewrite nbody for better vectorizationCristi Cobzarenco-87/+132
2015-09-24the same technique applies to fasta-reduxAndre Bogus-153/+292
2015-09-24change fasta benchmark to Veedrac's implementationAndre Bogus-87/+305
2015-09-21Use BufWriter in fasta-redux for a nice speedupllogiq-1/+2
2015-09-20Miscellaneous cleanup for old issues.Lee Jeffery-4/+2
2015-09-18Revert "Convert negate_unsigned feature gate to a warning"Simonas Kazlauskas-1/+1
This reverts commit 0ca8e4994ee43ba9dfbded6e129b30ff5fe7a994 and fixes the code to work with current rustc. Fixes #27141
2015-08-17Shim some of the old std::simd functionality.Huon Wilson-1/+1
Overload the operators using the traits so that things mostly keep working during the deprecation period.
2015-08-12Remove all unstable deprecated functionalityAlex Crichton-94/+22
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
2015-08-11Test fixes and rebase conflictsAlex Crichton-3/+3
2015-08-11rollup merge of #27636: llogiq/patch-1Alex Crichton-16/+13
See line 181: The lookup should start with the random index and iterate from there. Also locked stdout (which makes it a bit faster on my machine). And the `make_lookup` function now uses `map` (as the TODO asked for). Perhaps the multi-thread output from the fasta benchmark could be used to speed it up even more.
2015-08-10Stabilize the Duration APISteven Fackler-15/+15
This commit stabilizes the `std::time` module and the `Duration` type. `Duration::span` remains unstable, and the `Display` implementation for `Duration` has been removed as it is still being reworked and all trait implementations for stable types are de facto stable. This is a [breaking-change] to those using `Duration`'s `Display` implementation.
2015-08-10Fixed algorithm to match shootout requirementsllogiq-16/+13
See line 181: The lookup should start with the random index and iterate from there. Also locked stdout (which makes it a bit faster on my machine). Perhaps the multi-thread output from the fasta benchmark could be used to speed it up even more.
2015-07-09Use vec![elt; n] where possibleUlrik Sverdrup-14/+8
The common pattern `iter::repeat(elt).take(n).collect::<Vec<_>>()` is exactly equivalent to `vec![elt; n]`, do this replacement in the whole tree. (Actually, vec![] is smart enough to only call clone n - 1 times, while the former solution would call clone n times, and this fact is virtually irrelevant in practice.)
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-11/+9
2015-06-13Use `assert_eq!` instead of `assert!` in testspetrochenkov-2/+2
2015-06-11Conver reborrows to .iter() calls where appropriateJoshua Landau-1/+1
2015-06-10Removed many pointless calls to *iter() and iter_mut()Joshua Landau-10/+10
2015-05-14Auto merge of #24920 - alexcrichton:duration, r=aturonbors-30/+30
This commit is an implementation of [RFC 1040][rfc] which is a redesign of the currently-unstable `Duration` type. The API of the type has been scaled back to be more conservative and it also no longer supports negative durations. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1040-duration-reform.md The inner `duration` module of the `time` module has now been hidden (as `Duration` is reexported) and the feature name for this type has changed from `std_misc` to `duration`. All APIs accepting durations have also been audited to take a more flavorful feature name instead of `std_misc`. Closes #24874
2015-05-13std: Redesign Duration, implementing RFC 1040Alex Crichton-30/+30
This commit is an implementation of [RFC 1040][rfc] which is a redesign of the currently-unstable `Duration` type. The API of the type has been scaled back to be more conservative and it also no longer supports negative durations. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1040-duration-reform.md The inner `duration` module of the `time` module has now been hidden (as `Duration` is reexported) and the feature name for this type has changed from `std_misc` to `duration`. All APIs accepting durations have also been audited to take a more flavorful feature name instead of `std_misc`. Closes #24874
2015-05-09Squeeze the last bits of `task`s in documentation in favor of `thread`Barosl Lee-11/+11
An automated script was run against the `.rs` and `.md` files, subsituting every occurrence of `task` with `thread`. In the `.rs` files, only the texts in the comment blocks were affected.
2015-04-29Auto merge of #24681 - tamird:unignore-android, r=alexcrichtonbors-8/+6
There are still quite a few ignored Android tests kicking around, most of which were added in 445faca8441aae34c91318b6ad9e2049885af8dc, which has a pretty unfortunate commit message. r? @alexcrichton
2015-04-28Reference the correct issue and clarify failureTamir Duberstein-3/+3
2015-04-28#10393 & #13206: WarningsTamir Duberstein-5/+3
2015-04-28Register new snapshotsTamir Duberstein-2/+1
2015-04-28test: Fix some tests to run with muslAlex Crichton-6/+6
There were a few test cases to fix: * Dynamic libraries are not supported with MUSL right now, so all of those related test which force or require dylibs are ignored. * Looks like the default stack for MUSL is smaller than glibc, so a few stack allocations in benchmarks were boxed up (shouldn't have a perf impact). * Some small linkage tweaks here and there * Out-of-stack detection does not currently work with MUSL
2015-04-21std: Bring back f32::from_str_radix as an unstable APIAlex Crichton-21/+7
This API was exercised in a few tests and mirrors the `from_str_radix` functionality of the integer types.
2015-04-21Model lexer: Fix remaining issuesPiotr Czarnecki-3/+0
2015-04-14Negative case of `len()` -> `is_empty()`Tamir Duberstein-3/+3
`s/([^\(\s]+\.)len\(\) [(?:!=)>] 0/!$1is_empty()/g`
2015-04-14Positive case of `len()` -> `is_empty()`Tamir Duberstein-2/+2
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
2015-04-14rollup merge of #24385: aturon/unstable-scopedAlex Crichton-14/+14
Conflicts: src/libstd/thread/mod.rs src/test/bench/shootout-mandelbrot.rs src/test/bench/shootout-reverse-complement.rs src/test/run-pass/capturing-logging.rs src/test/run-pass/issue-9396.rs src/test/run-pass/tcp-accept-stress.rs src/test/run-pass/tcp-connect-timeouts.rs src/test/run-pass/tempfile.rs
2015-04-14bench: Fix fallout in benchmarksAlex Crichton-132/+75
2015-04-14Fallout: move from scoped to spawnAaron Turon-14/+14
2015-04-08Make `sum` and `product` inherent methods on `Iterator`Tobias Bucher-1/+1
In addition to being nicer, this also allows you to use `sum` and `product` for iterators yielding custom types aside from the standard integers. Due to removing the `AdditiveIterator` and `MultiplicativeIterator` trait, this is a breaking change. [breaking-change]
2015-04-01Fallout in testsNiko Matsakis-8/+8
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-8/+9
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-31Rollup merge of #23866 - alexcrichton:switch-some-orders, r=aturonManish Goregaokar-5/+4
This functions swaps the order of arguments to a few functions that previously took (output, input) parameters, but now take (input, output) parameters (in that order). The affected functions are: * ptr::copy * ptr::copy_nonoverlapping * slice::bytes::copy_memory * intrinsics::copy * intrinsics::copy_nonoverlapping Closes #22890 [breaking-change]
2015-03-30std: Standardize (input, output) param orderingsAlex Crichton-5/+4
This functions swaps the order of arguments to a few functions that previously took (output, input) parameters, but now take (input, output) parameters (in that order). The affected functions are: * ptr::copy * ptr::copy_nonoverlapping * slice::bytes::copy_memory * intrinsics::copy * intrinsics::copy_nonoverlapping Closes #22890 [breaking-change]
2015-03-30Fallout where types must be specified.Niko Matsakis-1/+1
This is due to a [breaking-change] to operators. The primary affected code is uses of the `Rng` trait where we used to (incorrectly) infer the right-hand-side type from the left-hand-side, in the case that the LHS type was a scalar like `i32`. The fix is to add a type annotation like `x + rng.gen::<i32>()`.
2015-03-27rollup merge of #23741: alexcrichton/remove-int-uintAlex Crichton-61/+61
Conflicts: src/librustc/middle/ty.rs src/librustc_trans/trans/adt.rs src/librustc_typeck/check/mod.rs src/libserialize/json.rs src/test/run-pass/spawn-fn.rs
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-61/+61
Now that support has been removed, all lingering use cases are renamed.
2015-03-26syntax: Remove parsing of old slice syntaxAlex Crichton-1/+1
This syntax has been deprecated for quite some time, and there were only a few remaining uses of it in the codebase anyway.
2015-03-23rollup merge of #23503: alexcrichton/fix-ptr-docsAlex Crichton-3/+3
The method with which backwards compatibility was retained ended up leading to documentation that rustdoc didn't handle well and largely ended up confusing.
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-10/+34
2015-03-21std: Remove deprecated ptr functionsAlex Crichton-3/+3
The method with which backwards compatibility was retained ended up leading to documentation that rustdoc didn't handle well and largely ended up confusing.
2015-03-20std: Remove old_io/old_path from the preludeAlex Crichton-5/+8
This commit removes the reexports of `old_io` traits as well as `old_path` types and traits from the prelude. This functionality is now all deprecated and needs to be removed to make way for other functionality like `Seek` in the `std::io` module (currently reexported as `NewSeek` in the io prelude). Closes #23377 Closes #23378
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-67/+67
2015-03-03Add `: Box<_>` or `::Box<_>` type annotations to various places.Felix S. Klock II-3/+3
This is the kind of change that one is expected to need to make to accommodate overloaded-`box`. ---- Note that this is not *all* of the changes necessary to accommodate Issue 22181. It is merely the subset of those cases where there was already a let-binding in place that made it easy to add the necesasry type ascription. (For unnamed intermediate `Box` values, one must go down a different route; `Box::new` is the option that maximizes portability, but has potential inefficiency depending on whether the call is inlined.) ---- There is one place worth note, `run-pass/coerce-match.rs`, where I used an ugly form of `Box<_>` type ascription where I would have preferred to use `Box::new` to accommodate overloaded-`box`. I deliberately did not use `Box::new` here, because that is already done in coerce-match-calls.rs. ---- Precursor for overloaded-`box` and placement-`in`; see Issue 22181.