Skip to content

bench(flatlock-cmp) use console.time to measure parse performance#11

Merged
indexzero merged 1 commit intomainfrom
flatbench
Jan 16, 2026
Merged

bench(flatlock-cmp) use console.time to measure parse performance#11
indexzero merged 1 commit intomainfrom
flatbench

Conversation

@indexzero
Copy link
Owner

Uses flatlock.collect instead of flatlock.fromPath in bin/flatlock-cmp.js to measure the parse timing in isolation from flatlockSet.add(spec)

Sample output:

⏱  collect [...]-pnpm-lock.yaml: 18.113ms
⊃  [...]-pnpm-lock.yaml
   count: flatlock=1355 js-yaml=1349
   sets:  SUPERSET (+6 reachable deps)
   note:  flatlock's reachability analysis found transitive deps pnpm omits

⏱  collect [...]/package-lock.json: 3.593ms
✓  [...]/package-lock.json (4 workspaces excluded)
   count: flatlock=1434 @npmcli/arborist=1434
   sets:  equinumerous

… with console.time to measure parse performance
@indexzero indexzero merged commit d5eb762 into main Jan 16, 2026
5 checks passed
@indexzero indexzero deleted the flatbench branch January 23, 2026 16:17
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