Skip to content

Commit a6eb367

Browse files
committed
feat: Add a benchmarking script to compare ProXPL performance against reference implementations in Python, Node, C++, Java, and Go.
1 parent aa9301b commit a6eb367

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

benchmarks/run_benchmarks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ROW_FMT = "{:<20} | {:<10} | {:<10} | {:<10} | {:<10} | {:<10} | {:<10}"
1818
DIVIDER = "-" * 100
1919

20-
def run_cmd(cmd, timeout=60, cwd=None):
20+
def run_cmd(cmd, timeout=300, cwd=None):
2121
start = time.time()
2222
try:
2323
proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=timeout, cwd=cwd)
@@ -100,6 +100,11 @@ def main():
100100
dur_prox, out_prox = run_cmd([executable, bench_file])
101101
parsed_prox = parse_time_from_output(out_prox) if isinstance(dur_prox, float) else dur_prox
102102

103+
if parsed_prox is None:
104+
print(f"\n[ERROR] ProXPL failed for {name}:")
105+
print(out_prox)
106+
print("-" * 20)
107+
103108
# 2. Run Python
104109
py_file = os.path.join(ref_dir, name + ".py")
105110
parsed_py = "N/A"

0 commit comments

Comments
 (0)