Skip to content

feat(logger): add benchmark script - #37

Merged
frytg merged 5 commits into
mainfrom
feat/cursor-logger-benchmark-c84c
Jul 13, 2026
Merged

feat(logger): add benchmark script#37
frytg merged 5 commits into
mainfrom
feat/cursor-logger-benchmark-c84c

Conversation

@frytg

@frytg frytg commented Jul 13, 2026

Copy link
Copy Markdown
Owner

What changed

Adds a standalone logger benchmark script that compares @frytg/logger against a plain Winston JSON logger.

  • New logger/benchmark.ts script with warmup, stdout silencing during measurement, and ops/s reporting
  • deno run bench-logger task and just bench-logger recipe
  • Excludes benchmark.ts from JSR publish

Why

Closes #16. Provides a quick way to measure the overhead of the @frytg/logger wrapper (global context injection, error formatting) relative to raw Winston.

How to test

deno install --vendor
deno run check
deno run test
deno run bench-logger

Optional: pass a custom iteration count, e.g. deno run bench-logger 10000.

Sample output

Logger benchmark (50,000 iterations, runtime: deno-2.9.2)

winston (json)               328074 ops/s  (baseline)
@frytg/logger (json)         101797 ops/s  (31.0%)
Open in Web Open in Cursor 

cursoragent and others added 3 commits July 13, 2026 08:25
Add a standalone benchmark that compares @frytg/logger against plain
Winston JSON logging. Wire it into deno tasks and justfile as
bench-logger, and exclude the script from JSR publish.

Co-authored-by: Dan <daniel@frytg.com>
…nchmark-c84c

Co-authored-by: Dan <daniel@frytg.com>
@frytg
frytg marked this pull request as ready for review July 13, 2026 14:10
@frytg
frytg merged commit a9da7ff into main Jul 13, 2026
16 checks passed
@frytg
frytg deleted the feat/cursor-logger-benchmark-c84c branch July 13, 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.

add logger benchmark script

2 participants