From 7175da30529a9f9e6c9730a2865e118ac5382fa8 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:04:31 +0000 Subject: [PATCH 1/6] perf(stream): avoid temporary buffers during append --- crates/bashkit/src/stream.rs | 75 ++++++++++++++++++++++++++- knowledge/foundations/architecture.md | 7 +++ 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/crates/bashkit/src/stream.rs b/crates/bashkit/src/stream.rs index 1af845df8..64537a062 100644 --- a/crates/bashkit/src/stream.rs +++ b/crates/bashkit/src/stream.rs @@ -127,13 +127,26 @@ impl StreamData { } } pub(crate) fn append_text(&mut self, text: &str) { - self.append(&Self::from(text)); + // Valid UTF-8 starts at a scalar boundary, so it cannot complete an + // incomplete scalar at the end of the existing byte buffer. + self.bytes.extend_from_slice(text.as_bytes()); + self.text.push_str(text); } pub(crate) fn push_str(&mut self, text: &str) { self.append_text(text); } pub(crate) fn push_byte(&mut self, byte: u8) { - self.append(&Self::from(vec![byte])); + let boundary = self.bytes.len(); + self.bytes.push(byte); + if lossy_decode_changes_at_boundary(&self.bytes, boundary) { + self.refresh_text(); + } else { + self.text.push(if byte.is_ascii() { + char::from(byte) + } else { + '\u{fffd}' + }); + } } pub(crate) fn prefix(&self, limit: usize) -> Self { Self::from(self.bytes[..self.bytes.len().min(limit)].to_vec()) @@ -158,6 +171,11 @@ impl StreamData { } fn lossy_decode_changes_at_boundary(bytes: &[u8], boundary: usize) -> bool { + // A scalar can span the join only when the new chunk begins with a + // continuation byte. Empty chunks and ordinary text need no decoding. + if boundary == 0 || boundary == bytes.len() || bytes[boundary] & 0xc0 != 0x80 { + return false; + } let start = boundary.saturating_sub(3); let end = bytes.len().min(boundary.saturating_add(3)); let mut split = String::from_utf8_lossy(&bytes[start..boundary]).into_owned(); @@ -260,6 +278,37 @@ impl serde::Serialize for StreamData { #[cfg(test)] mod tests { use super::StreamData; + use proptest::prelude::*; + + proptest! { + #[test] + fn appending_chunks_preserves_the_combined_lossy_view( + left in proptest::collection::vec(any::(), 0..64), + right in proptest::collection::vec(any::(), 0..64), + ) { + let mut stream = StreamData::from(left.clone()); + stream.append(&StreamData::from(right.clone())); + let joined: Vec = left.into_iter().chain(right).collect(); + prop_assert_eq!(stream.as_bytes(), joined.as_slice()); + prop_assert_eq!(stream.text_lossy(), String::from_utf8_lossy(&joined)); + } + + #[test] + fn appending_text_and_individual_bytes_preserves_decoding( + left in proptest::collection::vec(any::(), 0..64), + right in any::(), + byte in any::(), + ) { + let mut stream = StreamData::from(left.clone()); + stream.append_text(&right); + stream.push_byte(byte); + let mut joined = left; + joined.extend_from_slice(right.as_bytes()); + joined.push(byte); + prop_assert_eq!(stream.as_bytes(), joined.as_slice()); + prop_assert_eq!(stream.text_lossy(), String::from_utf8_lossy(&joined)); + } + } #[test] fn admitted_bytes_preserve_lossy_text_and_lease() { @@ -366,4 +415,26 @@ mod tests { assert_eq!(stream.as_bytes(), "é".as_bytes()); assert_eq!(stream.text_lossy(), "é"); } + + #[test] + fn append_handles_all_splits_of_valid_and_invalid_utf8() { + for bytes in [ + "aé€🦀z".as_bytes(), + b"\xf0\x90\x80", + b"\xe2\x82x\xff\xc3\xa9", + b"\xed\xa0\x80\0\xf4\x90\x80\x80", + ] { + for split in 0..=bytes.len() { + let mut stream = StreamData::from(&bytes[..split]); + stream.append(&StreamData::from(&bytes[split..])); + assert_eq!(stream.text_lossy(), String::from_utf8_lossy(bytes)); + } + let mut stream = StreamData::new(); + for byte in bytes { + stream.push_byte(*byte); + } + assert_eq!(stream.as_bytes(), bytes); + assert_eq!(stream.text_lossy(), String::from_utf8_lossy(bytes)); + } + } } diff --git a/knowledge/foundations/architecture.md b/knowledge/foundations/architecture.md index 71b619365..8c95192e5 100644 --- a/knowledge/foundations/architecture.md +++ b/knowledge/foundations/architecture.md @@ -75,6 +75,13 @@ explicit UTF-8 boundary with `text()` or `text_lossy()`. Line-oriented consumers locate delimiters and split the authoritative byte buffer before lossy decoding; offsets into the cached lossy view are never byte offsets. +Appending valid text extends both owned representations directly. Stream joins +only inspect split UTF-8 decoding when the appended bytes begin with a +continuation byte. Appending an individual byte extends the existing buffers +and refreshes the text view when it completes a split sequence. These paths +avoid temporary stream values and keep byte transport and lossy decoding +consistent without adding cache state. + `Execution::output_file(path, max_bytes)` tees combined stdout+stderr, in arrival order, into a VFS file created/truncated before the script runs. The file is bounded by its own `max_bytes` and `FsLimits`, not by From df58153023a42ad3e1e07b3bbff9a50fd8197baf Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:12:05 +0000 Subject: [PATCH 2/6] fix(deps): update url to patched 2.5.9 --- Cargo.lock | 10 +++++----- crates/bashkit-js/test-fixtures/random-fs/Cargo.lock | 8 ++++---- .../bashkit-python/test-fixtures/random-fs/Cargo.lock | 8 ++++---- crates/bashkit/fuzz/Cargo.lock | 8 ++++---- examples/hyperlight/Cargo.lock | 8 ++++---- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3f77f5167..30642fb7c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1683,7 +1683,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a" dependencies = [ "quote", - "syn 3.0.10", + "syn 2.0.119", ] [[package]] @@ -2238,9 +2238,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -7138,9 +7138,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock index 951202a84..efba044d5 100644 --- a/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock @@ -409,9 +409,9 @@ dependencies = [ [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -1339,9 +1339,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock index 712800fa4..96f281a84 100644 --- a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock @@ -392,9 +392,9 @@ dependencies = [ [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -1235,9 +1235,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/crates/bashkit/fuzz/Cargo.lock b/crates/bashkit/fuzz/Cargo.lock index 394ec2aa6..50f0f6388 100644 --- a/crates/bashkit/fuzz/Cargo.lock +++ b/crates/bashkit/fuzz/Cargo.lock @@ -1006,9 +1006,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -3147,9 +3147,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/examples/hyperlight/Cargo.lock b/examples/hyperlight/Cargo.lock index 3f1bb49a5..9d17e0036 100644 --- a/examples/hyperlight/Cargo.lock +++ b/examples/hyperlight/Cargo.lock @@ -441,9 +441,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -1274,9 +1274,9 @@ checksum = "b39abd59bf32521c7f2301b52d05a6a2c975b6003521cbd0c6dc1582f0a22104" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", From 05384f3efbfb7c27ad015a0f9d508ed0ba5fc7a1 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:19:27 +0000 Subject: [PATCH 3/6] chore(deps): record reviewed url security updates --- supply-chain/audits.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/supply-chain/audits.toml b/supply-chain/audits.toml index 7b4f47c24..78942f81b 100644 --- a/supply-chain/audits.toml +++ b/supply-chain/audits.toml @@ -206,6 +206,12 @@ criteria = "safe-to-deploy" delta = "0.1.11 -> 0.1.12" notes = "Reviewed existing Visual Studio discovery predicate rewrites with filter/and_then/then. Installation paths and architecture existence checks unchanged. No new process invocation or unsafe." +[[audits.form_urlencoded]] +who = "Mykhailo Chalyi " +criteria = "safe-to-deploy" +delta = "1.2.2 -> 1.2.3" +notes = "Reviewed complete source and manifest delta. Serializer::for_suffix clamps its start position to target length instead of panicking. Existing capacity and UTF-8 handling is unchanged. The percent-encoding lower bound is raised to 2.3.2, which was already resolved. No new unsafe code or ambient capabilities." + [[audits.get-size-derive2]] who = "Mykhailo Chalyi " criteria = "safe-to-deploy" @@ -948,6 +954,12 @@ criteria = "safe-to-deploy" delta = "2.1.3 -> 2.1.4" notes = "Reviewed complete delta: formatting and private internal visibility changes, hash arithmetic and buffer reads unchanged. No new unsafe or host capability." +[[audits.url]] +who = "Mykhailo Chalyi " +criteria = "safe-to-deploy" +delta = "2.5.8 -> 2.5.9" +notes = "Reviewed runtime and manifest delta. Blob origin recursion now accepts only http, https, or file for the inner URL, resolving RUSTSEC-2026-0592. Dot-segment removal searches only the path and keeps its root and drive-letter slash. File hosts are retained, non-special ports reject backslashes, and path carets are percent encoded. Bounds remain checked. New dependency requires reviewed form_urlencoded 1.2.3. No new unsafe code or ambient capabilities." + [[audits.uuid]] who = "Mykhailo Chalyi " criteria = "safe-to-deploy" From 7e541a1023f7fdca0e1d9274cfeb6d4f996f4004 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:15:21 +0000 Subject: [PATCH 4/6] perf(interpreter): dispatch builtins through their trait objects --- crates/bashkit/src/interpreter/mod.rs | 8 ++++++-- knowledge/foundations/builtins.md | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/crates/bashkit/src/interpreter/mod.rs b/crates/bashkit/src/interpreter/mod.rs index 026fc0c27..42f8864e6 100644 --- a/crates/bashkit/src/interpreter/mod.rs +++ b/crates/bashkit/src/interpreter/mod.rs @@ -10186,7 +10186,9 @@ impl Interpreter { shell: Some(shell_ref), }; - let plan_result = AssertUnwindSafe(builtin.execution_plan(&plan_ctx)) + // Call the trait object directly so Arc forwarding does not + // allocate and poll an additional async wrapper. + let plan_result = AssertUnwindSafe(builtin.as_ref().execution_plan(&plan_ctx)) .catch_unwind() .await; @@ -10306,7 +10308,9 @@ impl Interpreter { }; // THREAT[TM-INT-001]: Execute builtin with panic catching for security - let result = AssertUnwindSafe(builtin.execute(ctx)).catch_unwind().await; + let result = AssertUnwindSafe(builtin.as_ref().execute(ctx)) + .catch_unwind() + .await; let mut result = match result { Ok(Ok(exec_result)) => exec_result, diff --git a/knowledge/foundations/builtins.md b/knowledge/foundations/builtins.md index c6eaaa501..1d416260f 100644 --- a/knowledge/foundations/builtins.md +++ b/knowledge/foundations/builtins.md @@ -21,6 +21,11 @@ hook restrictions, bindings, tests and explicitly buffered roadmap boundaries. ## Status Implemented +Builtin dispatch calls the `dyn Builtin` object inside its `Arc` directly for +execution-plan lookup and execution. Calling the forwarding implementation +on `Arc` creates an additional boxed future at each boundary. +The direct call keeps the existing hooks, budgets, and panic handling. + ## Decision Bashkit provides built-in commands for script execution in a virtual environment. From 403e8b1aacef157333d0b2057a0da73dadaa898a Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:36:19 +0000 Subject: [PATCH 5/6] fix(interpreter): contain builtin future construction panics --- crates/bashkit/src/builtins/mod.rs | 55 +++++++++++++++++++++++++++ crates/bashkit/src/interpreter/mod.rs | 10 +++-- 2 files changed, 61 insertions(+), 4 deletions(-) diff --git a/crates/bashkit/src/builtins/mod.rs b/crates/bashkit/src/builtins/mod.rs index 4cff3806b..bf891e5eb 100644 --- a/crates/bashkit/src/builtins/mod.rs +++ b/crates/bashkit/src/builtins/mod.rs @@ -1847,6 +1847,61 @@ mod tests { use super::*; use crate::fs::{FileSystem, InMemoryFs}; + struct PanicWhileCreatingFuture { + plan: bool, + } + + type TestBuiltinFuture<'future, T> = + std::pin::Pin> + Send + 'future>>; + + impl Builtin for PanicWhileCreatingFuture { + fn execute<'receiver, 'context, 'future>( + &'receiver self, + _ctx: Context<'context>, + ) -> TestBuiltinFuture<'future, ExecResult> + where + 'receiver: 'future, + 'context: 'future, + Self: 'future, + { + panic!("custom future construction failed") + } + + fn execution_plan<'receiver, 'context, 'inner, 'future>( + &'receiver self, + _ctx: &'context Context<'inner>, + ) -> TestBuiltinFuture<'future, Option> + where + 'receiver: 'future, + 'context: 'future, + 'inner: 'future, + Self: 'future, + { + if self.plan { + panic!("custom plan construction failed"); + } + Box::pin(async { Ok(None) }) + } + } + + #[tokio::test] + async fn builtin_future_construction_panics_are_contained() { + for plan in [false, true] { + let mut bash = crate::Bash::builder() + .builtin("broken", Box::new(PanicWhileCreatingFuture { plan })) + .build(); + let output = bash.exec("broken 2>/err; echo $?; cat /err").await.unwrap(); + assert_eq!(output.exit_code, 0); + assert!(output.stdout.starts_with("1\n")); + assert!( + output + .stdout + .contains("broken: builtin failed unexpectedly\n") + ); + assert!(output.stderr.is_empty()); + } + } + #[test] fn test_resolve_path_absolute() { let cwd = PathBuf::from("/home/user"); diff --git a/crates/bashkit/src/interpreter/mod.rs b/crates/bashkit/src/interpreter/mod.rs index 42f8864e6..649415a85 100644 --- a/crates/bashkit/src/interpreter/mod.rs +++ b/crates/bashkit/src/interpreter/mod.rs @@ -10188,9 +10188,11 @@ impl Interpreter { // Call the trait object directly so Arc forwarding does not // allocate and poll an additional async wrapper. - let plan_result = AssertUnwindSafe(builtin.as_ref().execution_plan(&plan_ctx)) - .catch_unwind() - .await; + // Construct the future inside the catch boundary as well. + let plan_result = + AssertUnwindSafe(async { builtin.as_ref().execution_plan(&plan_ctx).await }) + .catch_unwind() + .await; match plan_result { Ok(Ok(Some(plan))) => { @@ -10308,7 +10310,7 @@ impl Interpreter { }; // THREAT[TM-INT-001]: Execute builtin with panic catching for security - let result = AssertUnwindSafe(builtin.as_ref().execute(ctx)) + let result = AssertUnwindSafe(async { builtin.as_ref().execute(ctx).await }) .catch_unwind() .await; From 6344cdebd93fc5bda2d9e7d8fc4c4782e65a612d Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:39:52 +0000 Subject: [PATCH 6/6] chore(bench): record interpreter validation results --- ...-829b55465cb1-linux-x86_64-1795368401.json | 4842 +++++++++++++++++ ...ch-829b55465cb1-linux-x86_64-1795368401.md | 308 ++ site/src/data/performance-timeline.json | 238 +- 3 files changed, 5330 insertions(+), 58 deletions(-) create mode 100644 crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.json create mode 100644 crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.md diff --git a/crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.json b/crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.json new file mode 100644 index 000000000..2270f76de --- /dev/null +++ b/crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.json @@ -0,0 +1,4842 @@ +{ + "moniker": "829b55465cb1-linux-x86_64", + "timestamp": "1795368401", + "system": { + "hostname": "829b55465cb1", + "os": "linux", + "arch": "x86_64", + "cpus": 3, + "moniker": "829b55465cb1-linux-x86_64" + }, + "iterations": 10, + "warmup": 2, + "prewarm_cases": 3, + "runners": [ + "bashkit", + "bash" + ], + "runner_versions": { + "bash": "/usr/bin/bash (GNU Bash 5.2.37(1)-release)" + }, + "results": [ + { + "runner": "bashkit", + "case_name": "startup_empty", + "category": "startup", + "iterations": 10, + "times_ns": [ + 139078, + 119159, + 119356, + 2158915, + 151549, + 757336, + 270586, + 244634, + 136792, + 340566 + ], + "mean_ns": 443797.1, + "stddev_ns": 600285.5549578799, + "min_ns": 119159, + "max_ns": 2158915, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "startup_empty", + "category": "startup", + "iterations": 10, + "times_ns": [ + 4518960, + 6973569, + 5142500, + 3724275, + 8655262, + 29987943, + 6859146, + 12581957, + 4958698, + 5068915 + ], + "mean_ns": 8847122.5, + "stddev_ns": 7459744.13700906, + "min_ns": 3724275, + "max_ns": 29987943, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "startup_true", + "category": "startup", + "iterations": 10, + "times_ns": [ + 140730, + 130534, + 126150, + 122881, + 306035, + 145709, + 129119, + 124923, + 126433, + 122649 + ], + "mean_ns": 147516.3, + "stddev_ns": 53330.21633755108, + "min_ns": 122649, + "max_ns": 306035, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "startup_true", + "category": "startup", + "iterations": 10, + "times_ns": [ + 3282888, + 4322203, + 4191936, + 3144362, + 4670001, + 27180841, + 5078653, + 3213041, + 4834830, + 3041526 + ], + "mean_ns": 6296028.1, + "stddev_ns": 6999059.015010124, + "min_ns": 3041526, + "max_ns": 27180841, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "startup_echo", + "category": "startup", + "iterations": 10, + "times_ns": [ + 142145, + 131128, + 122863, + 118306, + 114853, + 123072, + 122732, + 166914, + 155610, + 124408 + ], + "mean_ns": 132203.1, + "stddev_ns": 16333.89694745256, + "min_ns": 114853, + "max_ns": 166914, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "startup_echo", + "category": "startup", + "iterations": 10, + "times_ns": [ + 3798854, + 5457325, + 5700962, + 4978373, + 4797611, + 7978322, + 3612648, + 4568829, + 3230583, + 28515841 + ], + "mean_ns": 7263934.8, + "stddev_ns": 7197481.067973181, + "min_ns": 3230583, + "max_ns": 28515841, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "startup_exit", + "category": "startup", + "iterations": 10, + "times_ns": [ + 285895, + 142621, + 124598, + 119028, + 120159, + 152454, + 132043, + 123443, + 118533, + 115336 + ], + "mean_ns": 143411.0, + "stddev_ns": 48793.72738785181, + "min_ns": 115336, + "max_ns": 285895, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "startup_exit", + "category": "startup", + "iterations": 10, + "times_ns": [ + 7955861, + 4252299, + 4809260, + 5971445, + 4752508, + 3567295, + 4379221, + 4268598, + 2997724, + 4797517 + ], + "mean_ns": 4775172.8, + "stddev_ns": 1298272.135522734, + "min_ns": 2997724, + "max_ns": 7955861, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_assign_simple", + "category": "variables", + "iterations": 10, + "times_ns": [ + 148989, + 138552, + 135006, + 130244, + 175621, + 164538, + 144265, + 135809, + 141375, + 130804 + ], + "mean_ns": 144520.3, + "stddev_ns": 14113.355760059334, + "min_ns": 130244, + "max_ns": 175621, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_assign_simple", + "category": "variables", + "iterations": 10, + "times_ns": [ + 6996883, + 4978374, + 2854761, + 4046761, + 5553104, + 8018129, + 2639246, + 4366866, + 3387314, + 4710906 + ], + "mean_ns": 4755234.4, + "stddev_ns": 1642345.842072686, + "min_ns": 2639246, + "max_ns": 8018129, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_assign_many", + "category": "variables", + "iterations": 10, + "times_ns": [ + 359277, + 199613, + 190463, + 186347, + 180227, + 308391, + 191182, + 180788, + 277594, + 236867 + ], + "mean_ns": 231074.9, + "stddev_ns": 59963.83925241946, + "min_ns": 180227, + "max_ns": 359277, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_assign_many", + "category": "variables", + "iterations": 10, + "times_ns": [ + 6756063, + 4757992, + 3277529, + 4956450, + 4364781, + 3535541, + 3139430, + 10487714, + 11886914, + 5945190 + ], + "mean_ns": 5910760.4, + "stddev_ns": 2868172.2509139227, + "min_ns": 3139430, + "max_ns": 11886914, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_default", + "category": "variables", + "iterations": 10, + "times_ns": [ + 176172, + 132395, + 129825, + 121248, + 133247, + 128385, + 129119, + 179909, + 129354, + 124611 + ], + "mean_ns": 138426.5, + "stddev_ns": 20095.902638348944, + "min_ns": 121248, + "max_ns": 179909, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_default", + "category": "variables", + "iterations": 10, + "times_ns": [ + 6271345, + 5963206, + 6256920, + 10177527, + 6628688, + 9436504, + 6569319, + 33554851, + 5627865, + 4825439 + ], + "mean_ns": 9531166.4, + "stddev_ns": 8162218.9647483025, + "min_ns": 4825439, + "max_ns": 33554851, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_length", + "category": "variables", + "iterations": 10, + "times_ns": [ + 148963, + 139384, + 348122, + 668567, + 226819, + 191153, + 145336, + 136294, + 282302, + 153019 + ], + "mean_ns": 243995.9, + "stddev_ns": 156602.30269600122, + "min_ns": 136294, + "max_ns": 668567, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_length", + "category": "variables", + "iterations": 10, + "times_ns": [ + 7455292, + 6220939, + 5106377, + 14290508, + 5347844, + 2956589, + 25294248, + 4990730, + 5921654, + 9223198 + ], + "mean_ns": 8680737.9, + "stddev_ns": 6270595.268001235, + "min_ns": 2956589, + "max_ns": 25294248, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_substring", + "category": "variables", + "iterations": 10, + "times_ns": [ + 156418, + 147502, + 241143, + 195788, + 195418, + 465114, + 266290, + 429135, + 225016, + 160558 + ], + "mean_ns": 248238.2, + "stddev_ns": 106057.43273981319, + "min_ns": 147502, + "max_ns": 465114, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_substring", + "category": "variables", + "iterations": 10, + "times_ns": [ + 6072616, + 5200316, + 46309629, + 7093084, + 5658715, + 10683548, + 6064732, + 2957916, + 10549063, + 6088806 + ], + "mean_ns": 10667842.5, + "stddev_ns": 12086482.853096515, + "min_ns": 2957916, + "max_ns": 46309629, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_replace", + "category": "variables", + "iterations": 10, + "times_ns": [ + 4491672, + 187594, + 159050, + 209053, + 197524, + 172592, + 152546, + 139705, + 147231, + 201118 + ], + "mean_ns": 605808.5, + "stddev_ns": 1295491.66158924, + "min_ns": 139705, + "max_ns": 4491672, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_replace", + "category": "variables", + "iterations": 10, + "times_ns": [ + 22598749, + 16550942, + 5613464, + 6852686, + 7083765, + 5011672, + 3107905, + 4322392, + 5096878, + 2232745 + ], + "mean_ns": 7847119.8, + "stddev_ns": 6180101.729536041, + "min_ns": 2232745, + "max_ns": 22598749, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_nested", + "category": "variables", + "iterations": 10, + "times_ns": [ + 160618, + 149222, + 4653800, + 250521, + 244933, + 213866, + 277662, + 333539, + 380688, + 186927 + ], + "mean_ns": 685177.6, + "stddev_ns": 1324686.2825255797, + "min_ns": 149222, + "max_ns": 4653800, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_nested", + "category": "variables", + "iterations": 10, + "times_ns": [ + 9071451, + 5452926, + 22364246, + 24202490, + 19782002, + 8088066, + 44074579, + 5702014, + 5074547, + 2476550 + ], + "mean_ns": 14628887.1, + "stddev_ns": 12335365.776090853, + "min_ns": 2476550, + "max_ns": 44074579, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "var_export", + "category": "variables", + "iterations": 10, + "times_ns": [ + 100824, + 91149, + 88901, + 130870, + 91521, + 86506, + 85054, + 85554, + 86158, + 85000 + ], + "mean_ns": 93153.7, + "stddev_ns": 13375.716482117885, + "min_ns": 85000, + "max_ns": 130870, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "var_export", + "category": "variables", + "iterations": 10, + "times_ns": [ + 2990191, + 1973569, + 1828964, + 2149190, + 1816269, + 1697673, + 1887755, + 2374098, + 4576590, + 2636441 + ], + "mean_ns": 2393074.0, + "stddev_ns": 825178.5390070443, + "min_ns": 1697673, + "max_ns": 4576590, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arith_basic", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 106091, + 89066, + 84388, + 80301, + 81800, + 98394, + 80918, + 78658, + 78641, + 79059 + ], + "mean_ns": 85731.6, + "stddev_ns": 8948.299740174109, + "min_ns": 78641, + "max_ns": 106091, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arith_basic", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 2335069, + 3601286, + 4066446, + 3305581, + 2740855, + 2614180, + 2723661, + 2357135, + 7632267, + 6286412 + ], + "mean_ns": 3766289.2, + "stddev_ns": 1706646.6176180586, + "min_ns": 2335069, + "max_ns": 7632267, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arith_complex", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 148499, + 137594, + 132651, + 241495, + 182685, + 138197, + 132463, + 130906, + 124495, + 124078 + ], + "mean_ns": 149306.3, + "stddev_ns": 34678.34311800378, + "min_ns": 124078, + "max_ns": 241495, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arith_complex", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 10248568, + 6188903, + 10085717, + 6657685, + 4474146, + 7154898, + 3047134, + 10295732, + 31030140, + 8084486 + ], + "mean_ns": 9726740.9, + "stddev_ns": 7470029.525733583, + "min_ns": 3047134, + "max_ns": 31030140, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arith_variables", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 258734, + 371339, + 261334, + 147204, + 135710, + 182215, + 141959, + 136281, + 136926, + 135394 + ], + "mean_ns": 190709.6, + "stddev_ns": 76500.68052403194, + "min_ns": 135394, + "max_ns": 371339, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arith_variables", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 5155243, + 5898336, + 27149914, + 29989111, + 8679492, + 13000443, + 5859495, + 7874496, + 12385547, + 7820724 + ], + "mean_ns": 12381280.1, + "stddev_ns": 8486003.207905598, + "min_ns": 5155243, + "max_ns": 29989111, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arith_increment", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 167266, + 161441, + 156582, + 204537, + 157647, + 317440, + 154955, + 144874, + 181253, + 322166 + ], + "mean_ns": 196816.1, + "stddev_ns": 63476.362382307314, + "min_ns": 144874, + "max_ns": 322166, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arith_increment", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 5886877, + 8553535, + 7564189, + 9612601, + 3113546, + 16736775, + 6820180, + 8431043, + 33963462, + 11664306 + ], + "mean_ns": 11234651.4, + "stddev_ns": 8320140.305963154, + "min_ns": 3113546, + "max_ns": 33963462, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arith_modulo", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 133784, + 227221, + 135042, + 133298, + 211984, + 128712, + 120237, + 114160, + 112855, + 117463 + ], + "mean_ns": 143475.6, + "stddev_ns": 38996.16195781324, + "min_ns": 112855, + "max_ns": 227221, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arith_modulo", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 6398597, + 7803904, + 5861424, + 6323293, + 5655394, + 25351270, + 10943692, + 6618002, + 7595950, + 7950721 + ], + "mean_ns": 9050224.7, + "stddev_ns": 5623724.330634408, + "min_ns": 5655394, + "max_ns": 25351270, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arith_loop_sum", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 232663, + 551844, + 274059, + 342525, + 256639, + 220878, + 209051, + 474218, + 272171, + 214996 + ], + "mean_ns": 304904.4, + "stddev_ns": 111787.60405536921, + "min_ns": 209051, + "max_ns": 551844, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arith_loop_sum", + "category": "arithmetic", + "iterations": 10, + "times_ns": [ + 6077857, + 5424291, + 33527985, + 8872445, + 5704852, + 7093907, + 4717684, + 10413470, + 6721002, + 7709907 + ], + "mean_ns": 9626340.0, + "stddev_ns": 8128501.740858164, + "min_ns": 4717684, + "max_ns": 33527985, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_if_simple", + "category": "control", + "iterations": 10, + "times_ns": [ + 196670, + 143794, + 141813, + 139742, + 286828, + 246756, + 146037, + 137662, + 224584, + 179486 + ], + "mean_ns": 184337.2, + "stddev_ns": 50281.38603459534, + "min_ns": 137662, + "max_ns": 286828, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_if_simple", + "category": "control", + "iterations": 10, + "times_ns": [ + 26894456, + 7773498, + 31902862, + 8001591, + 53035835, + 7141155, + 7199801, + 8289163, + 5351197, + 7154361 + ], + "mean_ns": 16274391.9, + "stddev_ns": 15103516.8655481, + "min_ns": 5351197, + "max_ns": 53035835, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_if_else", + "category": "control", + "iterations": 10, + "times_ns": [ + 165901, + 149144, + 144160, + 390619, + 185839, + 267551, + 179789, + 139890, + 337706, + 142356 + ], + "mean_ns": 210295.5, + "stddev_ns": 85565.15144058356, + "min_ns": 139890, + "max_ns": 390619, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_if_else", + "category": "control", + "iterations": 10, + "times_ns": [ + 17784290, + 7489030, + 9306291, + 6862585, + 7809228, + 17564831, + 6367923, + 197154994, + 65247757, + 11273652 + ], + "mean_ns": 34686058.1, + "stddev_ns": 56691583.904910274, + "min_ns": 6367923, + "max_ns": 197154994, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_for_list", + "category": "control", + "iterations": 10, + "times_ns": [ + 267771, + 311222, + 4384468, + 230977, + 300685, + 197754, + 211255, + 186765, + 178922, + 176008 + ], + "mean_ns": 644582.7, + "stddev_ns": 1247502.3743474036, + "min_ns": 176008, + "max_ns": 4384468, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_for_list", + "category": "control", + "iterations": 10, + "times_ns": [ + 12605559, + 6375837, + 8289899, + 8518863, + 11419884, + 9659648, + 6419958, + 30811180, + 5064561, + 8169202 + ], + "mean_ns": 10733459.1, + "stddev_ns": 7038652.485336528, + "min_ns": 5064561, + "max_ns": 30811180, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_for_range", + "category": "control", + "iterations": 10, + "times_ns": [ + 209893, + 292019, + 206978, + 352351, + 197344, + 333423, + 216062, + 193085, + 188957, + 182426 + ], + "mean_ns": 237253.8, + "stddev_ns": 60408.42740015668, + "min_ns": 182426, + "max_ns": 352351, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_for_range", + "category": "control", + "iterations": 10, + "times_ns": [ + 7265864, + 7990842, + 5725547, + 7949494, + 25420251, + 10534604, + 6786435, + 7348743, + 8173323, + 8496202 + ], + "mean_ns": 9569130.5, + "stddev_ns": 5414383.777463752, + "min_ns": 5725547, + "max_ns": 25420251, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_while", + "category": "control", + "iterations": 10, + "times_ns": [ + 285466, + 289601, + 255734, + 254518, + 450918, + 264325, + 443989, + 298568, + 371322, + 279952 + ], + "mean_ns": 319439.3, + "stddev_ns": 71303.00461698652, + "min_ns": 254518, + "max_ns": 450918, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_while", + "category": "control", + "iterations": 10, + "times_ns": [ + 7573801, + 27193895, + 8987653, + 7935200, + 7973912, + 7791114, + 8602303, + 7849024, + 9669234, + 64796992 + ], + "mean_ns": 15837312.8, + "stddev_ns": 17275551.244728897, + "min_ns": 7573801, + "max_ns": 64796992, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_case", + "category": "control", + "iterations": 10, + "times_ns": [ + 156334, + 148871, + 136023, + 136769, + 139336, + 197561, + 139061, + 132609, + 137925, + 200353 + ], + "mean_ns": 152484.2, + "stddev_ns": 24143.748763603387, + "min_ns": 132609, + "max_ns": 200353, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_case", + "category": "control", + "iterations": 10, + "times_ns": [ + 8088643, + 38228223, + 5798299, + 8613607, + 7518677, + 9399829, + 6944695, + 4950361, + 6650288, + 7766213 + ], + "mean_ns": 10395883.5, + "stddev_ns": 9359787.846337834, + "min_ns": 4950361, + "max_ns": 38228223, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_function", + "category": "control", + "iterations": 10, + "times_ns": [ + 168348, + 157161, + 151180, + 149892, + 203536, + 152334, + 149714, + 172364, + 152287, + 442042 + ], + "mean_ns": 189885.8, + "stddev_ns": 85525.49558441622, + "min_ns": 149714, + "max_ns": 442042, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_function", + "category": "control", + "iterations": 10, + "times_ns": [ + 6570590, + 8714471, + 7842267, + 7773059, + 9564401, + 6601424, + 9338479, + 6103822, + 8000104, + 152959192 + ], + "mean_ns": 22346780.9, + "stddev_ns": 43551448.390851535, + "min_ns": 6103822, + "max_ns": 152959192, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_function_return", + "category": "control", + "iterations": 10, + "times_ns": [ + 281798, + 214135, + 204130, + 199208, + 318200, + 213448, + 204800, + 203236, + 200800, + 237850 + ], + "mean_ns": 227760.5, + "stddev_ns": 38497.79797663757, + "min_ns": 199208, + "max_ns": 318200, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_function_return", + "category": "control", + "iterations": 10, + "times_ns": [ + 8576806, + 35439670, + 8774717, + 10892070, + 8832070, + 8275840, + 11030239, + 8773190, + 30175439, + 10282083 + ], + "mean_ns": 14105212.4, + "stddev_ns": 9471023.507096361, + "min_ns": 8275840, + "max_ns": 35439670, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "ctrl_nested_loops", + "category": "control", + "iterations": 10, + "times_ns": [ + 516886, + 435653, + 321463, + 694180, + 334944, + 4364602, + 251525, + 228619, + 230271, + 305785 + ], + "mean_ns": 768392.8, + "stddev_ns": 1206727.5098068991, + "min_ns": 228619, + "max_ns": 4364602, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "ctrl_nested_loops", + "category": "control", + "iterations": 10, + "times_ns": [ + 8108723, + 8608702, + 6939741, + 7689219, + 61365121, + 7510133, + 7877666, + 8825715, + 6662760, + 7772440 + ], + "mean_ns": 13136022.0, + "stddev_ns": 16088594.491782201, + "min_ns": 6662760, + "max_ns": 61365121, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_concat", + "category": "strings", + "iterations": 10, + "times_ns": [ + 142659, + 131235, + 132399, + 135064, + 132161, + 180407, + 139129, + 127420, + 133086, + 140682 + ], + "mean_ns": 139424.2, + "stddev_ns": 14367.249136838966, + "min_ns": 127420, + "max_ns": 180407, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_concat", + "category": "strings", + "iterations": 10, + "times_ns": [ + 7441248, + 7892237, + 7956565, + 5648347, + 6243448, + 5728927, + 6305843, + 5701984, + 25488561, + 7956490 + ], + "mean_ns": 8636365.0, + "stddev_ns": 5692559.379653549, + "min_ns": 5648347, + "max_ns": 25488561, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_printf", + "category": "strings", + "iterations": 10, + "times_ns": [ + 183228, + 146874, + 142522, + 138325, + 128539, + 183868, + 349083, + 144287, + 134437, + 134845 + ], + "mean_ns": 168600.8, + "stddev_ns": 62922.47337764148, + "min_ns": 128539, + "max_ns": 349083, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_printf", + "category": "strings", + "iterations": 10, + "times_ns": [ + 8300734, + 8244893, + 9135733, + 6443056, + 8036431, + 30995861, + 10618941, + 6631511, + 7719914, + 7993219 + ], + "mean_ns": 10412029.3, + "stddev_ns": 6952025.480024409, + "min_ns": 6443056, + "max_ns": 30995861, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_printf_pad", + "category": "strings", + "iterations": 10, + "times_ns": [ + 139182, + 135604, + 136800, + 266532, + 140303, + 130239, + 126124, + 125333, + 126094, + 122817 + ], + "mean_ns": 144902.8, + "stddev_ns": 40977.886726379635, + "min_ns": 122817, + "max_ns": 266532, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_printf_pad", + "category": "strings", + "iterations": 10, + "times_ns": [ + 9379395, + 31402542, + 7280950, + 7996271, + 7980574, + 9338118, + 6737369, + 7689239, + 8225713, + 4812840 + ], + "mean_ns": 10084301.1, + "stddev_ns": 7213503.451844803, + "min_ns": 4812840, + "max_ns": 31402542, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_echo_escape", + "category": "strings", + "iterations": 10, + "times_ns": [ + 171723, + 144804, + 132917, + 128178, + 4463266, + 153115, + 370816, + 148373, + 161204, + 123070 + ], + "mean_ns": 599746.6, + "stddev_ns": 1289667.9134988356, + "min_ns": 123070, + "max_ns": 4463266, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_echo_escape", + "category": "strings", + "iterations": 10, + "times_ns": [ + 6879200, + 7830850, + 7739182, + 7855730, + 8374417, + 8319410, + 7229196, + 28501272, + 14442442, + 11766830 + ], + "mean_ns": 10893852.9, + "stddev_ns": 6280623.922754752, + "min_ns": 6879200, + "max_ns": 28501272, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_prefix_strip", + "category": "strings", + "iterations": 10, + "times_ns": [ + 195085, + 155660, + 139768, + 150419, + 140561, + 181610, + 137888, + 132255, + 133445, + 126412 + ], + "mean_ns": 149310.3, + "stddev_ns": 21319.33279467254, + "min_ns": 126412, + "max_ns": 195085, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_prefix_strip", + "category": "strings", + "iterations": 10, + "times_ns": [ + 13892379, + 19075924, + 12725828, + 12081274, + 12040465, + 30540521, + 12678312, + 13452300, + 10636729, + 13968074 + ], + "mean_ns": 15109180.6, + "stddev_ns": 5563873.22252979, + "min_ns": 10636729, + "max_ns": 30540521, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_suffix_strip", + "category": "strings", + "iterations": 10, + "times_ns": [ + 1429171, + 1047436, + 378152, + 23699808, + 183833, + 139995, + 223091, + 149041, + 137933, + 124411 + ], + "mean_ns": 2751287.1, + "stddev_ns": 6995910.395526281, + "min_ns": 124411, + "max_ns": 23699808, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_suffix_strip", + "category": "strings", + "iterations": 10, + "times_ns": [ + 11925606, + 19582194, + 13172381, + 34676525, + 14171651, + 10578761, + 6255343, + 8462726, + 8888908, + 7785614 + ], + "mean_ns": 13549970.9, + "stddev_ns": 7929436.854192718, + "min_ns": 6255343, + "max_ns": 34676525, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_uppercase", + "category": "strings", + "iterations": 10, + "times_ns": [ + 188831, + 138095, + 135583, + 168441, + 134367, + 126247, + 125996, + 124083, + 121799, + 119631 + ], + "mean_ns": 138307.3, + "stddev_ns": 21457.76034002617, + "min_ns": 119631, + "max_ns": 188831, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_uppercase", + "category": "strings", + "iterations": 10, + "times_ns": [ + 12266766, + 22949133, + 8776524, + 29765118, + 17229249, + 6616285, + 9166060, + 6597782, + 8324217, + 9155713 + ], + "mean_ns": 13084684.7, + "stddev_ns": 7411649.211832762, + "min_ns": 6597782, + "max_ns": 29765118, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "str_lowercase", + "category": "strings", + "iterations": 10, + "times_ns": [ + 212679, + 156212, + 144654, + 138099, + 136675, + 480280, + 165574, + 145936, + 137153, + 280215 + ], + "mean_ns": 199747.7, + "stddev_ns": 102971.65346836962, + "min_ns": 136675, + "max_ns": 480280, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "str_lowercase", + "category": "strings", + "iterations": 10, + "times_ns": [ + 8879921, + 9194350, + 6446021, + 7498193, + 4001947, + 4630612, + 9207577, + 6456548, + 4037305, + 7728683 + ], + "mean_ns": 6808115.7, + "stddev_ns": 1939478.4399592099, + "min_ns": 4001947, + "max_ns": 9207577, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arr_create", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 154756, + 149682, + 147733, + 199158, + 153193, + 146754, + 151808, + 145874, + 429528, + 155315 + ], + "mean_ns": 183380.1, + "stddev_ns": 83370.9989546125, + "min_ns": 145874, + "max_ns": 429528, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arr_create", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 3593505, + 13696402, + 17774656, + 45044879, + 11258634, + 10222852, + 6245329, + 7353579, + 7890454, + 10057908 + ], + "mean_ns": 13313819.8, + "stddev_ns": 11227955.414744075, + "min_ns": 3593505, + "max_ns": 45044879, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arr_all", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 168327, + 162130, + 156923, + 416316, + 182717, + 1758339, + 215028, + 372467, + 352712, + 313669 + ], + "mean_ns": 409862.8, + "stddev_ns": 458867.4156838334, + "min_ns": 156923, + "max_ns": 1758339, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arr_all", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 37932448, + 7227763, + 6973581, + 9560877, + 6903414, + 7804869, + 8114184, + 9160997, + 6698146, + 9196820 + ], + "mean_ns": 10957309.9, + "stddev_ns": 9046046.532686647, + "min_ns": 6698146, + "max_ns": 37932448, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arr_length", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 163245, + 189796, + 176439, + 153813, + 149490, + 148602, + 147239, + 594788, + 281107, + 568331 + ], + "mean_ns": 257285.0, + "stddev_ns": 166555.71820264834, + "min_ns": 147239, + "max_ns": 594788, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arr_length", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 8547998, + 7745188, + 7756344, + 7802161, + 8100356, + 87177156, + 5257314, + 7846488, + 27160985, + 14272649 + ], + "mean_ns": 18166663.9, + "stddev_ns": 23769561.751482103, + "min_ns": 5257314, + "max_ns": 87177156, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arr_iterate", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 215927, + 318997, + 183321, + 282867, + 310316, + 344689, + 179355, + 166937, + 228272, + 169064 + ], + "mean_ns": 239974.5, + "stddev_ns": 64776.326089475006, + "min_ns": 166937, + "max_ns": 344689, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arr_iterate", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 4028397, + 8698549, + 3434384, + 8626887, + 8777881, + 6098866, + 4121837, + 29634983, + 7310808, + 13306059 + ], + "mean_ns": 9403865.1, + "stddev_ns": 7305835.752332343, + "min_ns": 3434384, + "max_ns": 29634983, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arr_slice", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 180227, + 174500, + 216716, + 491905, + 253629, + 509273, + 340678, + 530828, + 276027, + 209172 + ], + "mean_ns": 318295.5, + "stddev_ns": 134245.47506657348, + "min_ns": 174500, + "max_ns": 530828, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arr_slice", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 3365489, + 10129588, + 6046176, + 9095386, + 36459895, + 8975251, + 10752116, + 6870507, + 9178043, + 7097558 + ], + "mean_ns": 10797000.9, + "stddev_ns": 8802089.623132527, + "min_ns": 3365489, + "max_ns": 36459895, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "arr_assign_index", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 238390, + 294487, + 178715, + 322673, + 177216, + 542799, + 183110, + 171204, + 343515, + 180635 + ], + "mean_ns": 263274.4, + "stddev_ns": 112242.1978100928, + "min_ns": 171204, + "max_ns": 542799, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "arr_assign_index", + "category": "arrays", + "iterations": 10, + "times_ns": [ + 7919162, + 7499176, + 4216806, + 2834591, + 2493440, + 2325496, + 2330847, + 2585589, + 2459471, + 2616588 + ], + "mean_ns": 3728116.6, + "stddev_ns": 2059548.8793352877, + "min_ns": 2325496, + "max_ns": 7919162, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "pipe_simple", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 192717, + 186304, + 224303, + 172875, + 175457, + 178810, + 180177, + 233551, + 189220, + 178015 + ], + "mean_ns": 191142.9, + "stddev_ns": 19879.854725072815, + "min_ns": 172875, + "max_ns": 233551, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "pipe_simple", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 25610089, + 5242987, + 5391064, + 6485809, + 7916984, + 5950078, + 5255460, + 5903156, + 6781730, + 5951403 + ], + "mean_ns": 8048876.0, + "stddev_ns": 5904329.30965484, + "min_ns": 5242987, + "max_ns": 25610089, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "pipe_multi", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 496951, + 371243, + 363884, + 445624, + 360939, + 591840, + 364523, + 397281, + 456757, + 349854 + ], + "mean_ns": 419889.6, + "stddev_ns": 74153.05157335063, + "min_ns": 349854, + "max_ns": 591840, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "pipe_multi", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 19424426, + 10395392, + 12777114, + 13023496, + 35661252, + 10802960, + 17698181, + 14219241, + 8700676, + 10930917 + ], + "mean_ns": 15363365.5, + "stddev_ns": 7462818.296327872, + "min_ns": 8700676, + "max_ns": 35661252, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "pipe_command_subst", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 219491, + 394485, + 215733, + 174455, + 287367, + 174881, + 330741, + 181255, + 264239, + 208397 + ], + "mean_ns": 245104.4, + "stddev_ns": 69761.03447656149, + "min_ns": 174455, + "max_ns": 394485, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "pipe_command_subst", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 40664883, + 83025041, + 75078557, + 18891902, + 28163675, + 55558539, + 31397253, + 19010211, + 57005906, + 37649476 + ], + "mean_ns": 44644544.3, + "stddev_ns": 21221230.625896055, + "min_ns": 18891902, + "max_ns": 83025041, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "pipe_heredoc", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 232193, + 181899, + 372004, + 358915, + 188389, + 174003, + 169448, + 165735, + 344944, + 183437 + ], + "mean_ns": 237096.7, + "stddev_ns": 81635.16861383946, + "min_ns": 165735, + "max_ns": 372004, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "pipe_heredoc", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 22013698, + 189004067, + 31335324, + 69767788, + 43667444, + 57437920, + 5547531, + 4728282, + 16416975, + 10085007 + ], + "mean_ns": 45000403.6, + "stddev_ns": 52379900.99052534, + "min_ns": 4728282, + "max_ns": 189004067, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "pipe_herestring", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 146891, + 134612, + 178908, + 3130945, + 198283, + 133007, + 100849, + 98728, + 98850, + 142409 + ], + "mean_ns": 436348.2, + "stddev_ns": 898749.180816628, + "min_ns": 98728, + "max_ns": 3130945, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "pipe_herestring", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 38815953, + 14380418, + 82012003, + 56619379, + 65107129, + 18193819, + 60466060, + 25318408, + 94270221, + 35020533 + ], + "mean_ns": 49020392.3, + "stddev_ns": 25681979.133450728, + "min_ns": 14380418, + "max_ns": 94270221, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "pipe_discard", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 203168, + 203244, + 258012, + 356810, + 162976, + 159970, + 152991, + 330706, + 168517, + 165212 + ], + "mean_ns": 216160.6, + "stddev_ns": 70591.88643633205, + "min_ns": 152991, + "max_ns": 356810, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "pipe_discard", + "category": "pipes", + "iterations": 10, + "times_ns": [ + 96773966, + 98926293, + 101494340, + 46272139, + 25059408, + 35639694, + 39619032, + 41026950, + 49746428, + 29021980 + ], + "mean_ns": 56358023.0, + "stddev_ns": 28808989.464401286, + "min_ns": 25059408, + "max_ns": 101494340, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_grep_simple", + "category": "tools", + "iterations": 10, + "times_ns": [ + 207507, + 238767, + 218636, + 197985, + 199148, + 199183, + 401922, + 325149, + 208644, + 313412 + ], + "mean_ns": 251035.3, + "stddev_ns": 67259.00516369536, + "min_ns": 197985, + "max_ns": 401922, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_grep_simple", + "category": "tools", + "iterations": 10, + "times_ns": [ + 49423102, + 65735502, + 49847376, + 28701265, + 13009588, + 35991578, + 19881795, + 20554593, + 21108612, + 57931416 + ], + "mean_ns": 36218482.7, + "stddev_ns": 17431524.440757092, + "min_ns": 13009588, + "max_ns": 65735502, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_grep_case", + "category": "tools", + "iterations": 10, + "times_ns": [ + 236026, + 204860, + 196386, + 226612, + 200337, + 193278, + 193180, + 4678662, + 367933, + 244506 + ], + "mean_ns": 674178.0, + "stddev_ns": 1335750.0661799721, + "min_ns": 193180, + "max_ns": 4678662, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_grep_case", + "category": "tools", + "iterations": 10, + "times_ns": [ + 32149303, + 13317809, + 12070402, + 16202508, + 16740586, + 35785246, + 15189842, + 12049857, + 12026509, + 16055367 + ], + "mean_ns": 18158742.9, + "stddev_ns": 8129768.05103349, + "min_ns": 12026509, + "max_ns": 35785246, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_grep_count", + "category": "tools", + "iterations": 10, + "times_ns": [ + 134277, + 123530, + 411181, + 676712, + 189032, + 126800, + 560064, + 122031, + 113877, + 110950 + ], + "mean_ns": 256845.4, + "stddev_ns": 201557.87854420376, + "min_ns": 110950, + "max_ns": 676712, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_grep_count", + "category": "tools", + "iterations": 10, + "times_ns": [ + 86510772, + 21438007, + 19322473, + 19893587, + 38818695, + 13728151, + 14106675, + 19236999, + 84862527, + 18918209 + ], + "mean_ns": 33683609.5, + "stddev_ns": 26815890.504143782, + "min_ns": 13728151, + "max_ns": 86510772, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_grep_invert", + "category": "tools", + "iterations": 10, + "times_ns": [ + 248339, + 137558, + 120049, + 387275, + 212299, + 141018, + 120228, + 118206, + 142547, + 158228 + ], + "mean_ns": 178574.7, + "stddev_ns": 80522.68925470633, + "min_ns": 118206, + "max_ns": 387275, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_grep_invert", + "category": "tools", + "iterations": 10, + "times_ns": [ + 15688581, + 40094239, + 29581964, + 22381666, + 47171232, + 14200299, + 15008507, + 21647234, + 50324478, + 26530595 + ], + "mean_ns": 28262879.5, + "stddev_ns": 12644622.433405714, + "min_ns": 14200299, + "max_ns": 50324478, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_grep_regex", + "category": "tools", + "iterations": 10, + "times_ns": [ + 422017, + 44644514, + 610763, + 182557, + 161562, + 154672, + 147269, + 193736, + 182759, + 298848 + ], + "mean_ns": 4699869.7, + "stddev_ns": 13315634.771417364, + "min_ns": 147269, + "max_ns": 44644514, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_grep_regex", + "category": "tools", + "iterations": 10, + "times_ns": [ + 35962506, + 18448963, + 54973134, + 32080684, + 20371351, + 57526471, + 26151311, + 29647605, + 35022117, + 11514158 + ], + "mean_ns": 32169830.0, + "stddev_ns": 14079009.443567606, + "min_ns": 11514158, + "max_ns": 57526471, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_sed_replace", + "category": "tools", + "iterations": 10, + "times_ns": [ + 124981, + 115304, + 110384, + 107258, + 7273480, + 134603, + 123820, + 111567, + 107478, + 106009 + ], + "mean_ns": 831488.4, + "stddev_ns": 2147348.8740750626, + "min_ns": 106009, + "max_ns": 7273480, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_sed_replace", + "category": "tools", + "iterations": 10, + "times_ns": [ + 36639059, + 8596307, + 9609335, + 16114168, + 16223550, + 14889351, + 35740596, + 17268036, + 17569024, + 10315861 + ], + "mean_ns": 18296528.7, + "stddev_ns": 9467061.071098316, + "min_ns": 8596307, + "max_ns": 36639059, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_sed_global", + "category": "tools", + "iterations": 10, + "times_ns": [ + 125408, + 211918, + 120483, + 109668, + 1914763, + 145710, + 111357, + 156708, + 114316, + 104330 + ], + "mean_ns": 311466.1, + "stddev_ns": 535306.2431867295, + "min_ns": 104330, + "max_ns": 1914763, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_sed_global", + "category": "tools", + "iterations": 10, + "times_ns": [ + 20628131, + 16059862, + 15871824, + 39753512, + 16346497, + 19600921, + 19991007, + 40638235, + 11989442, + 13973197 + ], + "mean_ns": 21485262.8, + "stddev_ns": 9700710.38874671, + "min_ns": 11989442, + "max_ns": 40638235, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_sed_delete", + "category": "tools", + "iterations": 10, + "times_ns": [ + 236084, + 192601, + 177509, + 331406, + 304585, + 206354, + 324394, + 272412, + 195720, + 156294 + ], + "mean_ns": 239735.9, + "stddev_ns": 60798.89640684278, + "min_ns": 156294, + "max_ns": 331406, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_sed_delete", + "category": "tools", + "iterations": 10, + "times_ns": [ + 11726998, + 12079437, + 22507892, + 14992582, + 34459234, + 37078462, + 11020908, + 68249523, + 19905194, + 18140378 + ], + "mean_ns": 25016060.8, + "stddev_ns": 16804118.647912208, + "min_ns": 11020908, + "max_ns": 68249523, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_sed_lines", + "category": "tools", + "iterations": 10, + "times_ns": [ + 117237, + 293289, + 200435, + 112290, + 102210, + 100078, + 394465, + 111216, + 101850, + 99964 + ], + "mean_ns": 163303.4, + "stddev_ns": 97296.72623495612, + "min_ns": 99964, + "max_ns": 394465, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_sed_lines", + "category": "tools", + "iterations": 10, + "times_ns": [ + 17190538, + 16235101, + 14165230, + 41587188, + 16037897, + 16049163, + 15943304, + 39167464, + 15258350, + 11901064 + ], + "mean_ns": 20353529.9, + "stddev_ns": 10119786.434868252, + "min_ns": 11901064, + "max_ns": 41587188, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_sed_backrefs", + "category": "tools", + "iterations": 10, + "times_ns": [ + 228339, + 153283, + 139944, + 134945, + 132182, + 133471, + 131492, + 166855, + 140537, + 129512 + ], + "mean_ns": 149056.0, + "stddev_ns": 28623.896272170914, + "min_ns": 129512, + "max_ns": 228339, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_sed_backrefs", + "category": "tools", + "iterations": 10, + "times_ns": [ + 14409183, + 16506227, + 11532579, + 17511368, + 14377961, + 38932617, + 20709275, + 19294561, + 18659454, + 39708212 + ], + "mean_ns": 21164143.7, + "stddev_ns": 9429022.189987687, + "min_ns": 11532579, + "max_ns": 39708212, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_awk_print", + "category": "tools", + "iterations": 10, + "times_ns": [ + 133269, + 144735, + 114699, + 148231, + 116858, + 110599, + 108812, + 107942, + 109486, + 108556 + ], + "mean_ns": 120318.7, + "stddev_ns": 14907.339991091636, + "min_ns": 107942, + "max_ns": 148231, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_awk_print", + "category": "tools", + "iterations": 10, + "times_ns": [ + 15523916, + 11973458, + 37452505, + 16416545, + 15766872, + 16660376, + 41607125, + 19986242, + 16591595, + 14111897 + ], + "mean_ns": 20609053.1, + "stddev_ns": 9697472.923062261, + "min_ns": 11973458, + "max_ns": 41607125, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_awk_sum", + "category": "tools", + "iterations": 10, + "times_ns": [ + 166984, + 129977, + 122896, + 155878, + 124105, + 121965, + 122706, + 121191, + 117088, + 117055 + ], + "mean_ns": 129984.5, + "stddev_ns": 16286.06158191722, + "min_ns": 117055, + "max_ns": 166984, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_awk_sum", + "category": "tools", + "iterations": 10, + "times_ns": [ + 17012442, + 13871543, + 13055306, + 37842998, + 12438931, + 15338290, + 16009497, + 15856739, + 38704491, + 7987290 + ], + "mean_ns": 18811752.7, + "stddev_ns": 10025571.003655862, + "min_ns": 7987290, + "max_ns": 38704491, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_awk_pattern", + "category": "tools", + "iterations": 10, + "times_ns": [ + 323835, + 390714, + 451451, + 422032, + 285513, + 284761, + 374703, + 241977, + 359977, + 251121 + ], + "mean_ns": 338608.4, + "stddev_ns": 68626.50372735012, + "min_ns": 241977, + "max_ns": 451451, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_awk_pattern", + "category": "tools", + "iterations": 10, + "times_ns": [ + 10818615, + 38969283, + 41097498, + 12466156, + 41739169, + 24048536, + 8882590, + 19137709, + 9858754, + 28828555 + ], + "mean_ns": 23584686.5, + "stddev_ns": 12694903.306236763, + "min_ns": 8882590, + "max_ns": 41739169, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_awk_fieldsep", + "category": "tools", + "iterations": 10, + "times_ns": [ + 124225, + 115980, + 147831, + 119025, + 386733, + 126517, + 113418, + 243887, + 145026, + 195066 + ], + "mean_ns": 171770.8, + "stddev_ns": 81761.146021567, + "min_ns": 113418, + "max_ns": 386733, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_awk_fieldsep", + "category": "tools", + "iterations": 10, + "times_ns": [ + 18085625, + 11982827, + 9737891, + 40417243, + 8472139, + 36998355, + 10577363, + 37397296, + 16236269, + 10575896 + ], + "mean_ns": 20048090.4, + "stddev_ns": 12273379.794765867, + "min_ns": 8472139, + "max_ns": 40417243, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_awk_nf", + "category": "tools", + "iterations": 10, + "times_ns": [ + 226755, + 127032, + 115898, + 114342, + 112360, + 8783044, + 149355, + 120031, + 116025, + 112438 + ], + "mean_ns": 997728.0, + "stddev_ns": 2595317.9943037424, + "min_ns": 112360, + "max_ns": 8783044, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_awk_nf", + "category": "tools", + "iterations": 10, + "times_ns": [ + 15505003, + 14876057, + 16129312, + 40567819, + 16832047, + 11707259, + 16184227, + 20325408, + 11571052, + 32162856 + ], + "mean_ns": 19586104.0, + "stddev_ns": 8917498.633809404, + "min_ns": 11571052, + "max_ns": 40567819, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_awk_compute", + "category": "tools", + "iterations": 10, + "times_ns": [ + 123533, + 117245, + 115023, + 111692, + 111630, + 168949, + 163139, + 115091, + 110657, + 108984 + ], + "mean_ns": 124594.3, + "stddev_ns": 21124.78778615302, + "min_ns": 108984, + "max_ns": 168949, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_awk_compute", + "category": "tools", + "iterations": 10, + "times_ns": [ + 12234110, + 15924621, + 32148781, + 22072919, + 37778788, + 49794986, + 23077314, + 21611750, + 61272592, + 24666498 + ], + "mean_ns": 30058235.9, + "stddev_ns": 14690894.075040085, + "min_ns": 12234110, + "max_ns": 61272592, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_jq_identity", + "category": "tools", + "iterations": 10, + "times_ns": [ + 979915, + 618923, + 793949, + 734814, + 5877048, + 908768, + 609170, + 612212, + 5102307, + 1085686 + ], + "mean_ns": 1732279.2, + "stddev_ns": 1892865.2449564813, + "min_ns": 609170, + "max_ns": 5877048, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_jq_identity", + "category": "tools", + "iterations": 10, + "times_ns": [ + 67823870, + 25334767, + 39653450, + 47444137, + 25108016, + 31074354, + 53362535, + 23108342, + 22760319, + 48138281 + ], + "mean_ns": 38380807.1, + "stddev_ns": 14653723.864703596, + "min_ns": 22760319, + "max_ns": 67823870, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_jq_field", + "category": "tools", + "iterations": 10, + "times_ns": [ + 1138975, + 1175896, + 5148112, + 1084541, + 1266205, + 1091789, + 5778288, + 1255158, + 5567482, + 1195270 + ], + "mean_ns": 2470171.6, + "stddev_ns": 1988130.8507208072, + "min_ns": 1084541, + "max_ns": 5778288, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_jq_field", + "category": "tools", + "iterations": 10, + "times_ns": [ + 15875393, + 19338937, + 42716501, + 17174364, + 24132747, + 15623407, + 16099127, + 42200376, + 14570265, + 16098058 + ], + "mean_ns": 22382917.5, + "stddev_ns": 10361973.30561416, + "min_ns": 14570265, + "max_ns": 42716501, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_jq_array", + "category": "tools", + "iterations": 10, + "times_ns": [ + 1270215, + 1035677, + 1074117, + 5348773, + 1158001, + 1101983, + 25419109, + 1481631, + 1291222, + 5309766 + ], + "mean_ns": 4449049.4, + "stddev_ns": 7178100.738661589, + "min_ns": 1035677, + "max_ns": 25419109, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_jq_array", + "category": "tools", + "iterations": 10, + "times_ns": [ + 22852915, + 40056345, + 15014523, + 13958878, + 20173341, + 13670036, + 41615569, + 25007448, + 14629304, + 14978950 + ], + "mean_ns": 22195730.9, + "stddev_ns": 10049851.05102296, + "min_ns": 13670036, + "max_ns": 41615569, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_jq_filter", + "category": "tools", + "iterations": 10, + "times_ns": [ + 5385820, + 926885, + 1076434, + 1026232, + 4991525, + 1388965, + 911352, + 1121231, + 5127566, + 1323652 + ], + "mean_ns": 2327966.2, + "stddev_ns": 1867083.9185198825, + "min_ns": 911352, + "max_ns": 5385820, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_jq_filter", + "category": "tools", + "iterations": 10, + "times_ns": [ + 65562398, + 103663702, + 94265655, + 66894236, + 20649946, + 18251245, + 19255641, + 73214558, + 67306834, + 35756344 + ], + "mean_ns": 56482055.9, + "stddev_ns": 29669214.25688547, + "min_ns": 18251245, + "max_ns": 103663702, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "tool_jq_map", + "category": "tools", + "iterations": 10, + "times_ns": [ + 1603296, + 1118312, + 5230056, + 876213, + 1182466, + 5384176, + 937456, + 909958, + 1239466, + 5165328 + ], + "mean_ns": 2364672.7, + "stddev_ns": 1906225.5549326816, + "min_ns": 876213, + "max_ns": 5384176, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "tool_jq_map", + "category": "tools", + "iterations": 10, + "times_ns": [ + 14705668, + 96792689, + 12189318, + 19224214, + 15502248, + 12746303, + 17152750, + 18089316, + 13752972, + 40652857 + ], + "mean_ns": 26080833.5, + "stddev_ns": 24833766.47244542, + "min_ns": 12189318, + "max_ns": 96792689, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "complex_fibonacci", + "category": "complex", + "iterations": 10, + "times_ns": [ + 48646876, + 80980231, + 77912320, + 53200552, + 105029052, + 187644083, + 72687501, + 78345121, + 49799573, + 76969261 + ], + "mean_ns": 83121457.0, + "stddev_ns": 38471128.921775915, + "min_ns": 48646876, + "max_ns": 187644083, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "complex_fibonacci", + "category": "complex", + "iterations": 10, + "times_ns": [ + 922855852, + 949756807, + 930341636, + 513833450, + 660970966, + 1053938884, + 963321111, + 632815977, + 801081946, + 986502096 + ], + "mean_ns": 841541872.5, + "stddev_ns": 170987175.158225, + "min_ns": 513833450, + "max_ns": 1053938884, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "complex_fibonacci_iter", + "category": "complex", + "iterations": 10, + "times_ns": [ + 534831, + 443238, + 299780, + 317150, + 271116, + 262355, + 422261, + 263964, + 438549, + 317954 + ], + "mean_ns": 357119.8, + "stddev_ns": 90192.08779022693, + "min_ns": 262355, + "max_ns": 534831, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "complex_fibonacci_iter", + "category": "complex", + "iterations": 10, + "times_ns": [ + 32033428, + 7703109, + 8363099, + 2554197, + 6377276, + 6320581, + 5631723, + 6881317, + 8989176, + 13324135 + ], + "mean_ns": 9817804.1, + "stddev_ns": 7849057.593457081, + "min_ns": 2554197, + "max_ns": 32033428, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "complex_nested_subst", + "category": "complex", + "iterations": 10, + "times_ns": [ + 211037, + 203827, + 197877, + 395428, + 210425, + 242151, + 203206, + 247863, + 192524, + 371530 + ], + "mean_ns": 247586.8, + "stddev_ns": 70251.69063844655, + "min_ns": 192524, + "max_ns": 395428, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "complex_nested_subst", + "category": "complex", + "iterations": 10, + "times_ns": [ + 19025619, + 17294901, + 42390940, + 17588768, + 18684924, + 17710784, + 41854933, + 14222732, + 14330758, + 19563540 + ], + "mean_ns": 22266789.9, + "stddev_ns": 10071581.341635855, + "min_ns": 14222732, + "max_ns": 42390940, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "complex_loop_compute", + "category": "complex", + "iterations": 10, + "times_ns": [ + 255227, + 273187, + 272418, + 326836, + 298913, + 676707, + 445016, + 401382, + 433019, + 448953 + ], + "mean_ns": 383165.8, + "stddev_ns": 121711.68365838999, + "min_ns": 255227, + "max_ns": 676707, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "complex_loop_compute", + "category": "complex", + "iterations": 10, + "times_ns": [ + 42483918, + 10491608, + 6596871, + 3841918, + 9583243, + 6452860, + 9352149, + 6874291, + 29110656, + 6562512 + ], + "mean_ns": 13135002.6, + "stddev_ns": 11860213.352607515, + "min_ns": 3841918, + "max_ns": 42483918, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "complex_string_build", + "category": "complex", + "iterations": 10, + "times_ns": [ + 242574, + 188098, + 187973, + 182340, + 302091, + 201109, + 182023, + 349846, + 358869, + 233303 + ], + "mean_ns": 242822.6, + "stddev_ns": 66047.12263104276, + "min_ns": 182023, + "max_ns": 358869, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "complex_string_build", + "category": "complex", + "iterations": 10, + "times_ns": [ + 6568420, + 9030125, + 6686769, + 5718678, + 5384367, + 29747763, + 8050178, + 7253485, + 4931943, + 8550728 + ], + "mean_ns": 9192245.6, + "stddev_ns": 6970709.417906303, + "min_ns": 4931943, + "max_ns": 29747763, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "complex_json_transform", + "category": "complex", + "iterations": 10, + "times_ns": [ + 1012910, + 5212540, + 1371862, + 1311569, + 5539514, + 1179450, + 1032435, + 5485701, + 1229099, + 1250320 + ], + "mean_ns": 2462540.0, + "stddev_ns": 1935662.305156248, + "min_ns": 1012910, + "max_ns": 5539514, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "complex_json_transform", + "category": "complex", + "iterations": 10, + "times_ns": [ + 15168138, + 15885558, + 16050029, + 40957156, + 14952371, + 16748390, + 18914884, + 39911530, + 20141774, + 17720862 + ], + "mean_ns": 21645069.2, + "stddev_ns": 9523288.585451538, + "min_ns": 14952371, + "max_ns": 40957156, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "complex_pipeline_text", + "category": "complex", + "iterations": 10, + "times_ns": [ + 354625, + 550392, + 564025, + 407346, + 618129, + 488102, + 337292, + 320361, + 358956, + 460231 + ], + "mean_ns": 445945.9, + "stddev_ns": 100724.28768122414, + "min_ns": 320361, + "max_ns": 618129, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "complex_pipeline_text", + "category": "complex", + "iterations": 10, + "times_ns": [ + 16835276, + 9500822, + 16513874, + 17515157, + 43783985, + 10287480, + 11962673, + 12328657, + 13135710, + 10239000 + ], + "mean_ns": 16210263.4, + "stddev_ns": 9595881.486783236, + "min_ns": 9500822, + "max_ns": 43783985, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_loop_1000", + "category": "large", + "iterations": 10, + "times_ns": [ + 13529122, + 9020691, + 8235720, + 27776473, + 8669217, + 8365947, + 13928450, + 20361417, + 17744279, + 32465886 + ], + "mean_ns": 16009720.2, + "stddev_ns": 8144229.496206119, + "min_ns": 8235720, + "max_ns": 32465886, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_loop_1000", + "category": "large", + "iterations": 10, + "times_ns": [ + 20608895, + 37969313, + 13632630, + 20532133, + 19485818, + 40771458, + 19355812, + 25062107, + 18947046, + 48430321 + ], + "mean_ns": 26479553.3, + "stddev_ns": 11006348.348598694, + "min_ns": 13632630, + "max_ns": 48430321, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_string_append_100", + "category": "large", + "iterations": 10, + "times_ns": [ + 436546, + 1836388, + 5494588, + 1482511, + 7701840, + 434347, + 6745260, + 1870131, + 30948273, + 479231 + ], + "mean_ns": 5742911.5, + "stddev_ns": 8790159.768990906, + "min_ns": 434347, + "max_ns": 30948273, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_string_append_100", + "category": "large", + "iterations": 10, + "times_ns": [ + 15461234, + 13978468, + 10488710, + 35927333, + 6840768, + 7874762, + 3556427, + 9485837, + 6614943, + 9388385 + ], + "mean_ns": 11961686.7, + "stddev_ns": 8647257.571519656, + "min_ns": 3556427, + "max_ns": 35927333, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_array_fill_200", + "category": "large", + "iterations": 10, + "times_ns": [ + 6104370, + 6581650, + 1802222, + 6039121, + 1967825, + 22197575, + 2081427, + 5941687, + 1934247, + 5902192 + ], + "mean_ns": 6055231.6, + "stddev_ns": 5731142.773028433, + "min_ns": 1802222, + "max_ns": 22197575, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_array_fill_200", + "category": "large", + "iterations": 10, + "times_ns": [ + 12080227, + 13337808, + 29599348, + 7434219, + 9378986, + 12144727, + 7775531, + 12360609, + 14518371, + 9292606 + ], + "mean_ns": 12792243.2, + "stddev_ns": 6038560.19380812, + "min_ns": 7434219, + "max_ns": 29599348, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_nested_loops", + "category": "large", + "iterations": 10, + "times_ns": [ + 2002747, + 5983143, + 2270495, + 6327136, + 1933161, + 6173781, + 2430416, + 6104265, + 6513071, + 2378769 + ], + "mean_ns": 4211698.4, + "stddev_ns": 2017747.5388144671, + "min_ns": 1933161, + "max_ns": 6513071, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_nested_loops", + "category": "large", + "iterations": 10, + "times_ns": [ + 13587314, + 11357797, + 11763205, + 13690413, + 14446195, + 32509720, + 11606849, + 12024295, + 12673640, + 19274590 + ], + "mean_ns": 15293401.8, + "stddev_ns": 6144442.181174119, + "min_ns": 11357797, + "max_ns": 32509720, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_fibonacci_12", + "category": "large", + "iterations": 10, + "times_ns": [ + 22839521, + 51765197, + 20433191, + 20457880, + 27140875, + 50743769, + 22189407, + 27502052, + 42927218, + 22947559 + ], + "mean_ns": 30894666.9, + "stddev_ns": 11925357.036445154, + "min_ns": 20433191, + "max_ns": 51765197, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_fibonacci_12", + "category": "large", + "iterations": 10, + "times_ns": [ + 2581735454, + 2295484082, + 2425840530, + 1376237484, + 906782412, + 740509831, + 712747826, + 1068494265, + 787615230, + 778376057 + ], + "mean_ns": 1367382317.1, + "stddev_ns": 725430813.3998909, + "min_ns": 712747826, + "max_ns": 2581735454, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_function_calls_500", + "category": "large", + "iterations": 10, + "times_ns": [ + 18820834, + 33011070, + 19600615, + 21826256, + 20702330, + 38814835, + 19336605, + 22986575, + 21394441, + 38161077 + ], + "mean_ns": 25465463.8, + "stddev_ns": 7556985.768349029, + "min_ns": 18820834, + "max_ns": 38814835, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_function_calls_500", + "category": "large", + "iterations": 10, + "times_ns": [ + 484851548, + 464307650, + 389862649, + 510223850, + 485888348, + 502782994, + 525268333, + 569368536, + 537566239, + 370965167 + ], + "mean_ns": 484108531.4, + "stddev_ns": 59102767.74829499, + "min_ns": 370965167, + "max_ns": 569368536, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_multiline_script", + "category": "large", + "iterations": 10, + "times_ns": [ + 800713, + 632535, + 619217, + 497476, + 492889, + 612684, + 785448, + 478978, + 595484, + 459419 + ], + "mean_ns": 597484.3, + "stddev_ns": 115158.91540653724, + "min_ns": 459419, + "max_ns": 800713, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_multiline_script", + "category": "large", + "iterations": 10, + "times_ns": [ + 2095250, + 3002167, + 2201071, + 2121173, + 2602571, + 2365988, + 2647552, + 2365819, + 2387799, + 2051500 + ], + "mean_ns": 2384089.0, + "stddev_ns": 282224.48090128537, + "min_ns": 2051500, + "max_ns": 3002167, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_pipeline_chain", + "category": "large", + "iterations": 10, + "times_ns": [ + 1723783, + 1327917, + 1592097, + 1336840, + 2242463, + 1287685, + 1277568, + 1243843, + 1339051, + 1211697 + ], + "mean_ns": 1458294.4, + "stddev_ns": 302959.6394819614, + "min_ns": 1211697, + "max_ns": 2242463, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_pipeline_chain", + "category": "large", + "iterations": 10, + "times_ns": [ + 6680927, + 6451349, + 11032905, + 9799321, + 10683827, + 11893249, + 11113154, + 12909884, + 28929881, + 11762951 + ], + "mean_ns": 12125744.8, + "stddev_ns": 5955966.449851692, + "min_ns": 6451349, + "max_ns": 28929881, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "large_assoc_array", + "category": "large", + "iterations": 10, + "times_ns": [ + 466608, + 218785, + 178079, + 345268, + 194187, + 281898, + 182168, + 174165, + 199712, + 177442 + ], + "mean_ns": 241831.2, + "stddev_ns": 91516.65321109597, + "min_ns": 174165, + "max_ns": 466608, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "large_assoc_array", + "category": "large", + "iterations": 10, + "times_ns": [ + 2910144, + 2544057, + 2301474, + 2682229, + 2420460, + 2536163, + 2629288, + 2936018, + 2991741, + 2921130 + ], + "mean_ns": 2687270.4, + "stddev_ns": 229281.09807797067, + "min_ns": 2301474, + "max_ns": 2991741, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "subshell_simple", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 162301, + 289233, + 303649, + 257974, + 148663, + 140917, + 234370, + 143886, + 173415, + 143323 + ], + "mean_ns": 199773.1, + "stddev_ns": 61532.705806668375, + "min_ns": 140917, + "max_ns": 303649, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "subshell_simple", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 3100984, + 24890763, + 2703722, + 2900578, + 2958498, + 2607387, + 2790404, + 2859858, + 2759957, + 2714085 + ], + "mean_ns": 5028623.6, + "stddev_ns": 6622076.988749455, + "min_ns": 2607387, + "max_ns": 24890763, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "subshell_isolation", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 342669, + 192492, + 174435, + 170540, + 172424, + 192229, + 207970, + 163946, + 327874, + 625802 + ], + "mean_ns": 257038.1, + "stddev_ns": 137565.31723036154, + "min_ns": 163946, + "max_ns": 625802, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "subshell_isolation", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 3948693, + 3524578, + 3172812, + 3043531, + 23334944, + 3217044, + 3307459, + 3054340, + 2901122, + 2756006 + ], + "mean_ns": 5226052.9, + "stddev_ns": 6044647.993638066, + "min_ns": 2756006, + "max_ns": 23334944, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "subshell_nested", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 247397, + 222185, + 216360, + 254466, + 394593, + 235332, + 421232, + 239526, + 210713, + 208732 + ], + "mean_ns": 265053.6, + "stddev_ns": 73119.65565181499, + "min_ns": 208732, + "max_ns": 421232, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "subshell_nested", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 9844967, + 13065826, + 24768472, + 11928762, + 12000053, + 12119558, + 8498448, + 7784690, + 8124215, + 11658371 + ], + "mean_ns": 11979336.2, + "stddev_ns": 4625983.712653251, + "min_ns": 7784690, + "max_ns": 24768472, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "subshell_pipeline", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 291586, + 245724, + 233361, + 237233, + 413962, + 227642, + 220140, + 225857, + 273586, + 221663 + ], + "mean_ns": 259075.4, + "stddev_ns": 56197.07283515753, + "min_ns": 220140, + "max_ns": 413962, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "subshell_pipeline", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 4820353, + 5088692, + 5289607, + 4984062, + 5730563, + 5507386, + 4856490, + 6285162, + 5107031, + 30248775 + ], + "mean_ns": 7791812.1, + "stddev_ns": 7497717.062577094, + "min_ns": 4820353, + "max_ns": 30248775, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "subshell_capture_loop", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 563347, + 344587, + 298353, + 289163, + 487630, + 310244, + 301091, + 400658, + 287251, + 285460 + ], + "mean_ns": 356778.4, + "stddev_ns": 92216.62397442231, + "min_ns": 285460, + "max_ns": 563347, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "subshell_capture_loop", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 6735687, + 6773071, + 5648174, + 5801568, + 5923148, + 5585675, + 6737857, + 8445068, + 25253450, + 10859509 + ], + "mean_ns": 8776320.7, + "stddev_ns": 5702920.227125819, + "min_ns": 5585675, + "max_ns": 25253450, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "subshell_process_subst", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 296114, + 277933, + 223645, + 219457, + 308902, + 266426, + 200458, + 192682, + 306563, + 243944 + ], + "mean_ns": 253612.4, + "stddev_ns": 41374.859630456755, + "min_ns": 192682, + "max_ns": 308902, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "subshell_process_subst", + "category": "subshell", + "iterations": 10, + "times_ns": [ + 4549255, + 3812079, + 4763945, + 4782338, + 6600430, + 4520227, + 4202296, + 7102060, + 23190735, + 5112720 + ], + "mean_ns": 6863608.5, + "stddev_ns": 5529458.848061739, + "min_ns": 3812079, + "max_ns": 23190735, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "io_redirect_write", + "category": "io", + "iterations": 10, + "times_ns": [ + 259765, + 256112, + 220265, + 368012, + 333172, + 327621, + 477599, + 235658, + 292344, + 272966 + ], + "mean_ns": 304351.4, + "stddev_ns": 72576.17915018674, + "min_ns": 220265, + "max_ns": 477599, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "io_redirect_write", + "category": "io", + "iterations": 10, + "times_ns": [ + 6157971, + 6908322, + 7176909, + 5739878, + 38168433, + 9096715, + 7702339, + 8943164, + 7920640, + 7243262 + ], + "mean_ns": 10505763.3, + "stddev_ns": 9276185.687361998, + "min_ns": 5739878, + "max_ns": 38168433, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "io_append", + "category": "io", + "iterations": 10, + "times_ns": [ + 499793, + 296847, + 354180, + 550772, + 629066, + 257071, + 275115, + 305545, + 387111, + 475940 + ], + "mean_ns": 403144.0, + "stddev_ns": 121935.62106702045, + "min_ns": 257071, + "max_ns": 629066, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "io_append", + "category": "io", + "iterations": 10, + "times_ns": [ + 7745986, + 6630838, + 6786914, + 6050792, + 7000113, + 7169716, + 6980701, + 6145869, + 6735210, + 7332091 + ], + "mean_ns": 6857823.0, + "stddev_ns": 487457.4953960601, + "min_ns": 6050792, + "max_ns": 7745986, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "io_dev_null", + "category": "io", + "iterations": 10, + "times_ns": [ + 137030, + 144017, + 121578, + 226934, + 166659, + 351644, + 136345, + 123744, + 159049, + 312465 + ], + "mean_ns": 187946.5, + "stddev_ns": 77988.28194703355, + "min_ns": 121578, + "max_ns": 351644, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "io_dev_null", + "category": "io", + "iterations": 10, + "times_ns": [ + 3135912, + 5260608, + 15056249, + 5598738, + 3030905, + 2383470, + 2455379, + 2839592, + 2291007, + 3569727 + ], + "mean_ns": 4562158.7, + "stddev_ns": 3665551.3739791466, + "min_ns": 2291007, + "max_ns": 15056249, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "io_stderr_redirect", + "category": "io", + "iterations": 10, + "times_ns": [ + 162186, + 165516, + 241431, + 204248, + 187284, + 130802, + 207922, + 155035, + 122748, + 112276 + ], + "mean_ns": 168944.8, + "stddev_ns": 39252.26680791824, + "min_ns": 112276, + "max_ns": 241431, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "io_stderr_redirect", + "category": "io", + "iterations": 10, + "times_ns": [ + 4629576, + 13892246, + 4895678, + 2515355, + 2702106, + 2894615, + 2344146, + 26288474, + 7781372, + 2499995 + ], + "mean_ns": 7044356.3, + "stddev_ns": 7263273.185419684, + "min_ns": 2344146, + "max_ns": 26288474, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "io_read_lines", + "category": "io", + "iterations": 10, + "times_ns": [ + 382450, + 333430, + 247124, + 255914, + 450278, + 364509, + 440309, + 229753, + 213731, + 545408 + ], + "mean_ns": 346290.6, + "stddev_ns": 105004.94720173902, + "min_ns": 213731, + "max_ns": 545408, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "io_read_lines", + "category": "io", + "iterations": 10, + "times_ns": [ + 2719284, + 2877732, + 3005518, + 2639431, + 3101218, + 2682247, + 2626950, + 3307049, + 2721300, + 3384715 + ], + "mean_ns": 2906544.4, + "stddev_ns": 265854.9720261782, + "min_ns": 2626950, + "max_ns": 3384715, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bashkit", + "case_name": "io_multiline_heredoc", + "category": "io", + "iterations": 10, + "times_ns": [ + 252769, + 220456, + 298255, + 224539, + 237842, + 237606, + 244108, + 294684, + 383558, + 244797 + ], + "mean_ns": 263861.4, + "stddev_ns": 47046.31020218271, + "min_ns": 220456, + "max_ns": 383558, + "errors": 0, + "error_messages": [], + "output_match": true + }, + { + "runner": "bash", + "case_name": "io_multiline_heredoc", + "category": "io", + "iterations": 10, + "times_ns": [ + 7642496, + 7870402, + 6360581, + 6029504, + 7422045, + 6482993, + 27758445, + 7119757, + 6788983, + 7219354 + ], + "mean_ns": 9069456.0, + "stddev_ns": 6254279.188400451, + "min_ns": 6029504, + "max_ns": 27758445, + "errors": 0, + "error_messages": [], + "output_match": true + } + ], + "summary": { + "total_cases": 96, + "runner_stats": { + "bashkit": { + "total_time_ms": 219.15834659999996, + "avg_time_ms": 2.2828994437499994, + "error_count": 0, + "error_rate": 0.0, + "output_match_rate": 1.0 + }, + "bash": { + "total_time_ms": 4176.512818, + "avg_time_ms": 43.505341854166666, + "error_count": 0, + "error_rate": 0.0, + "output_match_rate": 1.0 + } + } + } +} \ No newline at end of file diff --git a/crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.md b/crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.md new file mode 100644 index 000000000..04bf00ce1 --- /dev/null +++ b/crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.md @@ -0,0 +1,308 @@ +# Bashkit Benchmark Report + +## System Information + +- **Moniker**: `829b55465cb1-linux-x86_64` +- **Hostname**: 829b55465cb1 +- **OS**: linux +- **Architecture**: x86_64 +- **CPUs**: 3 +- **Timestamp**: 1795368401 +- **Iterations**: 10 +- **Warmup**: 2 +- **Prewarm cases**: 3 + +- **bash executable**: `/usr/bin/bash (GNU Bash 5.2.37(1)-release)` + +## Summary + +Benchmarked 96 cases across 2 runners. + +| Runner | Total Time (ms) | Avg/Case (ms) | Errors | Error Rate | Output Match | +|--------|-----------------|---------------|--------|------------|-------------| +| bashkit | 219.16 | 2.283 | 0 | 0.0% | 100.0% | +| bash | 4176.51 | 43.505 | 0 | 0.0% | 100.0% | + +## Performance Comparison + +**Bashkit is 19.1x faster** than bash on average. + +## Results by Category + +### Arithmetic + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| arith_basic | bashkit | 0.086 | ±0.009 | - | ✓ | +| arith_basic | bash | 3.766 | ±1.707 | - | ✓ | +| arith_complex | bashkit | 0.149 | ±0.035 | - | ✓ | +| arith_complex | bash | 9.727 | ±7.470 | - | ✓ | +| arith_variables | bashkit | 0.191 | ±0.077 | - | ✓ | +| arith_variables | bash | 12.381 | ±8.486 | - | ✓ | +| arith_increment | bashkit | 0.197 | ±0.063 | - | ✓ | +| arith_increment | bash | 11.235 | ±8.320 | - | ✓ | +| arith_modulo | bashkit | 0.143 | ±0.039 | - | ✓ | +| arith_modulo | bash | 9.050 | ±5.624 | - | ✓ | +| arith_loop_sum | bashkit | 0.305 | ±0.112 | - | ✓ | +| arith_loop_sum | bash | 9.626 | ±8.129 | - | ✓ | + +### Arrays + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| arr_create | bashkit | 0.183 | ±0.083 | - | ✓ | +| arr_create | bash | 13.314 | ±11.228 | - | ✓ | +| arr_all | bashkit | 0.410 | ±0.459 | - | ✓ | +| arr_all | bash | 10.957 | ±9.046 | - | ✓ | +| arr_length | bashkit | 0.257 | ±0.167 | - | ✓ | +| arr_length | bash | 18.167 | ±23.770 | - | ✓ | +| arr_iterate | bashkit | 0.240 | ±0.065 | - | ✓ | +| arr_iterate | bash | 9.404 | ±7.306 | - | ✓ | +| arr_slice | bashkit | 0.318 | ±0.134 | - | ✓ | +| arr_slice | bash | 10.797 | ±8.802 | - | ✓ | +| arr_assign_index | bashkit | 0.263 | ±0.112 | - | ✓ | +| arr_assign_index | bash | 3.728 | ±2.060 | - | ✓ | + +### Complex + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| complex_fibonacci | bashkit | 83.121 | ±38.471 | - | ✓ | +| complex_fibonacci | bash | 841.542 | ±170.987 | - | ✓ | +| complex_fibonacci_iter | bashkit | 0.357 | ±0.090 | - | ✓ | +| complex_fibonacci_iter | bash | 9.818 | ±7.849 | - | ✓ | +| complex_nested_subst | bashkit | 0.248 | ±0.070 | - | ✓ | +| complex_nested_subst | bash | 22.267 | ±10.072 | - | ✓ | +| complex_loop_compute | bashkit | 0.383 | ±0.122 | - | ✓ | +| complex_loop_compute | bash | 13.135 | ±11.860 | - | ✓ | +| complex_string_build | bashkit | 0.243 | ±0.066 | - | ✓ | +| complex_string_build | bash | 9.192 | ±6.971 | - | ✓ | +| complex_json_transform | bashkit | 2.463 | ±1.936 | - | ✓ | +| complex_json_transform | bash | 21.645 | ±9.523 | - | ✓ | +| complex_pipeline_text | bashkit | 0.446 | ±0.101 | - | ✓ | +| complex_pipeline_text | bash | 16.210 | ±9.596 | - | ✓ | + +### Control + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| ctrl_if_simple | bashkit | 0.184 | ±0.050 | - | ✓ | +| ctrl_if_simple | bash | 16.274 | ±15.104 | - | ✓ | +| ctrl_if_else | bashkit | 0.210 | ±0.086 | - | ✓ | +| ctrl_if_else | bash | 34.686 | ±56.692 | - | ✓ | +| ctrl_for_list | bashkit | 0.645 | ±1.248 | - | ✓ | +| ctrl_for_list | bash | 10.733 | ±7.039 | - | ✓ | +| ctrl_for_range | bashkit | 0.237 | ±0.060 | - | ✓ | +| ctrl_for_range | bash | 9.569 | ±5.414 | - | ✓ | +| ctrl_while | bashkit | 0.319 | ±0.071 | - | ✓ | +| ctrl_while | bash | 15.837 | ±17.276 | - | ✓ | +| ctrl_case | bashkit | 0.152 | ±0.024 | - | ✓ | +| ctrl_case | bash | 10.396 | ±9.360 | - | ✓ | +| ctrl_function | bashkit | 0.190 | ±0.086 | - | ✓ | +| ctrl_function | bash | 22.347 | ±43.551 | - | ✓ | +| ctrl_function_return | bashkit | 0.228 | ±0.038 | - | ✓ | +| ctrl_function_return | bash | 14.105 | ±9.471 | - | ✓ | +| ctrl_nested_loops | bashkit | 0.768 | ±1.207 | - | ✓ | +| ctrl_nested_loops | bash | 13.136 | ±16.089 | - | ✓ | + +### Io + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| io_redirect_write | bashkit | 0.304 | ±0.073 | - | ✓ | +| io_redirect_write | bash | 10.506 | ±9.276 | - | ✓ | +| io_append | bashkit | 0.403 | ±0.122 | - | ✓ | +| io_append | bash | 6.858 | ±0.487 | - | ✓ | +| io_dev_null | bashkit | 0.188 | ±0.078 | - | ✓ | +| io_dev_null | bash | 4.562 | ±3.666 | - | ✓ | +| io_stderr_redirect | bashkit | 0.169 | ±0.039 | - | ✓ | +| io_stderr_redirect | bash | 7.044 | ±7.263 | - | ✓ | +| io_read_lines | bashkit | 0.346 | ±0.105 | - | ✓ | +| io_read_lines | bash | 2.907 | ±0.266 | - | ✓ | +| io_multiline_heredoc | bashkit | 0.264 | ±0.047 | - | ✓ | +| io_multiline_heredoc | bash | 9.069 | ±6.254 | - | ✓ | + +### Large + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| large_loop_1000 | bashkit | 16.010 | ±8.144 | - | ✓ | +| large_loop_1000 | bash | 26.480 | ±11.006 | - | ✓ | +| large_string_append_100 | bashkit | 5.743 | ±8.790 | - | ✓ | +| large_string_append_100 | bash | 11.962 | ±8.647 | - | ✓ | +| large_array_fill_200 | bashkit | 6.055 | ±5.731 | - | ✓ | +| large_array_fill_200 | bash | 12.792 | ±6.039 | - | ✓ | +| large_nested_loops | bashkit | 4.212 | ±2.018 | - | ✓ | +| large_nested_loops | bash | 15.293 | ±6.144 | - | ✓ | +| large_fibonacci_12 | bashkit | 30.895 | ±11.925 | - | ✓ | +| large_fibonacci_12 | bash | 1367.382 | ±725.431 | - | ✓ | +| large_function_calls_500 | bashkit | 25.465 | ±7.557 | - | ✓ | +| large_function_calls_500 | bash | 484.109 | ±59.103 | - | ✓ | +| large_multiline_script | bashkit | 0.597 | ±0.115 | - | ✓ | +| large_multiline_script | bash | 2.384 | ±0.282 | - | ✓ | +| large_pipeline_chain | bashkit | 1.458 | ±0.303 | - | ✓ | +| large_pipeline_chain | bash | 12.126 | ±5.956 | - | ✓ | +| large_assoc_array | bashkit | 0.242 | ±0.092 | - | ✓ | +| large_assoc_array | bash | 2.687 | ±0.229 | - | ✓ | + +### Pipes + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| pipe_simple | bashkit | 0.191 | ±0.020 | - | ✓ | +| pipe_simple | bash | 8.049 | ±5.904 | - | ✓ | +| pipe_multi | bashkit | 0.420 | ±0.074 | - | ✓ | +| pipe_multi | bash | 15.363 | ±7.463 | - | ✓ | +| pipe_command_subst | bashkit | 0.245 | ±0.070 | - | ✓ | +| pipe_command_subst | bash | 44.645 | ±21.221 | - | ✓ | +| pipe_heredoc | bashkit | 0.237 | ±0.082 | - | ✓ | +| pipe_heredoc | bash | 45.000 | ±52.380 | - | ✓ | +| pipe_herestring | bashkit | 0.436 | ±0.899 | - | ✓ | +| pipe_herestring | bash | 49.020 | ±25.682 | - | ✓ | +| pipe_discard | bashkit | 0.216 | ±0.071 | - | ✓ | +| pipe_discard | bash | 56.358 | ±28.809 | - | ✓ | + +### Startup + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| startup_empty | bashkit | 0.444 | ±0.600 | - | ✓ | +| startup_empty | bash | 8.847 | ±7.460 | - | ✓ | +| startup_true | bashkit | 0.148 | ±0.053 | - | ✓ | +| startup_true | bash | 6.296 | ±6.999 | - | ✓ | +| startup_echo | bashkit | 0.132 | ±0.016 | - | ✓ | +| startup_echo | bash | 7.264 | ±7.197 | - | ✓ | +| startup_exit | bashkit | 0.143 | ±0.049 | - | ✓ | +| startup_exit | bash | 4.775 | ±1.298 | - | ✓ | + +### Strings + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| str_concat | bashkit | 0.139 | ±0.014 | - | ✓ | +| str_concat | bash | 8.636 | ±5.693 | - | ✓ | +| str_printf | bashkit | 0.169 | ±0.063 | - | ✓ | +| str_printf | bash | 10.412 | ±6.952 | - | ✓ | +| str_printf_pad | bashkit | 0.145 | ±0.041 | - | ✓ | +| str_printf_pad | bash | 10.084 | ±7.214 | - | ✓ | +| str_echo_escape | bashkit | 0.600 | ±1.290 | - | ✓ | +| str_echo_escape | bash | 10.894 | ±6.281 | - | ✓ | +| str_prefix_strip | bashkit | 0.149 | ±0.021 | - | ✓ | +| str_prefix_strip | bash | 15.109 | ±5.564 | - | ✓ | +| str_suffix_strip | bashkit | 2.751 | ±6.996 | - | ✓ | +| str_suffix_strip | bash | 13.550 | ±7.929 | - | ✓ | +| str_uppercase | bashkit | 0.138 | ±0.021 | - | ✓ | +| str_uppercase | bash | 13.085 | ±7.412 | - | ✓ | +| str_lowercase | bashkit | 0.200 | ±0.103 | - | ✓ | +| str_lowercase | bash | 6.808 | ±1.939 | - | ✓ | + +### Subshell + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| subshell_simple | bashkit | 0.200 | ±0.062 | - | ✓ | +| subshell_simple | bash | 5.029 | ±6.622 | - | ✓ | +| subshell_isolation | bashkit | 0.257 | ±0.138 | - | ✓ | +| subshell_isolation | bash | 5.226 | ±6.045 | - | ✓ | +| subshell_nested | bashkit | 0.265 | ±0.073 | - | ✓ | +| subshell_nested | bash | 11.979 | ±4.626 | - | ✓ | +| subshell_pipeline | bashkit | 0.259 | ±0.056 | - | ✓ | +| subshell_pipeline | bash | 7.792 | ±7.498 | - | ✓ | +| subshell_capture_loop | bashkit | 0.357 | ±0.092 | - | ✓ | +| subshell_capture_loop | bash | 8.776 | ±5.703 | - | ✓ | +| subshell_process_subst | bashkit | 0.254 | ±0.041 | - | ✓ | +| subshell_process_subst | bash | 6.864 | ±5.529 | - | ✓ | + +### Tools + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| tool_grep_simple | bashkit | 0.251 | ±0.067 | - | ✓ | +| tool_grep_simple | bash | 36.218 | ±17.432 | - | ✓ | +| tool_grep_case | bashkit | 0.674 | ±1.336 | - | ✓ | +| tool_grep_case | bash | 18.159 | ±8.130 | - | ✓ | +| tool_grep_count | bashkit | 0.257 | ±0.202 | - | ✓ | +| tool_grep_count | bash | 33.684 | ±26.816 | - | ✓ | +| tool_grep_invert | bashkit | 0.179 | ±0.081 | - | ✓ | +| tool_grep_invert | bash | 28.263 | ±12.645 | - | ✓ | +| tool_grep_regex | bashkit | 4.700 | ±13.316 | - | ✓ | +| tool_grep_regex | bash | 32.170 | ±14.079 | - | ✓ | +| tool_sed_replace | bashkit | 0.831 | ±2.147 | - | ✓ | +| tool_sed_replace | bash | 18.297 | ±9.467 | - | ✓ | +| tool_sed_global | bashkit | 0.311 | ±0.535 | - | ✓ | +| tool_sed_global | bash | 21.485 | ±9.701 | - | ✓ | +| tool_sed_delete | bashkit | 0.240 | ±0.061 | - | ✓ | +| tool_sed_delete | bash | 25.016 | ±16.804 | - | ✓ | +| tool_sed_lines | bashkit | 0.163 | ±0.097 | - | ✓ | +| tool_sed_lines | bash | 20.354 | ±10.120 | - | ✓ | +| tool_sed_backrefs | bashkit | 0.149 | ±0.029 | - | ✓ | +| tool_sed_backrefs | bash | 21.164 | ±9.429 | - | ✓ | +| tool_awk_print | bashkit | 0.120 | ±0.015 | - | ✓ | +| tool_awk_print | bash | 20.609 | ±9.697 | - | ✓ | +| tool_awk_sum | bashkit | 0.130 | ±0.016 | - | ✓ | +| tool_awk_sum | bash | 18.812 | ±10.026 | - | ✓ | +| tool_awk_pattern | bashkit | 0.339 | ±0.069 | - | ✓ | +| tool_awk_pattern | bash | 23.585 | ±12.695 | - | ✓ | +| tool_awk_fieldsep | bashkit | 0.172 | ±0.082 | - | ✓ | +| tool_awk_fieldsep | bash | 20.048 | ±12.273 | - | ✓ | +| tool_awk_nf | bashkit | 0.998 | ±2.595 | - | ✓ | +| tool_awk_nf | bash | 19.586 | ±8.917 | - | ✓ | +| tool_awk_compute | bashkit | 0.125 | ±0.021 | - | ✓ | +| tool_awk_compute | bash | 30.058 | ±14.691 | - | ✓ | +| tool_jq_identity | bashkit | 1.732 | ±1.893 | - | ✓ | +| tool_jq_identity | bash | 38.381 | ±14.654 | - | ✓ | +| tool_jq_field | bashkit | 2.470 | ±1.988 | - | ✓ | +| tool_jq_field | bash | 22.383 | ±10.362 | - | ✓ | +| tool_jq_array | bashkit | 4.449 | ±7.178 | - | ✓ | +| tool_jq_array | bash | 22.196 | ±10.050 | - | ✓ | +| tool_jq_filter | bashkit | 2.328 | ±1.867 | - | ✓ | +| tool_jq_filter | bash | 56.482 | ±29.669 | - | ✓ | +| tool_jq_map | bashkit | 2.365 | ±1.906 | - | ✓ | +| tool_jq_map | bash | 26.081 | ±24.834 | - | ✓ | + +### Variables + +| Benchmark | Runner | Mean (ms) | StdDev | Errors | Match | +|-----------|--------|-----------|--------|--------|-------| +| var_assign_simple | bashkit | 0.145 | ±0.014 | - | ✓ | +| var_assign_simple | bash | 4.755 | ±1.642 | - | ✓ | +| var_assign_many | bashkit | 0.231 | ±0.060 | - | ✓ | +| var_assign_many | bash | 5.911 | ±2.868 | - | ✓ | +| var_default | bashkit | 0.138 | ±0.020 | - | ✓ | +| var_default | bash | 9.531 | ±8.162 | - | ✓ | +| var_length | bashkit | 0.244 | ±0.157 | - | ✓ | +| var_length | bash | 8.681 | ±6.271 | - | ✓ | +| var_substring | bashkit | 0.248 | ±0.106 | - | ✓ | +| var_substring | bash | 10.668 | ±12.086 | - | ✓ | +| var_replace | bashkit | 0.606 | ±1.295 | - | ✓ | +| var_replace | bash | 7.847 | ±6.180 | - | ✓ | +| var_nested | bashkit | 0.685 | ±1.325 | - | ✓ | +| var_nested | bash | 14.629 | ±12.335 | - | ✓ | +| var_export | bashkit | 0.093 | ±0.013 | - | ✓ | +| var_export | bash | 2.393 | ±0.825 | - | ✓ | + +## Runner Descriptions + +| Runner | Type | Description | +|--------|------|-------------| +| bashkit | in-process | Rust library call, no fork/exec | +| bashkit-cli | subprocess | bashkit binary, new process per run | +| bashkit-js | persistent child | Node.js + @everruns/bashkit, warm interpreter | +| bashkit-py | persistent child | Python + bashkit package, warm interpreter | +| bash | subprocess | PATH-selected Bash >=4, new process per run | +| gbash | subprocess | gbash binary (Go), new process per run | +| gbash-server | persistent child | gbash JSON-RPC server, warm interpreter | +| just-bash | subprocess | just-bash CLI, new process per run | +| just-bash-inproc | persistent child | Node.js + just-bash library, warm interpreter | + +## Assumptions & Notes + +- Times measured in nanoseconds, displayed in milliseconds +- Prewarm phase runs first few cases to warm up JIT/compilation +- Per-benchmark warmup iterations excluded from timing +- Output match compares against bash output when available +- Errors include execution failures and exit code mismatches +- In-process: interpreter runs inside the benchmark process +- Subprocess: new process spawned per benchmark run +- Persistent child: long-lived child process, amortizes startup cost + diff --git a/site/src/data/performance-timeline.json b/site/src/data/performance-timeline.json index dc4078033..11ab69106 100644 --- a/site/src/data/performance-timeline.json +++ b/site/src/data/performance-timeline.json @@ -1,5 +1,5 @@ { - "generatedAt": "2026-11-22T02:53:21.000Z", + "generatedAt": "2026-11-22T17:26:41.000Z", "sources": { "bench": "crates/bashkit-bench/results/*.json", "criterion": "crates/bashkit/benches/results/*.md", @@ -8,21 +8,21 @@ "oilsSpec": "scripts/oils-spec/results/oils-spec-*.json" }, "summary": { - "benchRuns": 14, + "benchRuns": 15, "criterionRuns": 25, "evalRuns": 58, "latestBench": { - "id": "bench-a9d59d0fdfe3-linux-x86_64-1795316001", + "id": "bench-829b55465cb1-linux-x86_64-1795368401", "kind": "bashkit-bench", - "label": "a9d59d0fdfe3-linux-x86_64", + "label": "829b55465cb1-linux-x86_64", "date": "2026-11-22", - "timestamp": "2026-11-22T02:53:21.000Z", - "source": "crates/bashkit-bench/results/bench-a9d59d0fdfe3-linux-x86_64-1795316001.json", - "reportSource": "crates/bashkit-bench/results/bench-a9d59d0fdfe3-linux-x86_64-1795316001.md", + "timestamp": "2026-11-22T17:26:41.000Z", + "source": "crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.json", + "reportSource": "crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.md", "cases": 96, - "speedup": 13.9, - "bashkitMs": 72.02, - "bashMs": 997.87, + "speedup": 19.1, + "bashkitMs": 219.16, + "bashMs": 4176.51, "errorRate": 0, "matchRate": 100, "categories": [ @@ -30,97 +30,97 @@ "category": "startup", "description": "Small commands where interpreter startup dominates runtime.", "cases": 4, - "bashkitMedianMs": 0.081, - "bashMedianMs": 1.739, - "speedup": 21.5 + "bashkitMedianMs": 0.145, + "bashMedianMs": 6.78, + "speedup": 38 }, { "category": "strings", "description": "String expansion, pattern handling, and text manipulation.", "cases": 8, - "bashkitMedianMs": 0.089, - "bashMedianMs": 1.707, - "speedup": 19.2 + "bashkitMedianMs": 0.159, + "bashMedianMs": 10.653, + "speedup": 61.8 }, { "category": "arithmetic", "description": "Integer math, substitutions, and expression-heavy shell snippets.", "cases": 6, - "bashkitMedianMs": 0.102, - "bashMedianMs": 1.756, - "speedup": 17 + "bashkitMedianMs": 0.17, + "bashMedianMs": 9.677, + "speedup": 60.1 }, { - "category": "pipes", - "description": "Pipeline construction, streaming, and command chaining.", - "cases": 6, - "bashkitMedianMs": 0.104, - "bashMedianMs": 3.206, - "speedup": 26.4 + "category": "control", + "description": "Conditionals, loops, case statements, and branching scripts.", + "cases": 9, + "bashkitMedianMs": 0.228, + "bashMedianMs": 14.105, + "speedup": 61.9 }, { "category": "variables", "description": "Variable assignment, lookup, expansion, and environment handling.", "cases": 8, - "bashkitMedianMs": 0.112, - "bashMedianMs": 1.758, - "speedup": 15.7 + "bashkitMedianMs": 0.238, + "bashMedianMs": 8.264, + "speedup": 29.3 }, { - "category": "arrays", - "description": "Indexed array reads, writes, expansion, and iteration.", + "category": "pipes", + "description": "Pipeline construction, streaming, and command chaining.", "cases": 6, - "bashkitMedianMs": 0.119, - "bashMedianMs": 1.728, - "speedup": 14.9 + "bashkitMedianMs": 0.241, + "bashMedianMs": 44.822, + "speedup": 147.2 }, { - "category": "control", - "description": "Conditionals, loops, case statements, and branching scripts.", - "cases": 9, - "bashkitMedianMs": 0.121, - "bashMedianMs": 1.783, - "speedup": 13.7 + "category": "subshell", + "description": "Command substitution and nested shell execution paths.", + "cases": 6, + "bashkitMedianMs": 0.258, + "bashMedianMs": 7.328, + "speedup": 26.1 }, { - "category": "io", - "description": "File reads, writes, redirects, and filesystem-facing commands.", + "category": "arrays", + "description": "Indexed array reads, writes, expansion, and iteration.", "cases": 6, - "bashkitMedianMs": 0.148, - "bashMedianMs": 2.731, - "speedup": 19.2 + "bashkitMedianMs": 0.26, + "bashMedianMs": 10.877, + "speedup": 36.6 }, { - "category": "subshell", - "description": "Command substitution and nested shell execution paths.", + "category": "io", + "description": "File reads, writes, redirects, and filesystem-facing commands.", "cases": 6, - "bashkitMedianMs": 0.151, - "bashMedianMs": 3.073, - "speedup": 20.4 + "bashkitMedianMs": 0.284, + "bashMedianMs": 6.951, + "speedup": 29.3 }, { "category": "tools", "description": "Builtin and external-tool style command workloads.", "cases": 21, - "bashkitMedianMs": 0.156, - "bashMedianMs": 4.019, - "speedup": 25.4 + "bashkitMedianMs": 0.311, + "bashMedianMs": 22.383, + "speedup": 69.7 }, { "category": "complex", "description": "Mixed shell workflows that combine multiple language features.", "cases": 7, - "bashkitMedianMs": 0.206, - "bashMedianMs": 3.369, - "speedup": 14.7 + "bashkitMedianMs": 0.383, + "bashMedianMs": 16.21, + "speedup": 34.3 }, { "category": "large", "description": "Bigger scripts and higher-volume data paths.", "cases": 9, - "bashkitMedianMs": 2.193, - "bashMedianMs": 3.121, - "speedup": 3.5 + "bashkitMedianMs": 5.743, + "bashMedianMs": 12.792, + "speedup": 4 } ] }, @@ -2058,6 +2058,119 @@ "speedup": 3.5 } ] + }, + { + "id": "bench-829b55465cb1-linux-x86_64-1795368401", + "kind": "bashkit-bench", + "label": "829b55465cb1-linux-x86_64", + "date": "2026-11-22", + "timestamp": "2026-11-22T17:26:41.000Z", + "source": "crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.json", + "reportSource": "crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.md", + "cases": 96, + "speedup": 19.1, + "bashkitMs": 219.16, + "bashMs": 4176.51, + "errorRate": 0, + "matchRate": 100, + "categories": [ + { + "category": "startup", + "description": "Small commands where interpreter startup dominates runtime.", + "cases": 4, + "bashkitMedianMs": 0.145, + "bashMedianMs": 6.78, + "speedup": 38 + }, + { + "category": "strings", + "description": "String expansion, pattern handling, and text manipulation.", + "cases": 8, + "bashkitMedianMs": 0.159, + "bashMedianMs": 10.653, + "speedup": 61.8 + }, + { + "category": "arithmetic", + "description": "Integer math, substitutions, and expression-heavy shell snippets.", + "cases": 6, + "bashkitMedianMs": 0.17, + "bashMedianMs": 9.677, + "speedup": 60.1 + }, + { + "category": "control", + "description": "Conditionals, loops, case statements, and branching scripts.", + "cases": 9, + "bashkitMedianMs": 0.228, + "bashMedianMs": 14.105, + "speedup": 61.9 + }, + { + "category": "variables", + "description": "Variable assignment, lookup, expansion, and environment handling.", + "cases": 8, + "bashkitMedianMs": 0.238, + "bashMedianMs": 8.264, + "speedup": 29.3 + }, + { + "category": "pipes", + "description": "Pipeline construction, streaming, and command chaining.", + "cases": 6, + "bashkitMedianMs": 0.241, + "bashMedianMs": 44.822, + "speedup": 147.2 + }, + { + "category": "subshell", + "description": "Command substitution and nested shell execution paths.", + "cases": 6, + "bashkitMedianMs": 0.258, + "bashMedianMs": 7.328, + "speedup": 26.1 + }, + { + "category": "arrays", + "description": "Indexed array reads, writes, expansion, and iteration.", + "cases": 6, + "bashkitMedianMs": 0.26, + "bashMedianMs": 10.877, + "speedup": 36.6 + }, + { + "category": "io", + "description": "File reads, writes, redirects, and filesystem-facing commands.", + "cases": 6, + "bashkitMedianMs": 0.284, + "bashMedianMs": 6.951, + "speedup": 29.3 + }, + { + "category": "tools", + "description": "Builtin and external-tool style command workloads.", + "cases": 21, + "bashkitMedianMs": 0.311, + "bashMedianMs": 22.383, + "speedup": 69.7 + }, + { + "category": "complex", + "description": "Mixed shell workflows that combine multiple language features.", + "cases": 7, + "bashkitMedianMs": 0.383, + "bashMedianMs": 16.21, + "speedup": 34.3 + }, + { + "category": "large", + "description": "Bigger scripts and higher-volume data paths.", + "cases": 9, + "bashkitMedianMs": 5.743, + "bashMedianMs": 12.792, + "speedup": 4 + } + ] } ], "criterionRuns": [ @@ -10397,6 +10510,15 @@ "detail": "96 parity/perf cases on a9d59d0fdfe3-linux-x86_64; output match 100%.", "metric": 13.9, "source": "crates/bashkit-bench/results/bench-a9d59d0fdfe3-linux-x86_64-1795316001.json" + }, + { + "date": "2026-11-22", + "timestamp": "2026-11-22T17:26:41.000Z", + "kind": "Benchmark", + "title": "19.1x faster than bash", + "detail": "96 parity/perf cases on 829b55465cb1-linux-x86_64; output match 100%.", + "metric": 19.1, + "source": "crates/bashkit-bench/results/bench-829b55465cb1-linux-x86_64-1795368401.json" } ] }