-
Notifications
You must be signed in to change notification settings - Fork 290
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
Only enable byte[] or char[] call sites in full detection mode #6960
Only enable byte[] or char[] call sites in full detection mode #6960
Conversation
Kafka / producer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 1 performance regressions! Performance is the same for 2 metrics, 0 unstable metrics.
See unchanged results
|
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 2 performance regressions! Performance is the same for 50 metrics, 11 unstable metrics.
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.083 s) : 0, 1083222
Total [baseline] (8.561 s) : 0, 8561153
Agent [candidate] (1.079 s) : 0, 1078705
Total [candidate] (8.554 s) : 0, 8553672
section iast
Agent [baseline] (1.2 s) : 0, 1199864
Total [baseline] (8.992 s) : 0, 8991509
Agent [candidate] (1.202 s) : 0, 1201936
Total [candidate] (9.02 s) : 0, 9019741
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.201 s) : 0, 1200532
Total [baseline] (8.952 s) : 0, 8952267
Agent [candidate] (1.211 s) : 0, 1210836
Total [candidate] (9.039 s) : 0, 9038905
section iast_TELEMETRY_OFF
Agent [baseline] (1.206 s) : 0, 1205606
Total [baseline] (9.029 s) : 0, 9029065
Agent [candidate] (1.204 s) : 0, 1204314
Total [candidate] (8.987 s) : 0, 8986555
gantt
title insecure-bank - break down per module: candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (678.292 ms) : 0, 678292
BytebuddyAgent [candidate] (674.982 ms) : 0, 674982
GlobalTracer [baseline] (312.018 ms) : 0, 312018
GlobalTracer [candidate] (311.21 ms) : 0, 311210
AppSec [baseline] (49.925 ms) : 0, 49925
AppSec [candidate] (49.762 ms) : 0, 49762
Remote Config [baseline] (669.785 µs) : 0, 670
Remote Config [candidate] (673.725 µs) : 0, 674
Telemetry [baseline] (7.69 ms) : 0, 7690
Telemetry [candidate] (7.706 ms) : 0, 7706
section iast
BytebuddyAgent [baseline] (793.762 ms) : 0, 793762
BytebuddyAgent [candidate] (794.935 ms) : 0, 794935
GlobalTracer [baseline] (289.742 ms) : 0, 289742
GlobalTracer [candidate] (291.304 ms) : 0, 291304
AppSec [baseline] (50.964 ms) : 0, 50964
AppSec [candidate] (49.97 ms) : 0, 49970
IAST [baseline] (23.993 ms) : 0, 23993
IAST [candidate] (24.167 ms) : 0, 24167
Remote Config [baseline] (569.039 µs) : 0, 569
Remote Config [candidate] (599.515 µs) : 0, 600
Telemetry [baseline] (6.536 ms) : 0, 6536
Telemetry [candidate] (6.607 ms) : 0, 6607
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (793.917 ms) : 0, 793917
BytebuddyAgent [candidate] (799.826 ms) : 0, 799826
GlobalTracer [baseline] (289.76 ms) : 0, 289760
GlobalTracer [candidate] (293.323 ms) : 0, 293323
AppSec [baseline] (50.6 ms) : 0, 50600
AppSec [candidate] (50.449 ms) : 0, 50449
IAST [baseline] (24.882 ms) : 0, 24882
IAST [candidate] (25.356 ms) : 0, 25356
Remote Config [baseline] (565.467 µs) : 0, 565
Remote Config [candidate] (601.401 µs) : 0, 601
Telemetry [baseline] (6.499 ms) : 0, 6499
Telemetry [candidate] (6.64 ms) : 0, 6640
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (798.139 ms) : 0, 798139
BytebuddyAgent [candidate] (795.725 ms) : 0, 795725
GlobalTracer [baseline] (291.39 ms) : 0, 291390
GlobalTracer [candidate] (292.554 ms) : 0, 292554
AppSec [baseline] (51.089 ms) : 0, 51089
AppSec [candidate] (49.741 ms) : 0, 49741
IAST [baseline] (23.204 ms) : 0, 23204
IAST [candidate] (24.627 ms) : 0, 24627
Remote Config [baseline] (589.118 µs) : 0, 589
Remote Config [candidate] (587.758 µs) : 0, 588
Telemetry [baseline] (6.64 ms) : 0, 6640
Telemetry [candidate] (6.568 ms) : 0, 6568
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.076 s) : 0, 1076240
Total [baseline] (10.431 s) : 0, 10430573
Agent [candidate] (1.083 s) : 0, 1083487
Total [candidate] (10.457 s) : 0, 10456976
section appsec
Agent [baseline] (1.192 s) : 0, 1191764
Total [baseline] (10.483 s) : 0, 10482902
Agent [candidate] (1.193 s) : 0, 1192602
Total [candidate] (10.499 s) : 0, 10498806
section iast
Agent [baseline] (1.203 s) : 0, 1203264
Total [baseline] (10.696 s) : 0, 10696171
Agent [candidate] (1.201 s) : 0, 1201041
Total [candidate] (10.721 s) : 0, 10721409
section profiling
Agent [baseline] (1.269 s) : 0, 1268738
Total [baseline] (10.557 s) : 0, 10556670
Agent [candidate] (1.27 s) : 0, 1270168
Total [candidate] (10.667 s) : 0, 10667218
gantt
title petclinic - break down per module: candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (674.105 ms) : 0, 674105
BytebuddyAgent [candidate] (678.479 ms) : 0, 678479
GlobalTracer [baseline] (310.103 ms) : 0, 310103
GlobalTracer [candidate] (312.679 ms) : 0, 312679
AppSec [baseline] (49.478 ms) : 0, 49478
AppSec [candidate] (49.619 ms) : 0, 49619
Remote Config [baseline] (663.884 µs) : 0, 664
Remote Config [candidate] (669.044 µs) : 0, 669
Telemetry [baseline] (7.548 ms) : 0, 7548
Telemetry [candidate] (7.56 ms) : 0, 7560
section appsec
BytebuddyAgent [baseline] (696.617 ms) : 0, 696617
BytebuddyAgent [candidate] (696.341 ms) : 0, 696341
GlobalTracer [baseline] (292.986 ms) : 0, 292986
GlobalTracer [candidate] (293.821 ms) : 0, 293821
AppSec [baseline] (149.073 ms) : 0, 149073
AppSec [candidate] (149.157 ms) : 0, 149157
IAST [baseline] (19.258 ms) : 0, 19258
IAST [candidate] (19.386 ms) : 0, 19386
Remote Config [baseline] (617.837 µs) : 0, 618
Remote Config [candidate] (616.525 µs) : 0, 617
Telemetry [baseline] (8.464 ms) : 0, 8464
Telemetry [candidate] (8.538 ms) : 0, 8538
section iast
BytebuddyAgent [baseline] (797.805 ms) : 0, 797805
BytebuddyAgent [candidate] (793.394 ms) : 0, 793394
GlobalTracer [baseline] (289.446 ms) : 0, 289446
GlobalTracer [candidate] (291.254 ms) : 0, 291254
AppSec [baseline] (50.945 ms) : 0, 50945
AppSec [candidate] (50.206 ms) : 0, 50206
IAST [baseline] (23.33 ms) : 0, 23330
IAST [candidate] (23.296 ms) : 0, 23296
Remote Config [baseline] (563.857 µs) : 0, 564
Remote Config [candidate] (1.284 ms) : 0, 1284
Telemetry [baseline] (6.558 ms) : 0, 6558
Telemetry [candidate] (7.275 ms) : 0, 7275
section profiling
BytebuddyAgent [baseline] (677.348 ms) : 0, 677348
BytebuddyAgent [candidate] (677.69 ms) : 0, 677690
GlobalTracer [baseline] (380.836 ms) : 0, 380836
GlobalTracer [candidate] (381.737 ms) : 0, 381737
AppSec [baseline] (50.256 ms) : 0, 50256
AppSec [candidate] (50.312 ms) : 0, 50312
Remote Config [baseline] (721.52 µs) : 0, 722
Remote Config [candidate] (708.623 µs) : 0, 709
Telemetry [baseline] (7.475 ms) : 0, 7475
Telemetry [candidate] (7.434 ms) : 0, 7434
ProfilingAgent [baseline] (95.723 ms) : 0, 95723
ProfilingAgent [candidate] (95.801 ms) : 0, 95801
Profiling [baseline] (95.747 ms) : 0, 95747
Profiling [candidate] (95.827 ms) : 0, 95827
LoadParameters
See matching parameters
SummaryFound 1 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 16 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section baseline
no_agent (367.857 µs) : 348, 387
. : milestone, 368,
iast (478.531 µs) : 458, 499
. : milestone, 479,
iast_FULL (545.713 µs) : 525, 566
. : milestone, 546,
iast_GLOBAL (496.517 µs) : 476, 517
. : milestone, 497,
iast_HARDCODED_SECRET_DISABLED (470.257 µs) : 450, 491
. : milestone, 470,
iast_INACTIVE (453.635 µs) : 432, 475
. : milestone, 454,
iast_TELEMETRY_OFF (473.771 µs) : 452, 495
. : milestone, 474,
tracing (441.183 µs) : 421, 461
. : milestone, 441,
section candidate
no_agent (381.853 µs) : 362, 402
. : milestone, 382,
iast (478.294 µs) : 457, 500
. : milestone, 478,
iast_FULL (542.511 µs) : 522, 563
. : milestone, 543,
iast_GLOBAL (500.114 µs) : 478, 522
. : milestone, 500,
iast_HARDCODED_SECRET_DISABLED (475.064 µs) : 455, 495
. : milestone, 475,
iast_INACTIVE (448.383 µs) : 428, 469
. : milestone, 448,
iast_TELEMETRY_OFF (470.653 µs) : 449, 492
. : milestone, 471,
tracing (454.423 µs) : 433, 475
. : milestone, 454,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section baseline
no_agent (1.343 ms) : 1324, 1362
. : milestone, 1343,
appsec (1.729 ms) : 1705, 1754
. : milestone, 1729,
appsec_no_iast (1.724 ms) : 1699, 1748
. : milestone, 1724,
iast (1.488 ms) : 1465, 1511
. : milestone, 1488,
profiling (1.587 ms) : 1562, 1612
. : milestone, 1587,
tracing (1.465 ms) : 1440, 1490
. : milestone, 1465,
section candidate
no_agent (1.358 ms) : 1338, 1377
. : milestone, 1358,
appsec (1.701 ms) : 1676, 1725
. : milestone, 1701,
appsec_no_iast (1.744 ms) : 1719, 1769
. : milestone, 1744,
iast (1.491 ms) : 1468, 1513
. : milestone, 1491,
profiling (1.495 ms) : 1470, 1521
. : milestone, 1495,
tracing (1.486 ms) : 1462, 1511
. : milestone, 1486,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section baseline
no_agent (1.466 ms) : 1454, 1477
. : milestone, 1466,
appsec (2.208 ms) : 2173, 2242
. : milestone, 2208,
iast (1.886 ms) : 1851, 1921
. : milestone, 1886,
iast_GLOBAL (1.917 ms) : 1882, 1951
. : milestone, 1917,
profiling (1.852 ms) : 1819, 1885
. : milestone, 1852,
tracing (1.832 ms) : 1800, 1864
. : milestone, 1832,
section candidate
no_agent (1.469 ms) : 1457, 1480
. : milestone, 1469,
appsec (2.2 ms) : 2166, 2234
. : milestone, 2200,
iast (1.889 ms) : 1854, 1925
. : milestone, 1889,
iast_GLOBAL (1.926 ms) : 1890, 1961
. : milestone, 1926,
profiling (1.858 ms) : 1824, 1892
. : milestone, 1858,
tracing (1.828 ms) : 1796, 1860
. : milestone, 1828,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.34.0-SNAPSHOT~c5003a661f, baseline=1.34.0-SNAPSHOT~1465164739
dateFormat X
axisFormat %s
section baseline
no_agent (14.994 s) : 14994000, 14994000
. : milestone, 14994000,
appsec (15.134 s) : 15134000, 15134000
. : milestone, 15134000,
iast (18.835 s) : 18835000, 18835000
. : milestone, 18835000,
iast_GLOBAL (17.914 s) : 17914000, 17914000
. : milestone, 17914000,
profiling (15.904 s) : 15904000, 15904000
. : milestone, 15904000,
tracing (15.253 s) : 15253000, 15253000
. : milestone, 15253000,
section candidate
no_agent (15.488 s) : 15488000, 15488000
. : milestone, 15488000,
appsec (14.907 s) : 14907000, 14907000
. : milestone, 14907000,
iast (19.052 s) : 19052000, 19052000
. : milestone, 19052000,
iast_GLOBAL (17.839 s) : 17839000, 17839000
. : milestone, 17839000,
profiling (15.359 s) : 15359000, 15359000
. : milestone, 15359000,
tracing (14.983 s) : 14983000, 14983000
. : milestone, 14983000,
|
Kafka / consumer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
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.
LGTM for the internal-api
part. I let IAST features to the IAST team 😉
d30675f
to
7ee59e4
Compare
e0323b4
to
d2b3dbc
Compare
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.
LGTM
d2b3dbc
to
c5003a6
Compare
What Does This Do
Moves the
String
call sites dealing withbyte[]
andchar[]
to a separate class that is only enabled on full mode.Motivation
Those call sites can be specially harmful for performance so we will left them out of the default mode and only include them full detection mode is activated (
DD_IAST_DETECTION_MODE=FULL
).Additional Notes
Jira ticket: [PROJ-IDENT]