summaryrefslogtreecommitdiff
path: root/cli/bench/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/main.rs')
-rw-r--r--cli/bench/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index d58a6fdb6..9bae6fab6 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -431,7 +431,11 @@ async fn main() -> Result<()> {
println!("Starting Deno benchmark");
let target_dir = test_util::target_dir();
- let deno_exe = test_util::deno_exe_path().to_path_buf();
+ let deno_exe = if let Ok(p) = std::env::var("DENO_BENCH_EXE") {
+ PathBuf::from(p)
+ } else {
+ test_util::deno_exe_path().to_path_buf()
+ };
env::set_current_dir(test_util::root_path())?;
let mut new_data = BenchResult {