-
Notifications
You must be signed in to change notification settings - Fork 292
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
Fix number typing used in maps #7676
Conversation
Debugger benchmarksParameters
See matching parameters
SummaryFound 5 performance improvements and 0 performance regressions! Performance is the same for 4 metrics, 6 unstable metrics.
See unchanged results
Request duration reports for reportsgantt
title reports - request duration [CI 0.99] : candidate=None, baseline=None
dateFormat X
axisFormat %s
section baseline
noprobe (302.331 µs) : 267, 338
. : milestone, 302,
basic (294.776 µs) : 285, 304
. : milestone, 295,
loop (10.964 ms) : 10935, 10992
. : milestone, 10964,
section candidate
noprobe (306.299 µs) : 261, 351
. : milestone, 306,
basic (302.882 µs) : 293, 312
. : milestone, 303,
loop (10.326 ms) : 10293, 10358
. : milestone, 10326,
|
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 51 metrics, 12 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.064 s) : 0, 1064081
Total [baseline] (8.524 s) : 0, 8523797
Agent [candidate] (1.071 s) : 0, 1071141
Total [candidate] (8.544 s) : 0, 8544461
section iast
Agent [baseline] (1.192 s) : 0, 1191602
Total [baseline] (9.049 s) : 0, 9049143
Agent [candidate] (1.192 s) : 0, 1192294
Total [candidate] (9.01 s) : 0, 9010166
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.19 s) : 0, 1190478
Total [baseline] (8.963 s) : 0, 8963280
Agent [candidate] (1.192 s) : 0, 1191796
Total [candidate] (8.964 s) : 0, 8964299
section iast_TELEMETRY_OFF
Agent [baseline] (1.187 s) : 0, 1187002
Total [baseline] (9.003 s) : 0, 9003162
Agent [candidate] (1.198 s) : 0, 1197748
Total [candidate] (9.01 s) : 0, 9010444
gantt
title insecure-bank - break down per module: candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (679.437 ms) : 0, 679437
BytebuddyAgent [candidate] (683.843 ms) : 0, 683843
GlobalTracer [baseline] (309.006 ms) : 0, 309006
GlobalTracer [candidate] (311.337 ms) : 0, 311337
AppSec [baseline] (53.786 ms) : 0, 53786
AppSec [candidate] (53.963 ms) : 0, 53963
Remote Config [baseline] (660.198 µs) : 0, 660
Remote Config [candidate] (674.798 µs) : 0, 675
Telemetry [baseline] (7.624 ms) : 0, 7624
Telemetry [candidate] (7.639 ms) : 0, 7639
section iast
BytebuddyAgent [baseline] (793.288 ms) : 0, 793288
BytebuddyAgent [candidate] (793.822 ms) : 0, 793822
GlobalTracer [baseline] (298.576 ms) : 0, 298576
GlobalTracer [candidate] (299.206 ms) : 0, 299206
AppSec [baseline] (55.371 ms) : 0, 55371
AppSec [candidate] (54.72 ms) : 0, 54720
IAST [baseline] (23.005 ms) : 0, 23005
IAST [candidate] (23.323 ms) : 0, 23323
Remote Config [baseline] (645.923 µs) : 0, 646
Remote Config [candidate] (587.82 µs) : 0, 588
Telemetry [baseline] (7.062 ms) : 0, 7062
Telemetry [candidate] (6.937 ms) : 0, 6937
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (792.546 ms) : 0, 792546
BytebuddyAgent [candidate] (793.301 ms) : 0, 793301
GlobalTracer [baseline] (298.811 ms) : 0, 298811
GlobalTracer [candidate] (299.046 ms) : 0, 299046
AppSec [baseline] (56.881 ms) : 0, 56881
AppSec [candidate] (56.213 ms) : 0, 56213
IAST [baseline] (20.958 ms) : 0, 20958
IAST [candidate] (21.921 ms) : 0, 21921
Remote Config [baseline] (604.994 µs) : 0, 605
Remote Config [candidate] (610.167 µs) : 0, 610
Telemetry [baseline] (7.039 ms) : 0, 7039
Telemetry [candidate] (7.051 ms) : 0, 7051
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (788.957 ms) : 0, 788957
BytebuddyAgent [candidate] (795.862 ms) : 0, 795862
GlobalTracer [baseline] (298.596 ms) : 0, 298596
GlobalTracer [candidate] (301.516 ms) : 0, 301516
AppSec [baseline] (54.296 ms) : 0, 54296
AppSec [candidate] (55.636 ms) : 0, 55636
IAST [baseline] (22.378 ms) : 0, 22378
IAST [candidate] (23.269 ms) : 0, 23269
Remote Config [baseline] (2.18 ms) : 0, 2180
Remote Config [candidate] (682.299 µs) : 0, 682
Telemetry [baseline] (6.929 ms) : 0, 6929
Telemetry [candidate] (6.961 ms) : 0, 6961
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.065 s) : 0, 1065193
Total [baseline] (10.466 s) : 0, 10465799
Agent [candidate] (1.065 s) : 0, 1065485
Total [candidate] (10.356 s) : 0, 10356342
section appsec
Agent [baseline] (1.199 s) : 0, 1198930
Total [baseline] (10.628 s) : 0, 10627799
Agent [candidate] (1.201 s) : 0, 1201225
Total [candidate] (10.614 s) : 0, 10614042
section iast
Agent [baseline] (1.198 s) : 0, 1197884
Total [baseline] (10.837 s) : 0, 10837253
Agent [candidate] (1.201 s) : 0, 1201097
Total [candidate] (10.866 s) : 0, 10866131
section profiling
Agent [baseline] (1.265 s) : 0, 1264854
Total [baseline] (10.588 s) : 0, 10587657
Agent [candidate] (1.266 s) : 0, 1266424
Total [candidate] (10.529 s) : 0, 10529118
gantt
title petclinic - break down per module: candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (679.848 ms) : 0, 679848
BytebuddyAgent [candidate] (680.02 ms) : 0, 680020
GlobalTracer [baseline] (309.804 ms) : 0, 309804
GlobalTracer [candidate] (309.894 ms) : 0, 309894
AppSec [baseline] (53.666 ms) : 0, 53666
AppSec [candidate] (53.648 ms) : 0, 53648
Remote Config [baseline] (673.265 µs) : 0, 673
Remote Config [candidate] (663.408 µs) : 0, 663
Telemetry [baseline] (7.643 ms) : 0, 7643
Telemetry [candidate] (7.648 ms) : 0, 7648
section appsec
BytebuddyAgent [baseline] (700.643 ms) : 0, 700643
BytebuddyAgent [candidate] (701.886 ms) : 0, 701886
GlobalTracer [baseline] (303.081 ms) : 0, 303081
GlobalTracer [candidate] (303.526 ms) : 0, 303526
AppSec [baseline] (161.51 ms) : 0, 161510
AppSec [candidate] (163.481 ms) : 0, 163481
IAST [baseline] (21.367 ms) : 0, 21367
IAST [candidate] (20.599 ms) : 0, 20599
Remote Config [baseline] (643.307 µs) : 0, 643
Remote Config [candidate] (641.206 µs) : 0, 641
Telemetry [baseline] (8.814 ms) : 0, 8814
Telemetry [candidate] (7.797 ms) : 0, 7797
section iast
BytebuddyAgent [baseline] (797.957 ms) : 0, 797957
BytebuddyAgent [candidate] (798.042 ms) : 0, 798042
GlobalTracer [baseline] (300.111 ms) : 0, 300111
GlobalTracer [candidate] (302.504 ms) : 0, 302504
AppSec [baseline] (55.543 ms) : 0, 55543
AppSec [candidate] (55.933 ms) : 0, 55933
IAST [baseline] (22.892 ms) : 0, 22892
IAST [candidate] (23.155 ms) : 0, 23155
Remote Config [baseline] (611.096 µs) : 0, 611
Remote Config [candidate] (628.064 µs) : 0, 628
Telemetry [baseline] (7.068 ms) : 0, 7068
Telemetry [candidate] (7.126 ms) : 0, 7126
section profiling
BytebuddyAgent [baseline] (673.438 ms) : 0, 673438
BytebuddyAgent [candidate] (674.604 ms) : 0, 674604
GlobalTracer [baseline] (393.559 ms) : 0, 393559
GlobalTracer [candidate] (394.603 ms) : 0, 394603
AppSec [baseline] (54.589 ms) : 0, 54589
AppSec [candidate] (54.791 ms) : 0, 54791
Remote Config [baseline] (659.082 µs) : 0, 659
Remote Config [candidate] (651.915 µs) : 0, 652
Telemetry [baseline] (7.423 ms) : 0, 7423
Telemetry [candidate] (7.426 ms) : 0, 7426
ProfilingAgent [baseline] (96.642 ms) : 0, 96642
ProfilingAgent [candidate] (95.871 ms) : 0, 95871
Profiling [baseline] (96.665 ms) : 0, 96665
Profiling [candidate] (95.895 ms) : 0, 95895
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 17 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section baseline
no_agent (1.359 ms) : 1338, 1379
. : milestone, 1359,
appsec (1.721 ms) : 1698, 1744
. : milestone, 1721,
appsec_no_iast (1.718 ms) : 1694, 1742
. : milestone, 1718,
iast (1.487 ms) : 1465, 1509
. : milestone, 1487,
profiling (1.502 ms) : 1479, 1525
. : milestone, 1502,
tracing (1.464 ms) : 1439, 1489
. : milestone, 1464,
section candidate
no_agent (1.363 ms) : 1344, 1383
. : milestone, 1363,
appsec (1.715 ms) : 1690, 1740
. : milestone, 1715,
appsec_no_iast (1.732 ms) : 1708, 1755
. : milestone, 1732,
iast (1.481 ms) : 1459, 1504
. : milestone, 1481,
profiling (1.498 ms) : 1473, 1523
. : milestone, 1498,
tracing (1.464 ms) : 1441, 1488
. : milestone, 1464,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section baseline
no_agent (366.92 µs) : 347, 387
. : milestone, 367,
iast (485.42 µs) : 464, 507
. : milestone, 485,
iast_FULL (557.21 µs) : 536, 579
. : milestone, 557,
iast_GLOBAL (509.178 µs) : 487, 531
. : milestone, 509,
iast_HARDCODED_SECRET_DISABLED (491.408 µs) : 470, 513
. : milestone, 491,
iast_INACTIVE (446.781 µs) : 426, 467
. : milestone, 447,
iast_TELEMETRY_OFF (481.849 µs) : 459, 505
. : milestone, 482,
tracing (450.14 µs) : 429, 471
. : milestone, 450,
section candidate
no_agent (377.05 µs) : 358, 396
. : milestone, 377,
iast (484.423 µs) : 463, 506
. : milestone, 484,
iast_FULL (559.138 µs) : 538, 581
. : milestone, 559,
iast_GLOBAL (520.9 µs) : 499, 543
. : milestone, 521,
iast_HARDCODED_SECRET_DISABLED (487.568 µs) : 466, 509
. : milestone, 488,
iast_INACTIVE (459.221 µs) : 438, 481
. : milestone, 459,
iast_TELEMETRY_OFF (477.761 µs) : 455, 500
. : milestone, 478,
tracing (449.613 µs) : 429, 470
. : milestone, 450,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section baseline
no_agent (1.468 ms) : 1456, 1480
. : milestone, 1468,
appsec (2.302 ms) : 2261, 2343
. : milestone, 2302,
iast (2.049 ms) : 1999, 2098
. : milestone, 2049,
iast_GLOBAL (2.098 ms) : 2048, 2149
. : milestone, 2098,
profiling (1.924 ms) : 1884, 1963
. : milestone, 1924,
tracing (1.9 ms) : 1862, 1938
. : milestone, 1900,
section candidate
no_agent (1.46 ms) : 1449, 1472
. : milestone, 1460,
appsec (2.303 ms) : 2263, 2343
. : milestone, 2303,
iast (2.058 ms) : 2007, 2109
. : milestone, 2058,
iast_GLOBAL (2.087 ms) : 2036, 2137
. : milestone, 2087,
profiling (2.414 ms) : 2224, 2604
. : milestone, 2414,
tracing (1.886 ms) : 1849, 1924
. : milestone, 1886,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~30a4b6c206, baseline=1.40.0-SNAPSHOT~043adb202c
dateFormat X
axisFormat %s
section baseline
no_agent (15.467 s) : 15467000, 15467000
. : milestone, 15467000,
appsec (15.308 s) : 15308000, 15308000
. : milestone, 15308000,
iast (18.724 s) : 18724000, 18724000
. : milestone, 18724000,
iast_GLOBAL (18.061 s) : 18061000, 18061000
. : milestone, 18061000,
profiling (15.343 s) : 15343000, 15343000
. : milestone, 15343000,
tracing (15.286 s) : 15286000, 15286000
. : milestone, 15286000,
section candidate
no_agent (15.072 s) : 15072000, 15072000
. : milestone, 15072000,
appsec (14.927 s) : 14927000, 14927000
. : milestone, 14927000,
iast (18.932 s) : 18932000, 18932000
. : milestone, 18932000,
iast_GLOBAL (18.062 s) : 18062000, 18062000
. : milestone, 18062000,
profiling (15.58 s) : 15580000, 15580000
. : milestone, 15580000,
tracing (14.99 s) : 14990000, 14990000
. : milestone, 14990000,
|
We are automatically widening numbers from Integer to Long and Float to Double to be able to compare them. But used as key for maps it does not work because the type needs to be exact. For fixing this we are moving to widening then numbers only at comparison time. Otherwise we keep the original typing.
640194d
to
30a4b6c
Compare
Following #7676 issue, numbers parsed from the json probe definition are still considered as long value which still makes then unfittable to be used as key for Integer -> Integer map. Now we parse integers (without dot numbers) as long and see if they fit into an integer, then downgrade them as DSL value with integer type.
Following #7676 issue, numbers parsed from the json probe definition are still considered as long value which still makes then unfittable to be used as key for Integer -> Integer map. Now we parse integers (without dot numbers) as long and see if they fit into an integer, then downgrade them as DSL value with integer type.
What Does This Do
We are automatically widening numbers from Integer to Long and Float to Double to be able to compare them. But used as key for maps it does
not work because the type needs to be exact.
For fixing this we are moving to widening then numbers only at comparison time. Otherwise we keep the original typing.
Motivation
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: DEBUG-2603