|
2 | 2 |
|
3 | 3 | See where your AI coding tokens go but **600x faster** |
4 | 4 |
|
| 5 | +Benchmarked against the published JS version (`npx codeburn`) with hyperfine on MacBook Pro (M1 Pro, 16GB, 1TB). |
| 6 | + |
| 7 | +| Rust cache state | JS | Rust (`cburn`) | JS (`npx codeburn`) | Speedup | |
| 8 | +| ---------------- | --------------- | -------------- | ------------------- | ------- | |
| 9 | +| cached output | cached | 6.0 ms | 3.66 s | ~610× | |
| 10 | +| cached sources | cached | 10.9 ms | 3.66 s | ~335× | |
| 11 | +| cold (bo cache) | cold (no cache) | 76 ms | 7.71 s | ~101× | |
| 12 | + |
| 13 | +Supported providers: Claude, Codex, Opencode, Pi, Copilot. |
| 14 | + |
5 | 15 | ## Install |
6 | 16 |
|
7 | 17 | ### Homebrew |
@@ -30,52 +40,27 @@ Open the interactive dashboard: |
30 | 40 | cburn |
31 | 41 | ``` |
32 | 42 |
|
33 | | -Jump to a specific period: |
34 | | - |
35 | | -```sh |
36 | | -cburn today |
37 | | -cburn month |
38 | | -cburn report --period 30days |
39 | | -``` |
40 | | - |
41 | | -Filter to one provider: |
42 | | - |
43 | | -```sh |
44 | | -cburn report --provider claude |
45 | | -``` |
46 | | - |
47 | | -Supported providers: `all`, `claude`, `codex`, `opencode`. |
48 | | - |
49 | | -> Cursor support is currently disabled: Cursor stopped writing per-call token |
50 | | -> counts to its local `state.vscdb` in early 2026, so any parse of that DB |
51 | | -> now reports $0 regardless of actual usage. The parser code is retained in |
52 | | -> case the data layout is restored upstream. |
53 | | -
|
54 | 43 | ### Other commands |
55 | 44 |
|
56 | 45 | ```sh |
| 46 | +cburn today # jump to today's usage |
| 47 | +cburn month # jump to this month's usage |
| 48 | +cburn report --period 30days # report over a custom period |
| 49 | +cburn report --provider claude # filter to a single provider |
57 | 50 | cburn status # compact terminal snapshot (today + week + month) |
58 | 51 | cburn export --format csv # export usage data to CSV or JSON |
59 | 52 | cburn currency GBP # change display currency |
60 | 53 | ``` |
61 | 54 |
|
62 | | -For full options, see `cburn --help` or `cburn <subcommand> --help`. |
63 | | - |
64 | | -The binary is named `cburn` to avoid colliding with the npm `codeburn` package. |
65 | | -If you don't have the npm version installed and prefer the full name, alias it: |
| 55 | +For full options, see `cburn --help` or `cburn <subcommand> --help`. The binary is named `cburn` to avoid colliding with the npm `codeburn` package — if you don't have the npm version installed and prefer the full name, alias it. |
66 | 56 |
|
67 | 57 | ```sh |
68 | 58 | alias codeburn=cburn |
69 | 59 | ``` |
70 | 60 |
|
71 | | -## Performance |
72 | | - |
73 | | -Benchmarked against the published JS version (`npx codeburn`) with hyperfine on MacBook Pro (M1 Pro, 16GB, 1TB). |
74 | | - |
75 | | -| Rust Scenario | JS Scenario | Rust (`cburn`) | JS (`npx codeburn`) | Speedup | |
76 | | -| ------------- | ----------- | -------------- | ------------------- | ------- | |
77 | | -| fully cached | cache on | 6.0 ms | 3.66 s | ~610× | |
78 | | -| normal cache | cache on | 10.9 ms | 3.66 s | ~335× | |
79 | | -| cold | cold | 76 ms | 7.71 s | ~101× | |
| 61 | +> Cursor support is currently disabled: Cursor stopped writing per-call token |
| 62 | +> counts to its local `state.vscdb` in early 2026, so any parse of that DB |
| 63 | +> now reports $0 regardless of actual usage. The parser code is retained in |
| 64 | +> case the data layout is restored upstream. |
80 | 65 |
|
81 | 66 | Original JS version: (https://github.com/AgentSeal/codeburn). |
0 commit comments