Skip to content
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

WIP - delay starting OkHttp #8276

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

mcculls
Copy link
Contributor

@mcculls mcculls commented Jan 23, 2025

What Does This Do

Motivation

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@mcculls mcculls added the tag: do not merge Do not merge changes label Jan 23, 2025
@pr-commenter
Copy link

pr-commenter bot commented Jan 23, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mcculls/delay-starting-okhttp
git_commit_date 1737765352 1737821640
git_commit_sha f701ba9 d033330
release_version 1.46.0-SNAPSHOT~f701ba9d75 1.46.0-SNAPSHOT~d033330727
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1737824131 1737824131
ci_job_id 780617358 780617358
ci_pipeline_id 53993934 53993934
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-kcmwffss-project-304-concurrent-0-9k4oz2uj 6.8.0-1018-aws #19~22.04.1-Ubuntu SMP Wed Oct 9 16:48:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Linux runner-kcmwffss-project-304-concurrent-0-9k4oz2uj 6.8.0-1018-aws #19~22.04.1-Ubuntu SMP Wed Oct 9 16:48:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
module Agent Agent
parent None None
variant iast iast

Summary

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

Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.046 s) : 0, 1045645
Total [baseline] (8.645 s) : 0, 8645167
Agent [candidate] (1.037 s) : 0, 1037384
Total [candidate] (8.644 s) : 0, 8644048
section iast
Agent [baseline] (1.162 s) : 0, 1162132
Total [baseline] (9.211 s) : 0, 9211111
Agent [candidate] (1.166 s) : 0, 1166202
Total [candidate] (9.232 s) : 0, 9232264
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.175 s) : 0, 1174761
Total [baseline] (9.174 s) : 0, 9174286
Agent [candidate] (1.167 s) : 0, 1166628
Total [candidate] (9.143 s) : 0, 9143376
section iast_TELEMETRY_OFF
Agent [baseline] (1.16 s) : 0, 1160365
Total [baseline] (9.212 s) : 0, 9211944
Agent [candidate] (1.177 s) : 0, 1177161
Total [candidate] (9.258 s) : 0, 9258382
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.046 s -
Agent iast 1.162 s 116.488 ms (11.1%)
Agent iast_HARDCODED_SECRET_DISABLED 1.175 s 129.116 ms (12.3%)
Agent iast_TELEMETRY_OFF 1.16 s 114.721 ms (11.0%)
Total tracing 8.645 s -
Total iast 9.211 s 565.945 ms (6.5%)
Total iast_HARDCODED_SECRET_DISABLED 9.174 s 529.12 ms (6.1%)
Total iast_TELEMETRY_OFF 9.212 s 566.777 ms (6.6%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.037 s -
Agent iast 1.166 s 128.818 ms (12.4%)
Agent iast_HARDCODED_SECRET_DISABLED 1.167 s 129.244 ms (12.5%)
Agent iast_TELEMETRY_OFF 1.177 s 139.777 ms (13.5%)
Total tracing 8.644 s -
Total iast 9.232 s 588.216 ms (6.8%)
Total iast_HARDCODED_SECRET_DISABLED 9.143 s 499.328 ms (5.8%)
Total iast_TELEMETRY_OFF 9.258 s 614.334 ms (7.1%)
gantt
    title insecure-bank - break down per module: candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (721.308 ms) : 0, 721308
BytebuddyAgent [candidate] (714.476 ms) : 0, 714476
GlobalTracer [baseline] (240.658 ms) : 0, 240658
GlobalTracer [candidate] (239.171 ms) : 0, 239171
AppSec [baseline] (55.561 ms) : 0, 55561
AppSec [candidate] (55.44 ms) : 0, 55440
Remote Config [baseline] (723.447 µs) : 0, 723
Remote Config [candidate] (709.813 µs) : 0, 710
Telemetry [baseline] (12.205 ms) : 0, 12205
Telemetry [candidate] (12.331 ms) : 0, 12331
section iast
BytebuddyAgent [baseline] (830.182 ms) : 0, 830182
BytebuddyAgent [candidate] (832.717 ms) : 0, 832717
GlobalTracer [baseline] (228.6 ms) : 0, 228600
GlobalTracer [candidate] (229.732 ms) : 0, 229732
AppSec [baseline] (57.004 ms) : 0, 57004
AppSec [candidate] (57.828 ms) : 0, 57828
IAST [baseline] (21.983 ms) : 0, 21983
IAST [candidate] (21.283 ms) : 0, 21283
Remote Config [baseline] (645.611 µs) : 0, 646
Remote Config [candidate] (666.845 µs) : 0, 667
Telemetry [baseline] (8.688 ms) : 0, 8688
Telemetry [candidate] (8.659 ms) : 0, 8659
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (839.2 ms) : 0, 839200
BytebuddyAgent [candidate] (833.297 ms) : 0, 833297
GlobalTracer [baseline] (230.861 ms) : 0, 230861
GlobalTracer [candidate] (229.022 ms) : 0, 229022
AppSec [baseline] (58.831 ms) : 0, 58831
AppSec [candidate] (58.291 ms) : 0, 58291
IAST [baseline] (21.158 ms) : 0, 21158
IAST [candidate] (21.41 ms) : 0, 21410
Remote Config [baseline] (653.555 µs) : 0, 654
Remote Config [candidate] (640.874 µs) : 0, 641
Telemetry [baseline] (8.879 ms) : 0, 8879
Telemetry [candidate] (8.722 ms) : 0, 8722
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (828.577 ms) : 0, 828577
BytebuddyAgent [candidate] (841.139 ms) : 0, 841139
GlobalTracer [baseline] (228.598 ms) : 0, 228598
GlobalTracer [candidate] (231.462 ms) : 0, 231462
AppSec [baseline] (58.094 ms) : 0, 58094
AppSec [candidate] (58.419 ms) : 0, 58419
IAST [baseline] (20.858 ms) : 0, 20858
IAST [candidate] (21.255 ms) : 0, 21255
Remote Config [baseline] (653.181 µs) : 0, 653
Remote Config [candidate] (676.323 µs) : 0, 676
Telemetry [baseline] (8.659 ms) : 0, 8659
Telemetry [candidate] (8.76 ms) : 0, 8760
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.036 s) : 0, 1036063
Total [baseline] (10.445 s) : 0, 10444602
Agent [candidate] (1.041 s) : 0, 1040947
Total [candidate] (10.518 s) : 0, 10517984
section appsec
Agent [baseline] (1.178 s) : 0, 1177509
Total [baseline] (10.705 s) : 0, 10705037
Agent [candidate] (1.177 s) : 0, 1177081
Total [candidate] (10.696 s) : 0, 10696012
section iast
Agent [baseline] (1.169 s) : 0, 1168588
Total [baseline] (10.965 s) : 0, 10964575
Agent [candidate] (1.17 s) : 0, 1170015
Total [candidate] (10.984 s) : 0, 10983539
section profiling
Agent [baseline] (1.277 s) : 0, 1277360
Total [baseline] (10.829 s) : 0, 10828979
Agent [candidate] (1.253 s) : 0, 1252847
Total [candidate] (10.88 s) : 0, 10880359
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.036 s -
Agent appsec 1.178 s 141.446 ms (13.7%)
Agent iast 1.169 s 132.525 ms (12.8%)
Agent profiling 1.277 s 241.296 ms (23.3%)
Total tracing 10.445 s -
Total appsec 10.705 s 260.435 ms (2.5%)
Total iast 10.965 s 519.973 ms (5.0%)
Total profiling 10.829 s 384.377 ms (3.7%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.041 s -
Agent appsec 1.177 s 136.133 ms (13.1%)
Agent iast 1.17 s 129.067 ms (12.4%)
Agent profiling 1.253 s 211.899 ms (20.4%)
Total tracing 10.518 s -
Total appsec 10.696 s 178.028 ms (1.7%)
Total iast 10.984 s 465.555 ms (4.4%)
Total profiling 10.88 s 362.375 ms (3.4%)
gantt
    title petclinic - break down per module: candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (713.473 ms) : 0, 713473
BytebuddyAgent [candidate] (717.263 ms) : 0, 717263
GlobalTracer [baseline] (238.479 ms) : 0, 238479
GlobalTracer [candidate] (239.869 ms) : 0, 239869
AppSec [baseline] (56.335 ms) : 0, 56335
AppSec [candidate] (55.601 ms) : 0, 55601
Remote Config [baseline] (709.741 µs) : 0, 710
Remote Config [candidate] (707.389 µs) : 0, 707
Telemetry [baseline] (12.085 ms) : 0, 12085
Telemetry [candidate] (12.198 ms) : 0, 12198
section appsec
BytebuddyAgent [baseline] (731.616 ms) : 0, 731616
BytebuddyAgent [candidate] (731.263 ms) : 0, 731263
GlobalTracer [baseline] (236.327 ms) : 0, 236327
GlobalTracer [candidate] (235.698 ms) : 0, 235698
AppSec [baseline] (176.124 ms) : 0, 176124
AppSec [candidate] (176.043 ms) : 0, 176043
IAST [baseline] (19.297 ms) : 0, 19297
IAST [candidate] (19.233 ms) : 0, 19233
Remote Config [baseline] (660.159 µs) : 0, 660
Remote Config [candidate] (663.433 µs) : 0, 663
Telemetry [baseline] (8.176 ms) : 0, 8176
Telemetry [candidate] (8.531 ms) : 0, 8531
section iast
BytebuddyAgent [baseline] (834.595 ms) : 0, 834595
BytebuddyAgent [candidate] (834.334 ms) : 0, 834334
GlobalTracer [baseline] (230.188 ms) : 0, 230188
GlobalTracer [candidate] (230.577 ms) : 0, 230577
AppSec [baseline] (57.278 ms) : 0, 57278
AppSec [candidate] (58.595 ms) : 0, 58595
IAST [baseline] (22.088 ms) : 0, 22088
IAST [candidate] (21.597 ms) : 0, 21597
Remote Config [baseline] (662.221 µs) : 0, 662
Remote Config [candidate] (666.525 µs) : 0, 667
Telemetry [baseline] (8.765 ms) : 0, 8765
Telemetry [candidate] (8.923 ms) : 0, 8923
section profiling
BytebuddyAgent [baseline] (717.545 ms) : 0, 717545
BytebuddyAgent [candidate] (703.619 ms) : 0, 703619
GlobalTracer [baseline] (353.805 ms) : 0, 353805
GlobalTracer [candidate] (348.981 ms) : 0, 348981
AppSec [baseline] (55.745 ms) : 0, 55745
AppSec [candidate] (53.711 ms) : 0, 53711
Remote Config [baseline] (740.435 µs) : 0, 740
Remote Config [candidate] (720.897 µs) : 0, 721
Telemetry [baseline] (9.027 ms) : 0, 9027
Telemetry [candidate] (8.827 ms) : 0, 8827
ProfilingAgent [baseline] (97.732 ms) : 0, 97732
ProfilingAgent [candidate] (94.674 ms) : 0, 94674
Profiling [baseline] (97.757 ms) : 0, 97757
Profiling [candidate] (94.698 ms) : 0, 94698
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
end_time 2025-01-25T16:25:47 2025-01-25T16:32:49
git_branch master mcculls/delay-starting-okhttp
git_commit_date 1737765352 1737821640
git_commit_sha f701ba9 d033330
release_version 1.46.0-SNAPSHOT~f701ba9d75 1.46.0-SNAPSHOT~d033330727
start_time 2025-01-25T16:25:33 2025-01-25T16:32:35
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1737823127 1737823127
ci_job_id 780617359 780617359
ci_pipeline_id 53993934 53993934
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-xugqgpm8-project-304-concurrent-0-t0dnsvvm 6.8.0-1018-aws #19~22.04.1-Ubuntu SMP Wed Oct 9 16:48:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Linux runner-xugqgpm8-project-304-concurrent-0-t0dnsvvm 6.8.0-1018-aws #19~22.04.1-Ubuntu SMP Wed Oct 9 16:48:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
variant iast iast

Summary

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

Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.359 ms) : 1339, 1379
.   : milestone, 1359,
appsec (1.728 ms) : 1705, 1752
.   : milestone, 1728,
appsec_no_iast (1.758 ms) : 1732, 1784
.   : milestone, 1758,
iast (1.503 ms) : 1479, 1527
.   : milestone, 1503,
profiling (1.502 ms) : 1479, 1526
.   : milestone, 1502,
tracing (1.494 ms) : 1469, 1518
.   : milestone, 1494,
section candidate
no_agent (1.363 ms) : 1343, 1383
.   : milestone, 1363,
appsec (1.751 ms) : 1727, 1774
.   : milestone, 1751,
appsec_no_iast (1.754 ms) : 1730, 1779
.   : milestone, 1754,
iast (1.513 ms) : 1490, 1537
.   : milestone, 1513,
profiling (1.558 ms) : 1533, 1583
.   : milestone, 1558,
tracing (1.476 ms) : 1450, 1501
.   : milestone, 1476,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.359 ms [1.339 ms, 1.379 ms] -
appsec 1.728 ms [1.705 ms, 1.752 ms] 369.36 µs (27.2%)
appsec_no_iast 1.758 ms [1.732 ms, 1.784 ms] 398.934 µs (29.4%)
iast 1.503 ms [1.479 ms, 1.527 ms] 144.118 µs (10.6%)
profiling 1.502 ms [1.479 ms, 1.526 ms] 143.124 µs (10.5%)
tracing 1.494 ms [1.469 ms, 1.518 ms] 134.625 µs (9.9%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.363 ms [1.343 ms, 1.383 ms] -
appsec 1.751 ms [1.727 ms, 1.774 ms] 387.802 µs (28.5%)
appsec_no_iast 1.754 ms [1.73 ms, 1.779 ms] 391.609 µs (28.7%)
iast 1.513 ms [1.49 ms, 1.537 ms] 150.607 µs (11.1%)
profiling 1.558 ms [1.533 ms, 1.583 ms] 195.279 µs (14.3%)
tracing 1.476 ms [1.45 ms, 1.501 ms] 112.752 µs (8.3%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75
    dateFormat X
    axisFormat %s
section baseline
no_agent (380.098 µs) : 360, 400
.   : milestone, 380,
iast (511.05 µs) : 489, 533
.   : milestone, 511,
iast_FULL (740.524 µs) : 718, 764
.   : milestone, 741,
iast_GLOBAL (558.861 µs) : 535, 582
.   : milestone, 559,
iast_HARDCODED_SECRET_DISABLED (514.332 µs) : 491, 538
.   : milestone, 514,
iast_INACTIVE (454.178 µs) : 433, 475
.   : milestone, 454,
iast_TELEMETRY_OFF (493.916 µs) : 471, 517
.   : milestone, 494,
tracing (442.625 µs) : 422, 463
.   : milestone, 443,
section candidate
no_agent (376.296 µs) : 357, 396
.   : milestone, 376,
iast (507.137 µs) : 485, 530
.   : milestone, 507,
iast_FULL (735.446 µs) : 713, 758
.   : milestone, 735,
iast_GLOBAL (561.653 µs) : 538, 585
.   : milestone, 562,
iast_HARDCODED_SECRET_DISABLED (511.676 µs) : 488, 535
.   : milestone, 512,
iast_INACTIVE (454.258 µs) : 433, 476
.   : milestone, 454,
iast_TELEMETRY_OFF (498.61 µs) : 475, 522
.   : milestone, 499,
tracing (449.096 µs) : 429, 470
.   : milestone, 449,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 380.098 µs [359.77 µs, 400.427 µs] -
iast 511.05 µs [489.125 µs, 532.975 µs] 130.952 µs (34.5%)
iast_FULL 740.524 µs [717.507 µs, 763.54 µs] 360.425 µs (94.8%)
iast_GLOBAL 558.861 µs [535.291 µs, 582.431 µs] 178.763 µs (47.0%)
iast_HARDCODED_SECRET_DISABLED 514.332 µs [490.792 µs, 537.873 µs] 134.234 µs (35.3%)
iast_INACTIVE 454.178 µs [432.91 µs, 475.445 µs] 74.079 µs (19.5%)
iast_TELEMETRY_OFF 493.916 µs [470.791 µs, 517.041 µs] 113.818 µs (29.9%)
tracing 442.625 µs [422.097 µs, 463.152 µs] 62.526 µs (16.5%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 376.296 µs [356.694 µs, 395.898 µs] -
iast 507.137 µs [484.746 µs, 529.528 µs] 130.841 µs (34.8%)
iast_FULL 735.446 µs [712.573 µs, 758.319 µs] 359.15 µs (95.4%)
iast_GLOBAL 561.653 µs [537.955 µs, 585.351 µs] 185.357 µs (49.3%)
iast_HARDCODED_SECRET_DISABLED 511.676 µs [487.952 µs, 535.4 µs] 135.38 µs (36.0%)
iast_INACTIVE 454.258 µs [433.003 µs, 475.512 µs] 77.961 µs (20.7%)
iast_TELEMETRY_OFF 498.61 µs [475.374 µs, 521.847 µs] 122.314 µs (32.5%)
tracing 449.096 µs [428.541 µs, 469.651 µs] 72.8 µs (19.3%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mcculls/delay-starting-okhttp
git_commit_date 1737765352 1737821640
git_commit_sha f701ba9 d033330
release_version 1.46.0-SNAPSHOT~f701ba9d75 1.46.0-SNAPSHOT~d033330727
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1737823714 1737823714
ci_job_id 780617360 780617360
ci_pipeline_id 53993934 53993934
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-kcmwffss-project-304-concurrent-1-lfpuajkd 6.8.0-1018-aws #19~22.04.1-Ubuntu SMP Wed Oct 9 16:48:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Linux runner-kcmwffss-project-304-concurrent-1-lfpuajkd 6.8.0-1018-aws #19~22.04.1-Ubuntu SMP Wed Oct 9 16:48:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
variant appsec appsec

Summary

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

Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.472 ms) : 1461, 1484
.   : milestone, 1472,
appsec (2.346 ms) : 2303, 2389
.   : milestone, 2346,
iast (2.094 ms) : 2039, 2148
.   : milestone, 2094,
iast_GLOBAL (2.146 ms) : 2091, 2201
.   : milestone, 2146,
profiling (2.455 ms) : 2266, 2644
.   : milestone, 2455,
tracing (1.941 ms) : 1899, 1983
.   : milestone, 1941,
section candidate
no_agent (1.466 ms) : 1455, 1478
.   : milestone, 1466,
appsec (2.353 ms) : 2311, 2396
.   : milestone, 2353,
iast (2.101 ms) : 2046, 2155
.   : milestone, 2101,
iast_GLOBAL (2.137 ms) : 2083, 2192
.   : milestone, 2137,
profiling (1.964 ms) : 1920, 2007
.   : milestone, 1964,
tracing (1.931 ms) : 1890, 1973
.   : milestone, 1931,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.472 ms [1.461 ms, 1.484 ms] -
appsec 2.346 ms [2.303 ms, 2.389 ms] 873.705 µs (59.3%)
iast 2.094 ms [2.039 ms, 2.148 ms] 621.247 µs (42.2%)
iast_GLOBAL 2.146 ms [2.091 ms, 2.201 ms] 673.635 µs (45.8%)
profiling 2.455 ms [2.266 ms, 2.644 ms] 983.121 µs (66.8%)
tracing 1.941 ms [1.899 ms, 1.983 ms] 468.797 µs (31.8%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.466 ms [1.455 ms, 1.478 ms] -
appsec 2.353 ms [2.311 ms, 2.396 ms] 887.093 µs (60.5%)
iast 2.101 ms [2.046 ms, 2.155 ms] 634.244 µs (43.3%)
iast_GLOBAL 2.137 ms [2.083 ms, 2.192 ms] 670.901 µs (45.8%)
profiling 1.964 ms [1.92 ms, 2.007 ms] 497.404 µs (33.9%)
tracing 1.931 ms [1.89 ms, 1.973 ms] 465.001 µs (31.7%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~d033330727, baseline=1.46.0-SNAPSHOT~f701ba9d75
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.487 s) : 15487000, 15487000
.   : milestone, 15487000,
appsec (15.07 s) : 15070000, 15070000
.   : milestone, 15070000,
iast (18.79 s) : 18790000, 18790000
.   : milestone, 18790000,
iast_GLOBAL (17.991 s) : 17991000, 17991000
.   : milestone, 17991000,
profiling (15.02 s) : 15020000, 15020000
.   : milestone, 15020000,
tracing (14.83 s) : 14830000, 14830000
.   : milestone, 14830000,
section candidate
no_agent (15.623 s) : 15623000, 15623000
.   : milestone, 15623000,
appsec (15.003 s) : 15003000, 15003000
.   : milestone, 15003000,
iast (18.895 s) : 18895000, 18895000
.   : milestone, 18895000,
iast_GLOBAL (18.244 s) : 18244000, 18244000
.   : milestone, 18244000,
profiling (14.988 s) : 14988000, 14988000
.   : milestone, 14988000,
tracing (14.795 s) : 14795000, 14795000
.   : milestone, 14795000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.487 s [15.487 s, 15.487 s] -
appsec 15.07 s [15.07 s, 15.07 s] -417.0 ms (-2.7%)
iast 18.79 s [18.79 s, 18.79 s] 3.303 s (21.3%)
iast_GLOBAL 17.991 s [17.991 s, 17.991 s] 2.504 s (16.2%)
profiling 15.02 s [15.02 s, 15.02 s] -467.0 ms (-3.0%)
tracing 14.83 s [14.83 s, 14.83 s] -657.0 ms (-4.2%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.623 s [15.623 s, 15.623 s] -
appsec 15.003 s [15.003 s, 15.003 s] -620.0 ms (-4.0%)
iast 18.895 s [18.895 s, 18.895 s] 3.272 s (20.9%)
iast_GLOBAL 18.244 s [18.244 s, 18.244 s] 2.621 s (16.8%)
profiling 14.988 s [14.988 s, 14.988 s] -635.0 ms (-4.1%)
tracing 14.795 s [14.795 s, 14.795 s] -828.0 ms (-5.3%)

@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch 5 times, most recently from 86f7cae to dffe2ac Compare January 24, 2025 14:58
@mcculls mcculls added the run-tests: ibm8 Run tests using IBM 8 JDK label Jan 24, 2025
@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch from dffe2ac to e7ae79b Compare January 24, 2025 16:00
@mcculls mcculls changed the title WIP - delay starting OkHttp (default to 1 second) WIP - delay starting OkHttp Jan 24, 2025
@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch from e7ae79b to 1c050d0 Compare January 24, 2025 16:29
@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch 2 times, most recently from 2af2a09 to c51a05c Compare January 24, 2025 20:24
@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch from c51a05c to 8090724 Compare January 24, 2025 21:49
@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch from 6210f36 to 1b56d50 Compare January 24, 2025 23:57
*/
static byte[] concatLengthPrefixed(List<Protocol> protocols) {
Buffer result = new Buffer();
for (int i = 0, size = protocols.size(); i < size; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🟠 Code Quality Violation

Too many control variables can make it difficult to reason about (...read more)

The presence of multiple control variables in a for loop can obscure the range of values over which the loop iterates and make your code brittle and difficult to debug.

To follow this rule, regular for loops should have only one control variable.

View in Datadog  Leave us feedback  Documentation

@@ -80,6 +81,7 @@ public class DDAgentFeaturesDiscovery implements DroppingPolicy {
private volatile String telemetryProxyEndpoint;

private long lastTimeDiscovered;
private MessageDigest sha256;
Copy link
Contributor

Choose a reason for hiding this comment

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

Code Quality Violation

Avoid declaring a field of MessageDigest type as unsynchronized access could cause problems (...read more)

When you designate a MessageDigest instance as a class member, you enable direct access for multiple threads in your program. It is important to exercise caution when sharing instances among threads without proper synchronization.

Instead of sharing a single MessageDigest instance, consider generating new instances when necessary and using them locally within the specific context where they are needed. This practice offers two benefits. First, it guarantees that each thread operates on its own instance, thereby minimizing the possibility of interference between threads. Second, it sidesteps the intricacies of managing synchronized access to a shared instance.

View in Datadog  Leave us feedback  Documentation

@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch from 69ea585 to 9092481 Compare January 25, 2025 14:29
@mcculls mcculls force-pushed the mcculls/delay-starting-okhttp branch from 9092481 to d033330 Compare January 25, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-tests: ibm8 Run tests using IBM 8 JDK tag: do not merge Do not merge changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant