summaryrefslogtreecommitdiff
path: root/cli/bench
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench')
-rw-r--r--cli/bench/http.rs2
-rw-r--r--cli/bench/lsp.rs4
-rw-r--r--cli/bench/main.rs2
3 files changed, 3 insertions, 5 deletions
diff --git a/cli/bench/http.rs b/cli/bench/http.rs
index 72edb487c..b000bc285 100644
--- a/cli/bench/http.rs
+++ b/cli/bench/http.rs
@@ -12,7 +12,7 @@ pub use test_util::{parse_wrk_output, WrkOutput as HttpBenchmarkResult};
const DURATION: &str = "20s";
-pub(crate) fn benchmark(
+pub fn benchmark(
target_path: &Path,
) -> Result<HashMap<String, HttpBenchmarkResult>> {
let deno_exe = test_util::deno_exe_path();
diff --git a/cli/bench/lsp.rs b/cli/bench/lsp.rs
index 2cd89cd13..a7f712d0b 100644
--- a/cli/bench/lsp.rs
+++ b/cli/bench/lsp.rs
@@ -333,9 +333,7 @@ fn bench_startup_shutdown(deno_exe: &Path) -> Result<Duration, AnyError> {
}
/// Generate benchmarks for the LSP server.
-pub(crate) fn benchmarks(
- deno_exe: &Path,
-) -> Result<HashMap<String, u64>, AnyError> {
+pub fn benchmarks(deno_exe: &Path) -> Result<HashMap<String, u64>, AnyError> {
println!("-> Start benchmarking lsp");
let mut exec_times = HashMap::new();
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index 9571be72a..0149fb002 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -504,4 +504,4 @@ fn main() -> Result<()> {
Ok(())
}
-pub(crate) type Result<T> = std::result::Result<T, AnyError>;
+pub type Result<T> = std::result::Result<T, AnyError>;