about summary refs log tree commit diff
path: root/src/test/bench
AgeCommit message (Collapse)AuthorLines
2011-08-16Port the tests to the typaram foo<T> syntax.Erick Tryzelaar-19/+19
2011-08-16Rename std::ivec to std::vecBrian Anderson-15/+15
2011-08-16Convert most main functions to the ivec signatureBrian Anderson-16/+13
Converting rustc will still take a snapshot
2011-08-15The wonky for...in... whitespace was bothering me. Sorry!Lindsey Kuper-13/+13
2011-08-15Reducing the chances for race conditions in join.Eric Holk-1/+1
2011-08-15Syntax updates.Eric Holk-2/+3
2011-08-15Converted over benchmarks.Eric Holk-82/+59
2011-08-12Convert most working tests to ivecsBrian Anderson-9/+9
I tried to pay attention to what was actually being tested so, e.g. when I test was just using a vec as a boxed thing, I converted to boxed ints, etc. Haven't converted the macro tests yet. Not sure what to do there.
2011-08-12Convert uint::parse_buf to ivecsBrian Anderson-3/+2
2011-08-12Remove vecs from std::getoptsBrian Anderson-1/+1
2011-08-12Convert benchmarks to ivecsBrian Anderson-39/+41
2011-08-12Rename std::ioivec to std::ioBrian Anderson-7/+7
2011-08-12Convert all uses of std::io to std::ioivecBrian Anderson-7/+7
2011-08-12Rename std::str::unsafe_from_bytes_ivec to unsafe_from_bytesBrian Anderson-1/+1
2011-08-12Remove vec version of str::bytes, rename bytes_ivec to str::bytesBrian Anderson-3/+6
2011-08-09Change the ivec type syntax to [T].Erick Tryzelaar-2/+2
This preserves the old syntax for now.
2011-08-03Un-xfail more pretty-printing testsBrian Anderson-5/+0
2011-08-02Don't pp extra lines after block open when preserving whitespace. Closes #759Brian Anderson-3/+0
2011-08-02Include benchmarks in pretty-print testsBrian Anderson-2/+6
2011-07-29Add a task spawning benchmarkBrian Anderson-0/+29
This is the kind of workload that the test runner generates - lots of tiny little tasks - and currently it leaves the CPU underutilized.
2011-07-28Made task threads wait instead of sleep, so they can be woken up. This ↵Eric Holk-1/+0
appears to give us much better parallel performance. Also, commented out one more unsafe log and updated rust_kernel.cpp to compile under g++
2011-07-28Adding a function to stdlib to set the min stack size, for programsEric Holk-5/+11
that absolutely will not succeed with a large default stack. This should be removed once we have stack grown working. Also updated word-count to succeed under the new test framework.
2011-07-27Fix damage done by the pretty-printerMarijn Haverbeke-13/+9
2011-07-27Reformat for new syntaxMarijn Haverbeke-566/+505
2011-07-26Fixup test changesMarijn Haverbeke-1/+1
2011-07-26Remove uses of tuples from the test suiteMarijn Haverbeke-16/+20
2011-07-24The Big Test Suite OverhaulBrian Anderson-71/+3
This replaces the make-based test runner with a set of Rust-based test runners. I believe that all existing functionality has been preserved. The primary objective is to dogfood the Rust test framework. A few main things happen here: 1) The run-pass/lib-* tests are all moved into src/test/stdtest. This is a standalone test crate intended for all standard library tests. It compiles to build/test/stdtest.stageN. 2) rustc now compiles into yet another build artifact, this one a test runner that runs any tests contained directly in the rustc crate. This allows much more fine-grained unit testing of the compiler. It compiles to build/test/rustctest.stageN. 3) There is a new custom test runner crate at src/test/compiletest that reproduces all the functionality for running the compile-fail, run-fail, run-pass and bench tests while integrating with Rust's test framework. It compiles to build/test/compiletest.stageN. 4) The build rules have been completely changed to use the new test runners, while also being less redundant, following the example of the recent stageN.mk rewrite. It adds two new features to the cfail/rfail/rpass/bench tests: 1) Tests can specify multiple 'error-pattern' directives which must be satisfied in order. 2) Tests can specify a 'compile-flags' directive which will make the test runner provide additional command line arguments to rustc. There are some downsides, the primary being that Rust has to be functioning pretty well just to run _any_ tests, which I imagine will be the source of some frustration when the entire test suite breaks. Will also cause some headaches during porting. Not having individual make rules, each rpass, etc test no longer remembers between runs whether it completed successfully. As a result, it's not possible to incrementally fix multiple tests by just running 'make check', fixing a test, and repeating without re-running all the tests contained in the test runner. Instead you can filter just the tests you want to run by using the TESTNAME environment variable. This also dispenses with the ability to run stage0 tests, but they tended to be broken more often than not anyway.
2011-07-22More work on word-count.Eric Holk-31/+110
Updated the MapReduce protocol so that it's correct more often. It's still not perfect, but the bugs repro less often now. Also found a race condition in channel sending. The problem is that send and receive both need to refer to the _unread field in circular_buffer. For now I just grabbed the port lock to send. We can probably get around this by using atomics instead.
2011-07-22Task-ified the word count program.Eric Holk-53/+117
This meant most of the generic-ness of it had to go away, since our type system doesn't quite support it yet. Hopefully someday... This version has lots of memory management errors. My next commit will hopefully fix these.
2011-07-22Commenting out the huge-memory-using lines in pfib.Eric Holk-2/+2
2011-07-13Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.Graydon Hoare-31/+31
2011-07-11Started working on MapReduce.Eric Holk-0/+220
Currently it's only sequential, but it can do word frequency counting. In an ideal world it would all be polymorphic, but that pushes the limits of our type system right now. We can generalize it later.
2011-07-08Adding more support for working with u64s.Eric Holk-7/+14
2011-07-07Added a stress test mode to pfib.Eric Holk-13/+57
2011-06-30Added a new version of pfib that's better suited for benchmarking the task ↵Eric Holk-0/+79
system. It generates gnuplot output.
2011-06-30Added a nanosecond timer to time.rs, support for some floating point casts, ↵Eric Holk-24/+47
and a commandline-driven mode for pfib.rs
2011-06-27Fixed a few concurrency bugs. Still not perfect, but overall it seems much ↵Eric Holk-4/+4
more reliable.
2011-06-27Added a parallel fibonacci program. It doesn't actually run in parallel yet, ↵Eric Holk-0/+41
but it will give us something fun to test threading with.
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-446/+310
2011-06-15Fix assignments to immutable fields throughout the codeMarijn Haverbeke-3/+3
2011-05-23test: Un-xfail some working testsBrian Anderson-3/+0
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-39/+39
Except for _task, which is still a keyword.
2011-05-16Rewrite everything to use [] instead of vec() in value position.Graydon Hoare-10/+10
2011-05-14Remove xfail-boot lines from testsBrian Anderson-1/+0
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-71/+71
This should be a snapshot transition.
2011-05-06Remove a few more superfluous 'mutable' keywordsMarijn Haverbeke-4/+4
2011-05-06Rename std modules to be camelcasedMarijn Haverbeke-40/+40
(Have fun mergining your stuff with this.)
2011-05-05Change checks to asserts in test/bench filesTim Chevalier-6/+6
2011-05-03Assume xfail-stage0 implies stage1 and stage2 in tests, for now.Graydon Hoare-0/+2
2011-05-03Revert "Rename the "llvm" API to "llvm-intrinsic"" due to tinderbox bustagePatrick Walton-1/+1
This reverts commit 6871c245a67fab222eccc2a21dcb620d11d3b0d0.