-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] compile benchmarks with --release
flag
#272
Conversation
…field in dfx.json
WalkthroughThe changes extend configuration capabilities in the benchmarking tool by introducing a new build profile option, allowing users to choose between "Debug" and "Release". The Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant B as bench()
participant R as readDfxJson()
participant M as getMocArgs()
U->>B: Execute bench command
B->>R: Retrieve configuration from dfx.json
R-->>B: Return configuration (includes profile)
B->>B: Set default options (profile: 'Release' if undefined)
B->>M: Generate moc arguments based on profile
M-->>B: Return flag (--debug or --release)
B->>U: Run benchmarking process with proper flags
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Definitions (1)cli/commands/bench.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Benchmark ResultsBenchmark files: Add (second)Add items one-by-one (second) Instructions
Heap
Garbage Collection
AddAdd items one-by-one Instructions
Heap
Garbage Collection
Arrayarr arr Instructions
Heap
Garbage Collection
Remove items using
|
remove 70k | |
---|---|
Vector | 32_210_297 |
Buffer | 31_716_422 |
Heap
remove 70k | |
---|---|
Vector | -136.8 KiB |
Buffer | -269.76 KiB |
Garbage Collection
remove 70k | |
---|---|
Vector | 139.45 KiB |
Buffer | 540.43 KiB |
Stable Memory and Region
Grow Region and store blobs in it
Instructions
Region (fill 1/100) | Region (fill 1/50) | StableMemory | |
---|---|---|---|
10 pages | 65_117_422 |
260_557_814 |
2_861 |
100 pages | 1_302_325_766 |
2_604_593_980 |
2_954 |
256 pages | 3_334_080_226 |
6_668_025_672 |
3_704 |
Heap
Region (fill 1/100) | Region (fill 1/50) | StableMemory | |
---|---|---|---|
10 pages | 296 B |
272 B |
276 B |
100 pages | 308 B |
308 B |
272 B |
256 pages | 308 B |
308 B |
276 B |
Garbage Collection
Region (fill 1/100) | Region (fill 1/50) | StableMemory | |
---|---|---|---|
10 pages | 2.38 MiB |
9.51 MiB |
336 B |
100 pages | 47.55 MiB |
95.1 MiB |
340 B |
256 pages | 121.73 MiB |
243.45 MiB |
340 B |
Stable Memory
Region (fill 1/100) | Region (fill 1/50) | StableMemory | |
---|---|---|---|
10 pages | 8 MiB |
8 MiB |
8 MiB |
100 pages | 8 MiB |
8 MiB |
0 B |
256 pages | 16 MiB |
16 MiB |
16 MiB |
Docstrings generation was requested by @ZenVoich. * #272 (comment) The following files were modified: * `cli/commands/bench.ts` * `cli/commands/watch/parseDfxJson.ts`
Note Generated docstrings for this pull request at #273 |
fixes #270
Summary by CodeRabbit