Skip to content

Commit 1366754

Browse files
committed
add println output to test
1 parent 9177acc commit 1366754

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ z = x + y"#;
278278

279279
#[tokio::test]
280280
async fn test_run_with_function() {
281+
// cargo test tests::test_run_with_function --release -- --nocapture
282+
let start_time = std::time::Instant::now();
281283
let executor = PyRunner::new();
282284
let code = r#"
283285
def add(a, b):
@@ -290,6 +292,8 @@ def add(a, b):
290292
.await
291293
.unwrap();
292294
assert_eq!(result, Value::Number(14.into()));
295+
let duration = start_time.elapsed();
296+
println!("test_run_with_function took: {} microseconds", duration.as_micros());
293297
}
294298

295299
#[cfg(feature = "pyo3")]

0 commit comments

Comments
 (0)