-
Notifications
You must be signed in to change notification settings - Fork 289
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
Implement ForKnownTypes for commons-fileupload integration #6238
Merged
Conversation
This file contains 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
ForKnownTypes is preferred because we know we can statically build that into the tracer and optimize it, whereas ForConfiguredTypes implies it might change at runtime and therefore shouldn't be optimized.
mcculls
approved these changes
Nov 16, 2023
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 54 cases. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.25.0-SNAPSHOT~ccccff7ca6, baseline=1.25.0-SNAPSHOT~fce1d5c289
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.032 s) : 0, 1031962
Total [baseline] (8.79 s) : 0, 8789664
Agent [candidate] (1.037 s) : 0, 1036568
Total [candidate] (8.808 s) : 0, 8808482
section iast
Agent [baseline] (1.149 s) : 0, 1148780
Total [baseline] (9.34 s) : 0, 9340167
Agent [candidate] (1.149 s) : 0, 1149109
Total [candidate] (9.32 s) : 0, 9320304
section iast_TELEMETRY_OFF
Agent [baseline] (1.144 s) : 0, 1144166
Total [baseline] (9.311 s) : 0, 9311148
Agent [candidate] (1.154 s) : 0, 1154014
Total [candidate] (9.324 s) : 0, 9323774
gantt
title insecure-bank - break down per module: candidate=1.25.0-SNAPSHOT~ccccff7ca6, baseline=1.25.0-SNAPSHOT~fce1d5c289
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (645.799 ms) : 0, 645799
BytebuddyAgent [candidate] (648.779 ms) : 0, 648779
GlobalTracer [baseline] (294.888 ms) : 0, 294888
GlobalTracer [candidate] (296.404 ms) : 0, 296404
AppSec [baseline] (48.98 ms) : 0, 48980
AppSec [candidate] (49.033 ms) : 0, 49033
Remote Config [baseline] (675.911 µs) : 0, 676
Remote Config [candidate] (669.939 µs) : 0, 670
Telemetry [baseline] (7.183 ms) : 0, 7183
Telemetry [candidate] (7.216 ms) : 0, 7216
section iast
BytebuddyAgent [baseline] (767.257 ms) : 0, 767257
BytebuddyAgent [candidate] (767.685 ms) : 0, 767685
GlobalTracer [baseline] (274.745 ms) : 0, 274745
GlobalTracer [candidate] (275.392 ms) : 0, 275392
AppSec [baseline] (46.453 ms) : 0, 46453
AppSec [candidate] (46.294 ms) : 0, 46294
IAST [baseline] (16.739 ms) : 0, 16739
IAST [candidate] (14.867 ms) : 0, 14867
Remote Config [baseline] (605.647 µs) : 0, 606
Remote Config [candidate] (590.094 µs) : 0, 590
Telemetry [baseline] (8.613 ms) : 0, 8613
Telemetry [candidate] (9.893 ms) : 0, 9893
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (761.259 ms) : 0, 761259
BytebuddyAgent [candidate] (768.356 ms) : 0, 768356
GlobalTracer [baseline] (275.673 ms) : 0, 275673
GlobalTracer [candidate] (278.443 ms) : 0, 278443
AppSec [baseline] (46.893 ms) : 0, 46893
AppSec [candidate] (47.123 ms) : 0, 47123
IAST [baseline] (16.706 ms) : 0, 16706
IAST [candidate] (16.264 ms) : 0, 16264
Remote Config [baseline] (595.15 µs) : 0, 595
Remote Config [candidate] (605.118 µs) : 0, 605
Telemetry [baseline] (8.642 ms) : 0, 8642
Telemetry [candidate] (8.441 ms) : 0, 8441
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.25.0-SNAPSHOT~ccccff7ca6, baseline=1.25.0-SNAPSHOT~fce1d5c289
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.04 s) : 0, 1040253
Total [baseline] (9.313 s) : 0, 9313340
Agent [candidate] (1.039 s) : 0, 1039256
Total [candidate] (9.317 s) : 0, 9316624
section appsec
Agent [baseline] (1.128 s) : 0, 1128474
Total [baseline] (9.393 s) : 0, 9393052
Agent [candidate] (1.137 s) : 0, 1136631
Total [candidate] (9.398 s) : 0, 9397840
section iast
Agent [baseline] (1.158 s) : 0, 1157899
Total [baseline] (9.567 s) : 0, 9566924
Agent [candidate] (1.153 s) : 0, 1153312
Total [candidate] (9.502 s) : 0, 9501555
section profiling
Agent [baseline] (1.215 s) : 0, 1214880
Total [baseline] (9.518 s) : 0, 9518188
Agent [candidate] (1.218 s) : 0, 1217961
Total [candidate] (9.587 s) : 0, 9587035
gantt
title petclinic - break down per module: candidate=1.25.0-SNAPSHOT~ccccff7ca6, baseline=1.25.0-SNAPSHOT~fce1d5c289
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (651.494 ms) : 0, 651494
BytebuddyAgent [candidate] (651.805 ms) : 0, 651805
GlobalTracer [baseline] (297.021 ms) : 0, 297021
GlobalTracer [candidate] (296.003 ms) : 0, 296003
AppSec [baseline] (49.199 ms) : 0, 49199
AppSec [candidate] (48.984 ms) : 0, 48984
Remote Config [baseline] (661.248 µs) : 0, 661
Remote Config [candidate] (662.071 µs) : 0, 662
Telemetry [baseline] (7.24 ms) : 0, 7240
Telemetry [candidate] (7.212 ms) : 0, 7212
section appsec
BytebuddyAgent [baseline] (651.036 ms) : 0, 651036
BytebuddyAgent [candidate] (654.579 ms) : 0, 654579
GlobalTracer [baseline] (296.308 ms) : 0, 296308
GlobalTracer [candidate] (299.766 ms) : 0, 299766
AppSec [baseline] (139.165 ms) : 0, 139165
AppSec [candidate] (140.086 ms) : 0, 140086
Remote Config [baseline] (644.464 µs) : 0, 644
Remote Config [candidate] (649.792 µs) : 0, 650
Telemetry [baseline] (6.811 ms) : 0, 6811
Telemetry [candidate] (6.845 ms) : 0, 6845
section iast
BytebuddyAgent [baseline] (773.296 ms) : 0, 773296
BytebuddyAgent [candidate] (770.204 ms) : 0, 770204
GlobalTracer [baseline] (276.3 ms) : 0, 276300
GlobalTracer [candidate] (276.121 ms) : 0, 276121
AppSec [baseline] (46.958 ms) : 0, 46958
AppSec [candidate] (46.653 ms) : 0, 46653
Remote Config [baseline] (586.742 µs) : 0, 587
Remote Config [candidate] (560.293 µs) : 0, 560
Telemetry [baseline] (7.171 ms) : 0, 7171
Telemetry [candidate] (6.411 ms) : 0, 6411
IAST [baseline] (18.894 ms) : 0, 18894
IAST [candidate] (18.923 ms) : 0, 18923
section profiling
BytebuddyAgent [baseline] (656.763 ms) : 0, 656763
BytebuddyAgent [candidate] (658.558 ms) : 0, 658558
GlobalTracer [baseline] (359.487 ms) : 0, 359487
GlobalTracer [candidate] (360.316 ms) : 0, 360316
AppSec [baseline] (48.848 ms) : 0, 48848
AppSec [candidate] (48.482 ms) : 0, 48482
Remote Config [baseline] (646.958 µs) : 0, 647
Remote Config [candidate] (639.45 µs) : 0, 639
Telemetry [baseline] (7.318 ms) : 0, 7318
Telemetry [candidate] (7.383 ms) : 0, 7383
ProfilingAgent [baseline] (87.71 ms) : 0, 87710
ProfilingAgent [candidate] (88.229 ms) : 0, 88229
Profiling [baseline] (87.733 ms) : 0, 87733
Profiling [candidate] (88.253 ms) : 0, 88253
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 22 cases. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.25.0-SNAPSHOT~ccccff7ca6, baseline=1.25.0-SNAPSHOT~fce1d5c289
dateFormat X
axisFormat %s
section baseline
no_agent (361.631 µs) : 342, 381
. : milestone, 362,
iast (476.747 µs) : 456, 498
. : milestone, 477,
iast_FULL (539.605 µs) : 519, 560
. : milestone, 540,
iast_INACTIVE (451.739 µs) : 431, 473
. : milestone, 452,
iast_TELEMETRY_OFF (476.407 µs) : 455, 498
. : milestone, 476,
tracing (446.574 µs) : 425, 468
. : milestone, 447,
section candidate
no_agent (371.956 µs) : 352, 392
. : milestone, 372,
iast (475.828 µs) : 455, 497
. : milestone, 476,
iast_FULL (539.59 µs) : 519, 560
. : milestone, 540,
iast_INACTIVE (447.796 µs) : 426, 469
. : milestone, 448,
iast_TELEMETRY_OFF (474.196 µs) : 453, 495
. : milestone, 474,
tracing (445.836 µs) : 425, 467
. : milestone, 446,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.25.0-SNAPSHOT~ccccff7ca6, baseline=1.25.0-SNAPSHOT~fce1d5c289
dateFormat X
axisFormat %s
section baseline
no_agent (1.351 ms) : 1332, 1370
. : milestone, 1351,
appsec (1.734 ms) : 1709, 1759
. : milestone, 1734,
iast (1.499 ms) : 1475, 1524
. : milestone, 1499,
profiling (1.471 ms) : 1446, 1496
. : milestone, 1471,
tracing (1.488 ms) : 1463, 1514
. : milestone, 1488,
section candidate
no_agent (1.367 ms) : 1348, 1387
. : milestone, 1367,
appsec (1.75 ms) : 1725, 1775
. : milestone, 1750,
iast (1.503 ms) : 1479, 1527
. : milestone, 1503,
profiling (1.511 ms) : 1483, 1538
. : milestone, 1511,
tracing (1.491 ms) : 1466, 1515
. : milestone, 1491,
|
smola
changed the title
implement ForKnownTypes
Implement ForKnownTypes for commons-fileupload integration
Nov 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp: asm iast
Application Security Management (IAST)
tag: no release notes
Changes to exclude from release notes
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.
What Does This Do
Replaces
ForConfiguredTypes
withForKnownTypes
.ForKnownTypes
is preferred because we know we can statically build that into the tracer and optimize it, whereasForConfiguredTypes
implies it might change at runtime and therefore shouldn't be optimized.