Skip to content

Migrate dd-trace-core groovy files to java part 5#11217

Open
jpbempel wants to merge 1 commit intomasterfrom
jpbempel/g2j-core-pt5
Open

Migrate dd-trace-core groovy files to java part 5#11217
jpbempel wants to merge 1 commit intomasterfrom
jpbempel/g2j-core-pt5

Conversation

@jpbempel
Copy link
Copy Markdown
Member

What Does This Do

we migrate 4 tests:

  • DDSpanContextTest
  • DDSpanSerializationTest
  • DDSpanTest
  • KnuthSamplingRateTest

Motivation

this is part of the effort to migrate groovy tests to Java/JUnit
part1: #11053
part2: #11062
part3: #11085
part4: #11146

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

we migrate 4 tests:
 - DDSpanContextTest
 - DDSpanSerializationTest
 - DDSpanTest
 - KnuthSamplingRateTest
@jpbempel jpbempel requested a review from a team as a code owner April 28, 2026 05:58
@jpbempel jpbempel requested a review from PerfectSlayer April 28, 2026 05:58
@github-actions
Copy link
Copy Markdown
Contributor

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b4683a66fe

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


@AfterAll
static void afterAll() {
ProcessTags.reset(Config.get());
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore process tags to defaults after this test class

@WithConfig(...value = "false") disables process-tag propagation for the whole class, but afterAll() calls ProcessTags.reset(Config.get()) before the WithConfigExtension restores system properties, so it reinitializes ProcessTags with the disabled config. Because ProcessTags is global static state, subsequent test classes in the same JVM can observe process tags still disabled and become order-dependent/flaky; the previous Groovy version explicitly set the config back to true before resetting to avoid this leak.

Useful? React with 👍 / 👎.

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Apr 28, 2026

Benchmarks

⚠️ Warning: Baseline build not found for merge-base commit. Comparing against the latest commit on master instead.

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jpbempel/g2j-core-pt5
git_commit_date 1777321489 1777356469
git_commit_sha 75fe2b3 4683a66fe0
release_version 1.62.0-SNAPSHOT~75fe2b3c55 1.62.0-SNAPSHOT~b4683a66fe0
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1777357763 1777357763
ci_job_id 1636388825 1636388825
ci_pipeline_id 110066363 110066363
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-gopmgy9r 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-gopmgy9r 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 62 metrics, 9 unstable metrics.

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.063 s) : 0, 1062790
Total [baseline] (11.114 s) : 0, 11114392
Agent [candidate] (1.056 s) : 0, 1055822
Total [candidate] (10.984 s) : 0, 10984083
section appsec
Agent [baseline] (1.283 s) : 0, 1282919
Total [baseline] (11.137 s) : 0, 11137107
Agent [candidate] (1.262 s) : 0, 1261505
Total [candidate] (11.043 s) : 0, 11043097
section iast
Agent [baseline] (1.246 s) : 0, 1245570
Total [baseline] (11.349 s) : 0, 11349500
Agent [candidate] (1.236 s) : 0, 1235713
Total [candidate] (11.352 s) : 0, 11352481
section profiling
Agent [baseline] (1.186 s) : 0, 1186088
Total [baseline] (10.957 s) : 0, 10957496
Agent [candidate] (1.195 s) : 0, 1194901
Total [candidate] (11.154 s) : 0, 11153854
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.063 s -
Agent appsec 1.283 s 220.128 ms (20.7%)
Agent iast 1.246 s 182.779 ms (17.2%)
Agent profiling 1.186 s 123.298 ms (11.6%)
Total tracing 11.114 s -
Total appsec 11.137 s 22.715 ms (0.2%)
Total iast 11.349 s 235.107 ms (2.1%)
Total profiling 10.957 s -156.896 ms (-1.4%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.056 s -
Agent appsec 1.262 s 205.683 ms (19.5%)
Agent iast 1.236 s 179.891 ms (17.0%)
Agent profiling 1.195 s 139.079 ms (13.2%)
Total tracing 10.984 s -
Total appsec 11.043 s 59.014 ms (0.5%)
Total iast 11.352 s 368.398 ms (3.4%)
Total profiling 11.154 s 169.771 ms (1.5%)
gantt
    title petclinic - break down per module: candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.228 ms) : 0, 1228
crashtracking [candidate] (1.23 ms) : 0, 1230
BytebuddyAgent [baseline] (635.283 ms) : 0, 635283
BytebuddyAgent [candidate] (635.406 ms) : 0, 635406
AgentMeter [baseline] (29.517 ms) : 0, 29517
AgentMeter [candidate] (29.384 ms) : 0, 29384
GlobalTracer [baseline] (248.677 ms) : 0, 248677
GlobalTracer [candidate] (248.866 ms) : 0, 248866
AppSec [baseline] (32.763 ms) : 0, 32763
AppSec [candidate] (32.293 ms) : 0, 32293
Debugger [baseline] (60.569 ms) : 0, 60569
Debugger [candidate] (60.192 ms) : 0, 60192
Remote Config [baseline] (602.88 µs) : 0, 603
Remote Config [candidate] (600.218 µs) : 0, 600
Telemetry [baseline] (8.325 ms) : 0, 8325
Telemetry [candidate] (8.075 ms) : 0, 8075
Flare Poller [baseline] (9.713 ms) : 0, 9713
Flare Poller [candidate] (3.567 ms) : 0, 3567
section appsec
crashtracking [baseline] (1.245 ms) : 0, 1245
crashtracking [candidate] (1.215 ms) : 0, 1215
BytebuddyAgent [baseline] (684.993 ms) : 0, 684993
BytebuddyAgent [candidate] (674.976 ms) : 0, 674976
AgentMeter [baseline] (12.389 ms) : 0, 12389
AgentMeter [candidate] (12.275 ms) : 0, 12275
GlobalTracer [baseline] (252.336 ms) : 0, 252336
GlobalTracer [candidate] (248.933 ms) : 0, 248933
AppSec [baseline] (187.037 ms) : 0, 187037
AppSec [candidate] (185.841 ms) : 0, 185841
Debugger [baseline] (65.714 ms) : 0, 65714
Debugger [candidate] (65.766 ms) : 0, 65766
Remote Config [baseline] (580.988 µs) : 0, 581
Remote Config [candidate] (586.182 µs) : 0, 586
Telemetry [baseline] (8.006 ms) : 0, 8006
Telemetry [candidate] (7.84 ms) : 0, 7840
Flare Poller [baseline] (8.623 ms) : 0, 8623
Flare Poller [candidate] (3.4 ms) : 0, 3400
IAST [baseline] (25.008 ms) : 0, 25008
IAST [candidate] (24.29 ms) : 0, 24290
section iast
crashtracking [baseline] (1.217 ms) : 0, 1217
crashtracking [candidate] (1.221 ms) : 0, 1221
BytebuddyAgent [baseline] (822.949 ms) : 0, 822949
BytebuddyAgent [candidate] (811.668 ms) : 0, 811668
AgentMeter [baseline] (11.368 ms) : 0, 11368
AgentMeter [candidate] (11.383 ms) : 0, 11383
GlobalTracer [baseline] (238.685 ms) : 0, 238685
GlobalTracer [candidate] (239.709 ms) : 0, 239709
AppSec [baseline] (31.488 ms) : 0, 31488
AppSec [candidate] (28.841 ms) : 0, 28841
Debugger [baseline] (63.377 ms) : 0, 63377
Debugger [candidate] (65.821 ms) : 0, 65821
Remote Config [baseline] (536.136 µs) : 0, 536
Remote Config [candidate] (560.516 µs) : 0, 561
Telemetry [baseline] (8.037 ms) : 0, 8037
Telemetry [candidate] (7.832 ms) : 0, 7832
Flare Poller [baseline] (3.405 ms) : 0, 3405
Flare Poller [candidate] (3.462 ms) : 0, 3462
IAST [baseline] (28.448 ms) : 0, 28448
IAST [candidate] (29.228 ms) : 0, 29228
section profiling
crashtracking [baseline] (1.179 ms) : 0, 1179
crashtracking [candidate] (1.195 ms) : 0, 1195
BytebuddyAgent [baseline] (692.5 ms) : 0, 692500
BytebuddyAgent [candidate] (697.288 ms) : 0, 697288
AgentMeter [baseline] (8.941 ms) : 0, 8941
AgentMeter [candidate] (9.067 ms) : 0, 9067
GlobalTracer [baseline] (207.658 ms) : 0, 207658
GlobalTracer [candidate] (210.125 ms) : 0, 210125
AppSec [baseline] (32.588 ms) : 0, 32588
AppSec [candidate] (33.045 ms) : 0, 33045
Debugger [baseline] (65.841 ms) : 0, 65841
Debugger [candidate] (66.11 ms) : 0, 66110
Remote Config [baseline] (568.971 µs) : 0, 569
Remote Config [candidate] (583.018 µs) : 0, 583
Telemetry [baseline] (8.067 ms) : 0, 8067
Telemetry [candidate] (7.905 ms) : 0, 7905
Flare Poller [baseline] (3.556 ms) : 0, 3556
Flare Poller [candidate] (3.56 ms) : 0, 3560
ProfilingAgent [baseline] (94.031 ms) : 0, 94031
ProfilingAgent [candidate] (94.302 ms) : 0, 94302
Profiling [baseline] (94.586 ms) : 0, 94586
Profiling [candidate] (94.878 ms) : 0, 94878
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.067 s) : 0, 1066943
Total [baseline] (8.865 s) : 0, 8865280
Agent [candidate] (1.064 s) : 0, 1064111
Total [candidate] (8.846 s) : 0, 8846435
section iast
Agent [baseline] (1.24 s) : 0, 1239686
Total [baseline] (9.575 s) : 0, 9575170
Agent [candidate] (1.233 s) : 0, 1232640
Total [candidate] (9.528 s) : 0, 9527657
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.067 s -
Agent iast 1.24 s 172.743 ms (16.2%)
Total tracing 8.865 s -
Total iast 9.575 s 709.889 ms (8.0%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.064 s -
Agent iast 1.233 s 168.529 ms (15.8%)
Total tracing 8.846 s -
Total iast 9.528 s 681.222 ms (7.7%)
gantt
    title insecure-bank - break down per module: candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.256 ms) : 0, 1256
crashtracking [candidate] (1.238 ms) : 0, 1238
BytebuddyAgent [baseline] (637.646 ms) : 0, 637646
BytebuddyAgent [candidate] (638.618 ms) : 0, 638618
AgentMeter [baseline] (29.444 ms) : 0, 29444
AgentMeter [candidate] (29.444 ms) : 0, 29444
GlobalTracer [baseline] (249.404 ms) : 0, 249404
GlobalTracer [candidate] (250.087 ms) : 0, 250087
AppSec [baseline] (33.02 ms) : 0, 33020
AppSec [candidate] (32.474 ms) : 0, 32474
Debugger [baseline] (60.314 ms) : 0, 60314
Debugger [candidate] (59.732 ms) : 0, 59732
Remote Config [baseline] (613.614 µs) : 0, 614
Remote Config [candidate] (610.55 µs) : 0, 611
Telemetry [baseline] (10.059 ms) : 0, 10059
Telemetry [candidate] (9.712 ms) : 0, 9712
Flare Poller [baseline] (9.174 ms) : 0, 9174
Flare Poller [candidate] (6.003 ms) : 0, 6003
section iast
crashtracking [baseline] (1.221 ms) : 0, 1221
crashtracking [candidate] (1.221 ms) : 0, 1221
BytebuddyAgent [baseline] (820.933 ms) : 0, 820933
BytebuddyAgent [candidate] (811.42 ms) : 0, 811420
AgentMeter [baseline] (11.263 ms) : 0, 11263
AgentMeter [candidate] (11.4 ms) : 0, 11400
GlobalTracer [baseline] (236.918 ms) : 0, 236918
GlobalTracer [candidate] (239.093 ms) : 0, 239093
AppSec [baseline] (31.286 ms) : 0, 31286
AppSec [candidate] (29.315 ms) : 0, 29315
Debugger [baseline] (62.159 ms) : 0, 62159
Debugger [candidate] (62.533 ms) : 0, 62533
Remote Config [baseline] (522.692 µs) : 0, 523
Remote Config [candidate] (525.596 µs) : 0, 526
Telemetry [baseline] (7.939 ms) : 0, 7939
Telemetry [candidate] (7.705 ms) : 0, 7705
Flare Poller [baseline] (3.316 ms) : 0, 3316
Flare Poller [candidate] (3.406 ms) : 0, 3406
IAST [baseline] (28.166 ms) : 0, 28166
IAST [candidate] (30.04 ms) : 0, 30040
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jpbempel/g2j-core-pt5
git_commit_date 1777321489 1777356366
git_commit_sha 75fe2b3 4683a66fe0
release_version 1.62.0-SNAPSHOT~75fe2b3c55 1.62.0-SNAPSHOT~b4683a66fe0
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1777358143 1777358143
ci_job_id 1636388826 1636388826
ci_pipeline_id 110066363 110066363
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-6u3zmirk 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-6u3zmirk 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 1 performance improvements and 3 performance regressions! Performance is the same for 16 metrics, 16 unstable metrics.

scenario Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p95 Δ mean throughput candidate mean agg_http_req_duration_p50 candidate mean agg_http_req_duration_p95 candidate mean throughput baseline mean agg_http_req_duration_p50 baseline mean agg_http_req_duration_p95 baseline mean throughput
scenario:load:insecure-bank:iast_FULL:high_load unsure
[-362.527µs; -69.591µs] or [-6.565%; -1.260%]
better
[-1117.645µs; -286.775µs] or [-8.373%; -2.149%]
unstable
[-45.512op/s; +106.074op/s] or [-6.087%; +14.188%]
5.306ms 12.645ms 777.938op/s 5.522ms 13.348ms 747.656op/s
scenario:load:petclinic:tracing:high_load worse
[+0.739ms; +1.788ms] or [+4.233%; +10.232%]
unsure
[+0.208ms; +1.808ms] or [+0.725%; +6.298%]
unstable
[-43.932op/s; +14.119op/s] or [-16.834%; +5.410%]
18.733ms 29.722ms 246.062op/s 17.469ms 28.714ms 260.969op/s
scenario:load:petclinic:iast:high_load worse
[+0.679ms; +1.473ms] or [+3.851%; +8.361%]
worse
[+1.335ms; +2.404ms] or [+4.651%; +8.375%]
unstable
[-43.002op/s; +14.190op/s] or [-16.573%; +5.469%]
18.699ms 30.575ms 245.062op/s 17.623ms 28.706ms 259.469op/s
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55
    dateFormat X
    axisFormat %s
section baseline
no_agent (19.225 ms) : 19032, 19418
.   : milestone, 19225,
appsec (18.707 ms) : 18521, 18894
.   : milestone, 18707,
code_origins (17.986 ms) : 17809, 18164
.   : milestone, 17986,
iast (17.98 ms) : 17804, 18157
.   : milestone, 17980,
profiling (18.974 ms) : 18786, 19163
.   : milestone, 18974,
tracing (17.877 ms) : 17698, 18055
.   : milestone, 17877,
section candidate
no_agent (19.125 ms) : 18931, 19319
.   : milestone, 19125,
appsec (18.901 ms) : 18712, 19091
.   : milestone, 18901,
code_origins (17.862 ms) : 17689, 18035
.   : milestone, 17862,
iast (19.046 ms) : 18850, 19242
.   : milestone, 19046,
profiling (18.368 ms) : 18189, 18548
.   : milestone, 18368,
tracing (18.969 ms) : 18780, 19159
.   : milestone, 18969,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 19.225 ms [19.032 ms, 19.418 ms] -
appsec 18.707 ms [18.521 ms, 18.894 ms] -517.778 µs (-2.7%)
code_origins 17.986 ms [17.809 ms, 18.164 ms] -1.239 ms (-6.4%)
iast 17.98 ms [17.804 ms, 18.157 ms] -1.245 ms (-6.5%)
profiling 18.974 ms [18.786 ms, 19.163 ms] -250.662 µs (-1.3%)
tracing 17.877 ms [17.698 ms, 18.055 ms] -1.348 ms (-7.0%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 19.125 ms [18.931 ms, 19.319 ms] -
appsec 18.901 ms [18.712 ms, 19.091 ms] -223.979 µs (-1.2%)
code_origins 17.862 ms [17.689 ms, 18.035 ms] -1.263 ms (-6.6%)
iast 19.046 ms [18.85 ms, 19.242 ms] -79.25 µs (-0.4%)
profiling 18.368 ms [18.189 ms, 18.548 ms] -757.028 µs (-4.0%)
tracing 18.969 ms [18.78 ms, 19.159 ms] -155.774 µs (-0.8%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.236 ms) : 1224, 1248
.   : milestone, 1236,
iast (3.311 ms) : 3265, 3357
.   : milestone, 3311,
iast_FULL (6.19 ms) : 6125, 6255
.   : milestone, 6190,
iast_GLOBAL (3.626 ms) : 3566, 3687
.   : milestone, 3626,
profiling (2.23 ms) : 2209, 2251
.   : milestone, 2230,
tracing (1.864 ms) : 1848, 1880
.   : milestone, 1864,
section candidate
no_agent (1.244 ms) : 1232, 1257
.   : milestone, 1244,
iast (3.268 ms) : 3226, 3309
.   : milestone, 3268,
iast_FULL (5.944 ms) : 5884, 6005
.   : milestone, 5944,
iast_GLOBAL (3.599 ms) : 3543, 3655
.   : milestone, 3599,
profiling (2.372 ms) : 2348, 2396
.   : milestone, 2372,
tracing (1.857 ms) : 1840, 1874
.   : milestone, 1857,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.236 ms [1.224 ms, 1.248 ms] -
iast 3.311 ms [3.265 ms, 3.357 ms] 2.075 ms (167.9%)
iast_FULL 6.19 ms [6.125 ms, 6.255 ms] 4.954 ms (400.8%)
iast_GLOBAL 3.626 ms [3.566 ms, 3.687 ms] 2.39 ms (193.4%)
profiling 2.23 ms [2.209 ms, 2.251 ms] 994.042 µs (80.4%)
tracing 1.864 ms [1.848 ms, 1.88 ms] 627.804 µs (50.8%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.244 ms [1.232 ms, 1.257 ms] -
iast 3.268 ms [3.226 ms, 3.309 ms] 2.023 ms (162.6%)
iast_FULL 5.944 ms [5.884 ms, 6.005 ms] 4.7 ms (377.6%)
iast_GLOBAL 3.599 ms [3.543 ms, 3.655 ms] 2.354 ms (189.2%)
profiling 2.372 ms [2.348 ms, 2.396 ms] 1.127 ms (90.6%)
tracing 1.857 ms [1.84 ms, 1.874 ms] 612.386 µs (49.2%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jpbempel/g2j-core-pt5
git_commit_date 1777321489 1777356475
git_commit_sha 75fe2b3 4683a66fe0
release_version 1.62.0-SNAPSHOT~75fe2b3c55 1.62.0-SNAPSHOT~b4683a66fe0
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1777357992 1777357992
ci_job_id 1636388827 1636388827
ci_pipeline_id 110066363 110066363
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-1-7v8aihd1 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-1-7v8aihd1 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 2 unstable metrics.

Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.021 s) : 15021000, 15021000
.   : milestone, 15021000,
appsec (14.969 s) : 14969000, 14969000
.   : milestone, 14969000,
iast (18.974 s) : 18974000, 18974000
.   : milestone, 18974000,
iast_GLOBAL (18.043 s) : 18043000, 18043000
.   : milestone, 18043000,
profiling (15.098 s) : 15098000, 15098000
.   : milestone, 15098000,
tracing (14.652 s) : 14652000, 14652000
.   : milestone, 14652000,
section candidate
no_agent (15.569 s) : 15569000, 15569000
.   : milestone, 15569000,
appsec (14.668 s) : 14668000, 14668000
.   : milestone, 14668000,
iast (18.789 s) : 18789000, 18789000
.   : milestone, 18789000,
iast_GLOBAL (17.9 s) : 17900000, 17900000
.   : milestone, 17900000,
profiling (14.797 s) : 14797000, 14797000
.   : milestone, 14797000,
tracing (15.035 s) : 15035000, 15035000
.   : milestone, 15035000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.021 s [15.021 s, 15.021 s] -
appsec 14.969 s [14.969 s, 14.969 s] -52.0 ms (-0.3%)
iast 18.974 s [18.974 s, 18.974 s] 3.953 s (26.3%)
iast_GLOBAL 18.043 s [18.043 s, 18.043 s] 3.022 s (20.1%)
profiling 15.098 s [15.098 s, 15.098 s] 77.0 ms (0.5%)
tracing 14.652 s [14.652 s, 14.652 s] -369.0 ms (-2.5%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.569 s [15.569 s, 15.569 s] -
appsec 14.668 s [14.668 s, 14.668 s] -901.0 ms (-5.8%)
iast 18.789 s [18.789 s, 18.789 s] 3.22 s (20.7%)
iast_GLOBAL 17.9 s [17.9 s, 17.9 s] 2.331 s (15.0%)
profiling 14.797 s [14.797 s, 14.797 s] -772.0 ms (-5.0%)
tracing 15.035 s [15.035 s, 15.035 s] -534.0 ms (-3.4%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.62.0-SNAPSHOT~b4683a66fe0, baseline=1.62.0-SNAPSHOT~75fe2b3c55
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.495 ms) : 1484, 1507
.   : milestone, 1495,
appsec (3.78 ms) : 3560, 4001
.   : milestone, 3780,
iast (2.282 ms) : 2212, 2352
.   : milestone, 2282,
iast_GLOBAL (2.326 ms) : 2257, 2396
.   : milestone, 2326,
profiling (2.126 ms) : 2070, 2181
.   : milestone, 2126,
tracing (2.081 ms) : 2028, 2135
.   : milestone, 2081,
section candidate
no_agent (1.49 ms) : 1479, 1502
.   : milestone, 1490,
appsec (3.759 ms) : 3542, 3976
.   : milestone, 3759,
iast (2.29 ms) : 2220, 2360
.   : milestone, 2290,
iast_GLOBAL (2.336 ms) : 2266, 2405
.   : milestone, 2336,
profiling (2.536 ms) : 2371, 2702
.   : milestone, 2536,
tracing (2.084 ms) : 2031, 2137
.   : milestone, 2084,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.495 ms [1.484 ms, 1.507 ms] -
appsec 3.78 ms [3.56 ms, 4.001 ms] 2.285 ms (152.8%)
iast 2.282 ms [2.212 ms, 2.352 ms] 786.632 µs (52.6%)
iast_GLOBAL 2.326 ms [2.257 ms, 2.396 ms] 831.251 µs (55.6%)
profiling 2.126 ms [2.07 ms, 2.181 ms] 630.481 µs (42.2%)
tracing 2.081 ms [2.028 ms, 2.135 ms] 586.063 µs (39.2%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.49 ms [1.479 ms, 1.502 ms] -
appsec 3.759 ms [3.542 ms, 3.976 ms] 2.268 ms (152.2%)
iast 2.29 ms [2.22 ms, 2.36 ms] 799.534 µs (53.6%)
iast_GLOBAL 2.336 ms [2.266 ms, 2.405 ms] 845.172 µs (56.7%)
profiling 2.536 ms [2.371 ms, 2.702 ms] 1.046 ms (70.2%)
tracing 2.084 ms [2.031 ms, 2.137 ms] 593.51 µs (39.8%)

@jpbempel jpbempel added comp: testing Testing tag: no release notes Changes to exclude from release notes labels Apr 28, 2026
Copy link
Copy Markdown
Contributor

@PerfectSlayer PerfectSlayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Early review of a single file (DDSpanContextTest). More eyes welcome on this review :)

Comment on lines +224 to +239
case "Integer.MAX_VALUE":
return Integer.MAX_VALUE;
case "Integer.MIN_VALUE":
return Integer.MIN_VALUE;
case "Short.MAX_VALUE":
return Short.MAX_VALUE;
case "Short.MIN_VALUE":
return Short.MIN_VALUE;
case "Float.MAX_VALUE":
return Float.MAX_VALUE;
case "Float.MIN_VALUE":
return Float.MIN_VALUE;
case "Double.MAX_VALUE":
return Double.MAX_VALUE;
case "Double.MIN_VALUE":
return Double.MIN_VALUE;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❔ question: ‏Should this be part of the common type converter?

"scenario | rate | limit ",
"rate=1.0 limit=10 | 1.0 | 10 ",
"rate=0.5 limit=100 | 0.5 | 100 ",
"rate=0.25 no limit | 0.25 | 2147483647"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔨 issue: ‏Set limit to Integer.MAX_VALUE

}

@TableTest({
"scenario | rate | limit ",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❔ question: ‏Is scenario useful if it only duplicate parameter values?
Better keep the default behavior without scenario to avoid duplication.

assertEquals(DDSpanContext.SPAN_KIND_CUSTOM + 1, DDSpanContext.SPAN_KIND_VALUES.length);

assertEquals(
Tags.SPAN_KIND_SERVER, DDSpanContext.SPAN_KIND_VALUES[DDSpanContext.SPAN_KIND_SERVER]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 suggestion: ‏What about using static imports for Tags, DDTags, and DDSpanContext to improve readability?

Comment on lines +462 to +468
"scenario | kindString | expectedOrdinal",
"server | server | 1 ",
"client | client | 2 ",
"producer | producer | 3 ",
"consumer | consumer | 4 ",
"internal | internal | 5 ",
"broker | broker | 6 "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔨 issue: ‏Ordinal was resolved. It was supposed to be constant references.

}

@TableTest({
"scenario | kindString",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 suggestion: ‏Drop duplicate scenario

}

@TableTest({
"scenario | kindString",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 suggestion: ‏Drop duplicate scenario

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: testing Testing tag: no release notes Changes to exclude from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants