Commit Graph

30 Commits

Author SHA1 Message Date
David Tolnay
b0fcbabe5b
Fix instruction for running benchmarks 2022-09-28 18:24:19 -07:00
David Tolnay
13cd0a2f6d
Ignore using destructuring assignment to wildcard pattern 2022-08-31 00:35:49 -07:00
David Tolnay
0987a2af3c
Update benches to nightly-2022-08-18 2022-08-17 22:02:52 -07:00
David Tolnay
fd145a99a7
Update test suite to nightly-2022-04-14 2022-04-13 20:12:29 -07:00
David Tolnay
13bf252482
Make benchmark work with nightly-2022-04-06 2022-04-05 21:13:37 -07:00
David Tolnay
28fe8d7f2f
Update test suite to nightly-2022-02-26 2022-02-28 14:56:07 -08:00
David Tolnay
e23e46a06e
Resolve useless_vec clippy lint in benchmark runner
error: useless use of `vec!`
       --> benches/rust.rs:120:13
        |
    120 | /             vec![
    121 | |                 $(
    122 | |                     $(#[$cfg])*
    123 | |                     (stringify!($name), $name::bench as fn(&str) -> Result<(), ()>),
    124 | |                 )*
    125 | |             ]
        | |_____________^ help: you can use a slice directly: `&[(stringify!($name), $name::bench as fn(&str) -> Result<(), ()>)]`
    ...
    141 |       for (name, f) in testcases!(
        |  ______________________-
    142 | |         #[cfg(not(syn_only))]
    143 | |         read_from_disk,
    144 | |         #[cfg(not(syn_only))]
    ...   |
    148 | |         librustc_parse,
    149 | |     ) {
        | |_____- in this macro invocation
        |
        = note: `-D clippy::useless-vec` implied by `-D clippy::all`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
        = note: this error originates in the macro `testcases` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-12-12 13:56:23 -08:00
David Tolnay
22b36c31c3
Run clippy on benches as well 2021-12-12 13:54:33 -08:00
David Tolnay
436eb2208d
Update test suite to nightly-2021-07-09 2021-07-08 20:23:03 -07:00
David Tolnay
27071442ef
Update test suite to nightly-2020-08-09 2020-08-08 19:35:28 -07:00
David Tolnay
d5bdf68749
Update test suite to nightly-2020-07-11 2020-07-10 19:50:19 -07:00
David Tolnay
08a1fcfab2
Remove references to libsyntax 2020-05-25 01:54:35 -07:00
David Tolnay
cac73088b3
Reduce noise in benchmark output 2020-04-21 15:11:43 -07:00
David Tolnay
40c8d7d073
Update rust benchmark to rustc_ast 2020-03-15 15:39:09 -07:00
David Tolnay
505bc31556
Work around travis deadlock during repo download 2020-01-01 10:42:24 -08:00
David Tolnay
43abbb9fa9
Remove excess logs from test_precedence
Travis terminates builds that are too verbose.
2020-01-01 09:05:13 -08:00
David Tolnay
d627abc0fb
Make errorf macro available in benches
Required for the logging in repo::clone_rust. This needs to get
refactored...
2019-12-31 23:22:28 -08:00
David Tolnay
d42094a40d
Update benchmark for libsyntax nightly changes 2019-12-31 23:05:46 -08:00
David Tolnay
9a0f850404
Update test suite to nightly-2019-12-31 2019-12-30 21:32:22 -05:00
David Tolnay
f27b792e34
Remove error return from clone_rust
We can still use `?` but take care of checking the error centrally.
2019-11-23 16:32:45 -08:00
Andrew Gauger
95de7455cf Rust implementation of download and extract source code (#707)
* Rust implementation of download and extract source code

* Use tar/gz files

* Extract rust into test directory
2019-11-23 16:26:21 -08:00
David Tolnay
f5aced6cfe
Reorganize the rust repo benchmark 2019-07-14 14:04:57 -07:00
David Tolnay
c0930c6fe3
Group the non-syn benchmark imports 2019-07-14 14:00:46 -07:00
David Tolnay
852de39d76
Flag to benchmark syn only 2019-06-30 12:06:53 -07:00
David Tolnay
4d156fd9d6
Module for rust-lang/rust repo related functions 2019-06-30 12:02:52 -07:00
David Tolnay
2e918f9548
Print benchmark file count 2019-06-27 02:18:09 -07:00
David Tolnay
9c82f0ab83
Add baseline benchmark that traverses repo without parsing 2019-06-27 02:17:03 -07:00
David Tolnay
2fcafba0e6
Print lines of code in rust repo benchmark 2019-06-27 01:58:57 -07:00
David Tolnay
e2a818aafc
Add a benchmark of TokenStream to File 2019-06-23 18:06:42 -07:00
David Tolnay
a6995ba736
Add benchmark of parsing whole rust repo
On my machine:

    tokenstream_parse:  elapsed=1.453s
    syn_parse:          elapsed=4.632s
    libsyntax_parse:    elapsed=2.039s
2019-06-23 16:45:06 -07:00