internal: env var to toggle slow benches

This commit is contained in:
Aleksey Kladov 2021-05-04 18:21:36 +03:00
parent a231da9d24
commit a1f42ef8ad

View File

@ -21,8 +21,7 @@
#[test]
fn integrated_highlighting_benchmark() {
// Don't run slow benchmark by default
if true {
if std::env::var("RUN_SLOW_BENCHES").is_err() {
return;
}
@ -76,8 +75,7 @@ fn integrated_highlighting_benchmark() {
#[test]
fn integrated_completion_benchmark() {
// Don't run slow benchmark by default
if true {
if std::env::var("RUN_SLOW_BENCHES").is_err() {
return;
}