Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
93a5971
add send-perf-pr-comment and testing script
zhouselena Jul 1, 2025
0103afd
refactor to Taskfile
zhouselena Jul 1, 2025
364f279
added test ping, but might have network issues
zhouselena Jul 2, 2025
2db1685
try with private endpoint
zhouselena Jul 2, 2025
24d243d
test filtering documents
zhouselena Jul 3, 2025
4a9511e
decode docs and display in evg logs, dummy commit for now
zhouselena Jul 8, 2025
04b822b
refactor to use shell script in taskfile
zhouselena Jul 8, 2025
769f150
add md comment TODO perf baron link, remove hardcoded commit number
zhouselena Jul 8, 2025
51f00ec
Merge branch 'master' of github.com:zhouselena/mongo-go-driver into G…
zhouselena Jul 8, 2025
fb6cac6
add todo for link generation
zhouselena Jul 8, 2025
d6a5ee9
Merge branch 'master' of github.com:zhouselena/mongo-go-driver into G…
zhouselena Jul 10, 2025
877d2fb
add rawdata struct
zhouselena Jul 10, 2025
66b9adc
get raw data for version
zhouselena Jul 11, 2025
077f102
parse commit SHA from task ID
zhouselena Jul 11, 2025
2c7bf59
update to match evg
zhouselena Jul 11, 2025
dfcb16b
convert energy stats to go
zhouselena Jul 11, 2025
4d28567
restore main
zhouselena Jul 11, 2025
554b901
cleanup
zhouselena Jul 11, 2025
f1aa06a
add version ID
zhouselena Jul 14, 2025
a97fc64
update pathname
zhouselena Jul 14, 2025
6dcfd7b
update compiled files
zhouselena Jul 14, 2025
65e3d91
needs testing, compare main to patch
zhouselena Jul 14, 2025
acc88ad
testing
zhouselena Jul 14, 2025
d9b7395
Merge branch 'master' of github.com:zhouselena/mongo-go-driver into G…
zhouselena Jul 14, 2025
cc3cfa8
comparison
zhouselena Jul 14, 2025
da1a70f
add testing for energy stats
zhouselena Jul 14, 2025
4dda61e
Merge branch 'master' of github.com:zhouselena/mongo-go-driver into G…
zhouselena Jul 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,17 @@ functions:
echo "Response Body: $response_body"
echo "HTTP Status: $http_status"

send-perf-pr-comment:
- command: subprocess.exec
type: test
params:
binary: bash
env:
COMMIT: "${github_commit}"
VERSION_ID: ${version_id}
include_expansions_in_env: [perf_uri_private_endpoint]
args: [*task-runner, perf-pr-comment]

run-enterprise-auth-tests:
- command: ec2.assume_role
params:
Expand Down Expand Up @@ -676,6 +687,7 @@ tasks:
binary: bash
args: [*task-runner, driver-benchmark]
- func: send-perf-data
- func: send-perf-pr-comment

- name: test-standalone-noauth-nossl
tags: ["test", "standalone"]
Expand Down
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ tasks:

pr-task: bash etc/pr-task.sh

perf-pr-comment: bash etc/perf-pr-comment.sh

# Lint with various GOOS and GOARCH tasks to catch static analysis failures that may only affect
# specific operating systems or architectures. For example, staticcheck will only check for 64-bit
# alignment of atomically accessed variables on 32-bit architectures (see
Expand Down
7 changes: 7 additions & 0 deletions etc/perf-pr-comment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# perf-pr-comment
# Generates a report of Go Driver perf changes for the current branch.

set -eux

go run ./internal/cmd/perfcomp/main.go ./internal/cmd/perfcomp/energystatistics.go
1 change: 1 addition & 0 deletions go.work
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use (
./examples/_logger/zerolog
./internal/cmd/benchmark
./internal/cmd/compilecheck
./internal/cmd/perfcomp
./internal/cmd/faas/awslambda/mongodb
./internal/test/goleak
)
1 change: 1 addition & 0 deletions internal/cmd/benchmark/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func benchmarkBSONDecoding(b *testing.B, canonicalOnly bool, source string) {

for i := 0; i < b.N; i++ {
recordMetrics(b, metrics, func(b *testing.B) {
time.Sleep(100 * time.Millisecond)
var out bson.D

err := bson.Unmarshal(raw, &out)
Expand Down
Loading
Loading