#!/bin/bash # Times the same PreToolUse deny rule written as bash + jq and as a JDK 25 compact source file. # Indicative only: the numbers change with the machine and with what else is running. MODULE="$(cd "$(dirname "$0")/.." && pwd)" OUT="$MODULE/output/07-hook-latency.txt" JSON='{"hook_event_name":"PreToolUse","tool_name":"Bash","tool_input":{"command":"mvn deploy"}}' N=20 time_ms() { # time_ms