-
Notifications
You must be signed in to change notification settings - Fork 0
perf: speed bounded projections and correct click timing #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3250962
perf: measure browser work from the real session click
wolfiesch e0cf6e1
perf: add projection autoresearch harness
wolfiesch 3b29c63
autoresearch: harness setup
wolfiesch 2df43b5
Provisional clean-lineage primitive JSON-byte fast path; 18.5% median…
wolfiesch c7c456e
Provisional remaining-allocation fast paths; median improved 23.3% ve…
wolfiesch 1853cdc
fix: preserve retained field priority for prototype names
wolfiesch 8ec4655
perf: persist autoresearch run evidence
wolfiesch 479b87d
fix: make performance tooling portable
wolfiesch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| cd "$repo_root" | ||
|
|
||
| if [[ "$(node -p 'process.versions.node.split(".")[0]')" != "24" ]]; then | ||
| echo "autoresearch requires Node 24; found $(node --version)" >&2 | ||
| exit 1 | ||
| fi | ||
| for command_name in pnpm tee timeout; do | ||
| if ! command -v "$command_name" >/dev/null 2>&1; then | ||
| echo "missing required command: $command_name" >&2 | ||
| exit 1 | ||
| fi | ||
| done | ||
| if [[ ! -d node_modules ]]; then | ||
| echo "dependencies are missing; run pnpm install --frozen-lockfile before autoresearch" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| entry_count="${T4_PERF_ENTRY_COUNT:-10000}" | ||
| event_count="${T4_PERF_EVENT_COUNT:-100000}" | ||
| repetitions="${T4_PERF_REPETITIONS:-7}" | ||
| warmups="${T4_PERF_WARMUPS:-1}" | ||
| timeout_seconds="${T4_AUTORESEARCH_TIMEOUT_SECONDS:-120}" | ||
| run_id="$(date -u +%Y%m%dT%H%M%SZ)-$$" | ||
| output_dir="test-results/perf/autoresearch/$run_id" | ||
| mkdir -p "$output_dir" | ||
| log_path="$output_dir/run.log" | ||
|
|
||
| runner=() | ||
| cpu_affinity="unbound" | ||
| if command -v taskset >/dev/null 2>&1; then | ||
| cpu_affinity="${T4_AUTORESEARCH_CPU:-6}" | ||
| runner=(taskset -c "$cpu_affinity") | ||
| fi | ||
|
|
||
| export CI=1 | ||
| export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--expose-gc" | ||
| export T4_PERF_ENTRY_COUNT="$entry_count" | ||
| export T4_PERF_EVENT_COUNT="$event_count" | ||
| export T4_PERF_REPETITIONS="$repetitions" | ||
| export T4_PERF_WARMUPS="$warmups" | ||
| export T4_PERF_MACHINE_LABEL="${T4_PERF_MACHINE_LABEL:-linux-vps-x64}" | ||
| export T4_PERF_OUTPUT_DIR="$output_dir" | ||
| export T4_AUTORESEARCH_TIMEOUT_SECONDS_RESOLVED="$timeout_seconds" | ||
| export T4_AUTORESEARCH_CPU_AFFINITY_RESOLVED="$cpu_affinity" | ||
|
|
||
| { | ||
| "${runner[@]}" timeout "$timeout_seconds" pnpm exec vp test run packages/client/test/projection.test.ts | ||
| "${runner[@]}" timeout "$timeout_seconds" pnpm exec vp test run scripts/perf/core.test.ts | ||
| node scripts/perf/autoresearch-report.mjs "$output_dir/latest-core.json" | ||
| printf 'ASI timeout_seconds=%s\n' "$timeout_seconds" | ||
| printf 'ASI cpu_affinity=%s\n' "$cpu_affinity" | ||
| printf 'ASI log=%s\n' "$log_path" | ||
| } 2>&1 | tee "$log_path" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.