Skip to content

perf: speed up TypeScript integration fixtures#60

Merged
dev-jodee merged 1 commit intomainfrom
test/profile-ts-integration
Apr 30, 2026
Merged

perf: speed up TypeScript integration fixtures#60
dev-jodee merged 1 commit intomainfrom
test/profile-ts-integration

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

@dev-jodee dev-jodee commented Apr 30, 2026

Summary

  • Speed up TypeScript integration fixtures by writing SPL mint and token account state directly through Surfpool account writes
  • Keep SOL funding on regular RPC airdrops; only token fixture setup changes
  • Keep the PR scoped to clients/typescript/test/setup.ts with no timing env, profiling helpers, or worker config changes

Test Plan

  • just fmt-check
  • pnpm --filter @subscriptions/client build (ran during just lint-check before existing webapp lint failures)
  • PATH=/tmp/surfpool-v1.2.0:$PATH just test-client (52 tests passed, 9 files, 223.83s total)

Notes

  • just lint-check currently fails on existing webapp/ lint errors from origin/main; not from this one-file speedup diff
  • Prior CI client integration run was about 351s total; this full local run completed in 223.83s

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

Compute Unit Report

Instruction Samples Min CUs Max CUs Avg CUs Est Cost (Low) [SOL] Est Cost (Med) [SOL] Est Cost (High) [SOL]
cancel_subscription 11 1805 2129 2013 0.000005000 0.000005080 0.000006006
close_subscription_authority 7 1881 1916 1886 0.000005000 0.000005075 0.000005943
create_fixed_delegation 38 3619 12621 5229 0.000005001 0.000005209 0.000007614
create_plan 84 3540 12553 5114 0.000005001 0.000005204 0.000007557
create_recurring_delegation 27 3640 8145 5035 0.000005001 0.000005201 0.000007517
delete_plan 8 416 416 416 0.000005000 0.000005016 0.000005208
init_subscription_authority 142 7431 24351 12490 0.000005003 0.000005499 0.000011245
revoke_delegation 19 318 585 420 0.000005000 0.000005016 0.000005210
subscribe 21 6670 14194 8394 0.000005002 0.000005335 0.000009197
transfer_fixed 6 10097 14597 12596 0.000005003 0.000005503 0.000011298
transfer_recurring 17 10206 14794 11125 0.000005003 0.000005445 0.000010562
transfer_subscription 10 10441 16476 12130 0.000005003 0.000005485 0.000011065
update_plan 21 424 503 476 0.000005000 0.000005019 0.000005238

Generated: 2026-04-30

@dev-jodee dev-jodee force-pushed the test/profile-ts-integration branch 4 times, most recently from d6d1e17 to 5242e3a Compare April 30, 2026 13:56
@dev-jodee dev-jodee changed the title test: profile TypeScript integration fixtures test: speed up TypeScript integration fixtures Apr 30, 2026
@dev-jodee dev-jodee force-pushed the test/profile-ts-integration branch from 5242e3a to 4ab147c Compare April 30, 2026 14:05
@dev-jodee dev-jodee force-pushed the test/profile-ts-integration branch from 4ab147c to f727cbe Compare April 30, 2026 14:18
@dev-jodee dev-jodee changed the title test: speed up TypeScript integration fixtures perf: speed up TypeScript integration fixtures Apr 30, 2026
@dev-jodee dev-jodee merged commit 8c9bcb8 into main Apr 30, 2026
8 checks passed
@dev-jodee dev-jodee deleted the test/profile-ts-integration branch April 30, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant