diff options
| author | amankumarsingh77 <amankumarsingh7702@gmal.com> | 2026-05-02 11:40:20 +0530 |
|---|---|---|
| committer | amankumarsingh77 <amankumarsingh7702@gmal.com> | 2026-05-02 11:40:20 +0530 |
| commit | fa54f769aad7bc3b6b05cf877cc5adda879721be (patch) | |
| tree | 42a8861cb4e50f54beac37b2fc7de33b19872d07 /.gitignore | |
| parent | b77c5ec30d37f214fe469791f814da8329ef4a77 (diff) | |
perf: v0.2.0 — event-based waitForLoad, fast ensureAlive, JPEG screenshots, page info caching
5 performance optimizations (14-36% faster end-to-end, output quality unchanged):
- fast ensureAlive(): WS state check instead of CDP roundtrip (96% faster per-call)
- event-based waitForLoad(): CDP load events instead of 300ms polling (99.5% faster for loaded tabs)
- JPEG screenshot support: 29-49% smaller files, faster CDP transfer
- page info caching: 1s TTL eliminates redundant evaluateJS calls
- parallel domain enables: Promise.all instead of sequential await in switchTab()
Benchmark: 3622ms vs 4243ms baseline on 3-tab navigation + screenshot task.
Diffstat (limited to '.gitignore')
| -rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,5 +1,6 @@ node_modules/ dist/ +benchmark/ *.tsbuildinfo .DS_Store *.log |
