-
Notifications
You must be signed in to change notification settings - Fork 180
fix: include package name for duplicate bench names [#264] #330
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9964169
fix: include package name for duplicate bench names [#264]
ktrz c4a1932
fix: include package name for duplicate bench names [#264]
ktrz 177bfcb
fix: include package name for duplicate bench names [#264]
ktrz b92ae90
fix: include package name for duplicate bench names [#264]
ktrz b4980ac
fix: include package name for duplicate bench names [#264]
ktrz 9e2838d
refactor: add chunkPairs helper for cleaner Go result extraction
ktrz 3068854
get closer to original structure
ktrz a7f001d
use chained flatMap instead of nested
ktrz 61241b4
disable doc string pre merge check
ktrz c68fc65
fix: improve package uniqueness detection and add tests for edge cases
ktrz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| reviews: | ||
| pre_merge_checks: | ||
| docstrings: | ||
| mode: "off" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| PASS | ||
| ok github.com/gofiber/fiber/v3/log 0.173s | ||
| PASS | ||
| ok github.com/gofiber/fiber/v3/middleware/adaptor 0.184s | ||
| PASS | ||
| ok github.com/gofiber/fiber/v3/middleware/basicauth 0.173s | ||
| goos: linux | ||
| goarch: amd64 | ||
| pkg: github.com/gofiber/fiber/v3/middleware/cache | ||
| cpu: AMD EPYC 7763 64-Core Processor | ||
| BenchmarkAppendMsgitem-4 21228057 55.76 ns/op 2833.37 MB/s 0 B/op 0 allocs/op | ||
| BenchmarkUnmarshalitem-4 6855655 174.0 ns/op 907.83 MB/s 0 B/op 0 allocs/op | ||
| PASS | ||
| ok github.com/gofiber/fiber/v3/middleware/cache 2.649s | ||
| PASS | ||
| ok github.com/gofiber/fiber/v3/middleware/compress 0.219s | ||
| PASS | ||
| ok github.com/gofiber/fiber/v3/middleware/cors 0.188s | ||
| goos: linux | ||
| goarch: amd64 | ||
| pkg: github.com/gofiber/fiber/v3/middleware/csrf | ||
| cpu: AMD EPYC 7763 64-Core Processor | ||
| BenchmarkAppendMsgitem-4 1000000000 0.3733 ns/op 2678.46 MB/s 0 B/op 0 allocs/op | ||
| BenchmarkUnmarshalitem-4 275056135 4.360 ns/op 229.35 MB/s 0 B/op 0 allocs/op | ||
| PASS | ||
| ok github.com/gofiber/fiber/v3/middleware/csrf 0.842s | ||
| PASS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| goos: darwin | ||
| goarch: arm64 | ||
| pkg: github.com/example/mypackage | ||
| BenchmarkFib10 | ||
| BenchmarkFib10-8 5000000 325 ns/op | ||
| BenchmarkFib20 | ||
| BenchmarkFib20-8 30000 40537 ns/op | ||
| PASS | ||
| ok github.com/example/mypackage 3.614s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guard against odd-length value/unit sequences.
chunkPairssilently drops the last token whenarr.lengthis odd, which can yield partial or misleading metrics on malformed input. Consider throwing to surface invalid Go output early.🛡️ Suggested validation
function chunkPairs(arr: string[]): Array<[string, string]> { + if (arr.length % 2 !== 0) { + throw new Error( + `Malformed Go benchmark metrics (expected value/unit pairs, got ${arr.length} fields): ${arr.join(' ')}` + ); + } return Array.from({ length: Math.floor(arr.length / 2) }, (_, i) => [arr[i * 2], arr[i * 2 + 1]]); }📝 Committable suggestion
🤖 Prompt for AI Agents