Commit graph

32 commits

Author SHA1 Message Date
Sarthak Agarwal
1323df0633 update package to 0.7.0 2026-02-03 19:54:14 +05:30
Sarthak Agarwal
66fadf7ad3 fix: use getter functions for perf env vars to support Vitest module caching
Vitest caches modules and may load capture.js before environment
variables like CODEFLASH_PERF_LOOP_COUNT are set. When these were
read as constants at module load time, they would always return
default values.

This change converts the performance configuration from constants
to getter functions that read environment variables at runtime,
ensuring correct values are used even when the module is cached.

Fixes:
- PERF_LOOP_COUNT always being 1 in Vitest
- PERF_BATCH_SIZE, PERF_MIN_LOOPS, etc. using defaults instead of env values

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:02:23 +05:30
Sarthak Agarwal
565b1f59a0 update package to 0.5.0 2026-02-02 23:48:16 +05:30
Sarthak Agarwal
f88b6b7142 vitest perf looping inefficiency 2026-02-02 18:28:04 +05:30
Saurabh Misra
82d9e435ef
Merge branch 'main' into add_vitest_support_to_js 2026-02-01 12:32:09 -08:00
Sarthak Agarwal
aa9b926200
Merge branch 'main' into add_vitest_support_to_js 2026-02-01 03:41:43 +05:30
Kevin Turcios
05711151c2 limit the python version for the postinstall script 2026-01-31 13:53:10 -05:00
Sarthak Agarwal
eb1d27e359 update package to 0.4.0 2026-01-31 20:21:50 +05:30
Sarthak Agarwal
3e7be21e16
Merge branch 'main' into add_vitest_support_to_js 2026-01-31 19:39:03 +05:30
Saurabh Misra
5296dc8321 fix: calculate MAX_BATCHES correctly in Jest loop-runner
Previously, MAX_BATCHES was set to PERF_LOOP_COUNT directly (e.g., 250),
which caused the loop-runner to run 250 batches even though only 25
batches were needed to produce timing data (with BATCH_SIZE=10).

The bug was that timing markers only appeared for the first N batches
(where N = LOOP_COUNT / BATCH_SIZE), and the remaining batches were
wasted overhead.

Fix: Calculate MAX_BATCHES as ceil(LOOP_COUNT / BATCH_SIZE) + 1, capped
at LOOP_COUNT. This ensures only the necessary batches run:
- With LOOP_COUNT=250, BATCH_SIZE=10: MAX_BATCHES = 26 (not 250)

This significantly improves benchmark efficiency by eliminating wasted
Jest passes that don't contribute timing data.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 06:47:01 +00:00
Sarthak Agarwal
4bf664dc39 add vitest runner 2026-01-31 04:29:59 +05:30
Sarthak Agarwal
a29f877df5 publish the 0.3.0 to npm 2026-01-29 23:00:28 +05:30
Sarthak Agarwal
483fa44f36 package installer to e2e test 2026-01-29 14:31:06 +05:30
Sarthak Agarwal
2cc1fb2809 tests for extractor and replacer 2026-01-29 01:27:19 +05:30
Sarthak Agarwal
942bbac356 update to 0.2.0 2026-01-28 18:10:29 +05:30
Sarthak Agarwal
6fa2fb3917 update dependencies for jest-runner used in loop runner 2026-01-28 17:59:20 +05:30
misrasaurabh1
e84a491b5a Merge remote-tracking branch 'origin/multi-language' into multi-language 2026-01-28 01:23:19 -08:00
misrasaurabh1
b8ea15a507 batched looping for lower overhead 2026-01-28 01:23:11 -08:00
Sarthak Agarwal
acf0423761 move package dependencies to codeflash 2026-01-28 11:34:44 +05:30
misrasaurabh1
7b7cc99f3a Implement a real js test looper 2026-01-27 19:44:51 -08:00
misrasaurabh1
beda62cc7a Merge remote-tracking branch 'origin/multi-language' into multi-language 2026-01-27 00:57:17 -08:00
misrasaurabh1
4ba7c6705f remove defaults and global requires 2026-01-27 00:57:10 -08:00
Sarthak Agarwal
653a8f406d fix lock file 2026-01-27 14:24:29 +05:30
misrasaurabh1
698ed3bc21 rename package dir 2026-01-27 00:19:07 -08:00
Sarthak Agarwal
d16e39c528 adding sqlite package as dep 2026-01-27 13:38:34 +05:30
Sarthak Agarwal
c6efaa7d26 rename package to just codeflash 2026-01-27 13:10:24 +05:30
Sarthak Agarwal
0da33805fe uv path fix 2026-01-27 03:16:55 +05:30
Sarthak Agarwal
6b56cdef0e init flow fix for test module path 2026-01-27 03:06:11 +05:30
Sarthak Agarwal
6ff8626338 cleaning old packaging format 2026-01-26 23:46:35 +05:30
Sarthak Agarwal
d6372de85c packaging codeflash 2026-01-26 23:44:57 +05:30
ali
291106c467
jedi references for python only 2026-01-23 15:13:05 +02:00
Sarthak Agarwal
16375b9346 npm package and esmodule and commonjs module changes 2026-01-22 23:16:16 +05:30