We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9177acc commit 1366754Copy full SHA for 1366754
src/lib.rs
@@ -278,6 +278,8 @@ z = x + y"#;
278
279
#[tokio::test]
280
async fn test_run_with_function() {
281
+ // cargo test tests::test_run_with_function --release -- --nocapture
282
+ let start_time = std::time::Instant::now();
283
let executor = PyRunner::new();
284
let code = r#"
285
def add(a, b):
@@ -290,6 +292,8 @@ def add(a, b):
290
292
.await
291
293
.unwrap();
294
assert_eq!(result, Value::Number(14.into()));
295
+ let duration = start_time.elapsed();
296
+ println!("test_run_with_function took: {} microseconds", duration.as_micros());
297
}
298
299
#[cfg(feature = "pyo3")]
0 commit comments