From 25f47e017dc543e78c857bfaf86257eb3052e102 Mon Sep 17 00:00:00 2001 From: illustris Date: Sun, 11 Jan 2026 05:31:06 +0530 Subject: [PATCH] scenario3: increase limit in python --- scenario3-syscall-storm/read_python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scenario3-syscall-storm/read_python.py b/scenario3-syscall-storm/read_python.py index 7781030..4cdf3c0 100644 --- a/scenario3-syscall-storm/read_python.py +++ b/scenario3-syscall-storm/read_python.py @@ -91,9 +91,9 @@ def main(): t_buf = benchmark("Buffered (64KB chunks)", read_buffered, filename) t_byte_buf = benchmark("Byte-by-byte (buffered file)", read_byte_by_byte_buffered, filename) - # Only run unbuffered test if file is small (< 100KB) + # Only run unbuffered test if file is small (< 2M) file_size = os.path.getsize(filename) - if file_size < 100_000: + if file_size < 2_000_000: t_unbuf = benchmark("Unbuffered (raw syscalls)", read_unbuffered, filename) print(f"\nSpeedup (buffered vs unbuffered): {t_unbuf/t_buf:.1f}x") else: