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

Reduce allocations in trigger.py. #470

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

purple4reina
Copy link
Contributor

What does this PR do?

Reduces the number of allocations made in the trigger.py file.

Motivation

Much faster.

Testing Guidelines

Additional Notes

Faster for all event types benchmarks


------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[api-gateway-no-apiid]': 2 tests ------------------------------------------
Name (time in us)                                                            Min                Max              Mean            Median            StdDev          
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-no-apiid] (0012_after)      4.3330 (1.0)      30.2080 (1.0)      4.5914 (1.0)      4.5410 (1.0)      0.9903 (1.81)   
test_trigger_extract_trigger_tags[api-gateway-no-apiid] (0013_before)     4.8340 (1.12)     84.8750 (2.81)     5.0338 (1.10)     5.0000 (1.10)     0.5461 (1.0)    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[api-gateway-non-proxy-async]': 2 tests -------------------------------------------
Name (time in us)                                                                   Min                Max              Mean            Median            StdDev          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-non-proxy-async] (0012_after)      4.3750 (1.0)      39.8750 (1.56)     4.5500 (1.0)      4.5000 (1.0)      0.3592 (1.19)   
test_trigger_extract_trigger_tags[api-gateway-non-proxy-async] (0013_before)     4.7500 (1.09)     25.5840 (1.0)      4.9454 (1.09)     4.9170 (1.09)     0.3027 (1.0)    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[api-gateway-non-proxy]': 2 tests -------------------------------------------
Name (time in us)                                                             Min                Max              Mean            Median            StdDev          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-non-proxy] (0012_after)      4.3750 (1.0)      30.4590 (1.0)      4.5397 (1.0)      4.5000 (1.0)      0.2905 (1.0)    
test_trigger_extract_trigger_tags[api-gateway-non-proxy] (0013_before)     4.7500 (1.09)     39.0420 (1.28)     4.9892 (1.10)     4.9580 (1.10)     0.3377 (1.16)   
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[api-gateway-v1-parametrized]': 2 tests -------------------------------------------
Name (time in us)                                                                   Min                 Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-v1-parametrized] (0012_after)      4.3750 (1.0)      548.7910 (9.56)     4.8006 (1.0)      4.7500 (1.0)      3.3504 (7.01)   
test_trigger_extract_trigger_tags[api-gateway-v1-parametrized] (0013_before)     4.7500 (1.09)      57.3750 (1.0)      4.9690 (1.04)     4.9170 (1.04)     0.4780 (1.0)    
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[api-gateway-v2-parametrized]': 2 tests -------------------------------------------
Name (time in us)                                                                   Min                Max              Mean            Median            StdDev          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-v2-parametrized] (0012_after)      4.4580 (1.0)      35.2500 (1.24)     4.6993 (1.0)      4.6660 (1.0)      0.3912 (1.02)   
test_trigger_extract_trigger_tags[api-gateway-v2-parametrized] (0013_before)     4.8330 (1.08)     28.3340 (1.0)      5.0153 (1.07)     5.0000 (1.07)     0.3829 (1.0)    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[api-gateway-websocket-connect]': 2 tests -------------------------------------------
Name (time in us)                                                                     Min                Max              Mean            Median            StdDev          
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-websocket-connect] (0012_after)      4.2500 (1.0)      45.7080 (1.0)      4.4794 (1.0)      4.4170 (1.0)      0.3985 (1.05)   
test_trigger_extract_trigger_tags[api-gateway-websocket-connect] (0013_before)     4.7080 (1.11)     45.9170 (1.00)     4.8949 (1.09)     4.8750 (1.10)     0.3782 (1.0)    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[api-gateway-websocket-default]': 2 tests -------------------------------------------
Name (time in us)                                                                     Min                Max              Mean            Median            StdDev          
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-websocket-default] (0012_after)      4.2500 (1.0)      24.4170 (1.0)      4.4421 (1.0)      4.4170 (1.0)      0.2647 (1.0)    
test_trigger_extract_trigger_tags[api-gateway-websocket-default] (0013_before)     4.7080 (1.11)     27.7920 (1.14)     4.8830 (1.10)     4.8340 (1.09)     0.3136 (1.18)   
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[api-gateway-websocket-disconnect]': 2 tests -------------------------------------------
Name (time in us)                                                                        Min                 Max              Mean            Median            StdDev          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway-websocket-disconnect] (0012_after)      4.2500 (1.0)       84.0000 (1.0)      4.4407 (1.0)      4.4170 (1.0)      0.4566 (1.0)    
test_trigger_extract_trigger_tags[api-gateway-websocket-disconnect] (0013_before)     4.7500 (1.12)     755.4580 (8.99)     4.9533 (1.12)     4.9160 (1.11)     2.5629 (5.61)   
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[api-gateway]': 2 tests -------------------------------------------
Name (time in us)                                                   Min                Max              Mean            Median            StdDev          
----------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[api-gateway] (0012_after)      4.3330 (1.0)      69.2910 (2.25)     4.6604 (1.0)      4.7080 (1.0)      0.6215 (1.82)   
test_trigger_extract_trigger_tags[api-gateway] (0013_before)     4.7500 (1.10)     30.8330 (1.0)      4.9343 (1.06)     4.9160 (1.04)     0.3412 (1.0)    
----------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[application-load-balancer]': 2 tests -------------------------------------------
Name (time in us)                                                                 Min                Max              Mean            Median            StdDev          
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[application-load-balancer] (0012_after)      3.6250 (1.0)      31.7910 (1.0)      3.8165 (1.0)      3.7920 (1.0)      0.3147 (1.0)    
test_trigger_extract_trigger_tags[application-load-balancer] (0013_before)     4.0830 (1.13)     80.5830 (2.53)     4.3044 (1.13)     4.2920 (1.13)     0.4644 (1.48)   
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v1-cached]': 2 tests ------------------------------------------
Name (time in us)                                                                                Min                Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v1-cached] (0012_after)      4.3330 (1.0)      75.0830 (2.44)     4.6583 (1.0)      4.6250 (1.0)      0.3854 (1.16)   
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v1-cached] (0013_before)     4.7500 (1.10)     30.7500 (1.0)      4.9860 (1.07)     4.9170 (1.06)     0.3314 (1.0)    
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v1]': 2 tests -------------------------------------------
Name (time in us)                                                                         Min                Max              Mean            Median            StdDev          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v1] (0012_after)      4.3330 (1.0)      65.0420 (1.0)      4.5611 (1.0)      4.5000 (1.0)      0.5042 (1.0)    
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v1] (0013_before)     4.7500 (1.10)     74.9590 (1.15)     5.0346 (1.10)     5.0000 (1.11)     0.5907 (1.17)   
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v2-cached]': 2 tests ------------------------------------------
Name (time in us)                                                                                Min                Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v2-cached] (0012_after)      4.3330 (1.0)      26.0830 (1.0)      4.5880 (1.0)      4.5420 (1.0)      0.3319 (1.0)    
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v2-cached] (0013_before)     4.8330 (1.12)     33.2090 (1.27)     5.0330 (1.10)     5.0000 (1.10)     0.4372 (1.32)   
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v2]': 2 tests -------------------------------------------
Name (time in us)                                                                         Min                Max              Mean            Median            StdDev          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v2] (0012_after)      4.3330 (1.0)      25.9580 (1.0)      4.5069 (1.0)      4.5000 (1.0)      0.3522 (1.0)    
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-v2] (0013_before)     4.8340 (1.12)     92.1250 (3.55)     5.1205 (1.14)     5.1250 (1.14)     0.6371 (1.81)   
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[authorizer-request-api-gateway-websocket-connect]': 2 tests ------------------------------------------
Name (time in us)                                                                                        Min                Max              Mean            Median            StdDev          
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-websocket-connect] (0012_after)      4.2910 (1.0)      28.7500 (1.20)     4.4285 (1.0)      4.4170 (1.0)      0.2973 (1.0)    
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-websocket-connect] (0013_before)     4.7080 (1.10)     24.0000 (1.0)      4.9311 (1.11)     4.8750 (1.10)     0.3210 (1.08)   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[authorizer-request-api-gateway-websocket-message]': 2 tests ------------------------------------------
Name (time in us)                                                                                        Min                Max              Mean            Median            StdDev          
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-websocket-message] (0012_after)      4.2080 (1.0)      61.2920 (1.0)      4.3982 (1.0)      4.3750 (1.0)      0.4208 (1.0)    
test_trigger_extract_trigger_tags[authorizer-request-api-gateway-websocket-message] (0013_before)     4.6660 (1.11)     68.2920 (1.11)     4.8688 (1.11)     4.8340 (1.10)     0.4525 (1.08)   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[authorizer-token-api-gateway-v1-cached]': 2 tests ------------------------------------------
Name (time in us)                                                                              Min                Max              Mean            Median            StdDev          
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-token-api-gateway-v1-cached] (0012_after)      4.3750 (1.0)      75.7920 (2.96)     4.5445 (1.0)      4.5000 (1.0)      0.5277 (1.59)   
test_trigger_extract_trigger_tags[authorizer-token-api-gateway-v1-cached] (0013_before)     4.7500 (1.09)     25.5840 (1.0)      4.9553 (1.09)     4.9170 (1.09)     0.3329 (1.0)    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[authorizer-token-api-gateway-v1]': 2 tests -------------------------------------------
Name (time in us)                                                                       Min                Max              Mean            Median            StdDev          
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[authorizer-token-api-gateway-v1] (0012_after)      4.3330 (1.0)      96.8330 (1.70)     4.5550 (1.0)      4.5000 (1.0)      0.5157 (1.0)    
test_trigger_extract_trigger_tags[authorizer-token-api-gateway-v1] (0013_before)     4.7500 (1.10)     56.9580 (1.0)      5.0911 (1.12)     5.1660 (1.15)     0.6151 (1.19)   
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[cloudfront]': 2 tests --------------------------------------------
Name (time in us)                                                  Min                   Max              Mean            Median            StdDev          
------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[cloudfront] (0012_after)      3.2910 (1.0)      1,194.2080 (28.86)    3.5201 (1.0)      3.4170 (1.0)      6.6452 (21.69)  
test_trigger_extract_trigger_tags[cloudfront] (0013_before)     3.7080 (1.13)        41.3750 (1.0)      3.8817 (1.10)     3.8340 (1.12)     0.3064 (1.0)    
------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[cloudwatch-events]': 2 tests -------------------------------------------
Name (time in us)                                                         Min                Max              Mean            Median            StdDev          
----------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[cloudwatch-events] (0012_after)      3.6250 (1.0)      52.5830 (1.0)      3.9662 (1.0)      3.9590 (1.0)      0.6288 (1.48)   
test_trigger_extract_trigger_tags[cloudwatch-events] (0013_before)     4.0000 (1.10)     69.1670 (1.32)     4.2071 (1.06)     4.1670 (1.05)     0.4261 (1.0)    
----------------------------------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[cloudwatch-logs]': 2 tests ---------------------------------------------
Name (time in us)                                                        Min                 Max               Mean             Median            StdDev          
------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[cloudwatch-logs] (0012_after)      25.7080 (1.0)      166.5420 (1.40)     26.9424 (1.0)      26.3750 (1.0)      2.6385 (1.0)    
test_trigger_extract_trigger_tags[cloudwatch-logs] (0013_before)     26.4160 (1.03)     119.3330 (1.0)      28.6333 (1.06)     28.3330 (1.07)     4.9292 (1.87)   
------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[custom]': 2 tests ------------------------------------------
Name (time in us)                                              Min                Max              Mean            Median            StdDev          
-----------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[custom] (0012_after)      1.1250 (1.0)      21.2080 (1.0)      1.2427 (1.0)      1.2500 (1.0)      0.1918 (1.67)   
test_trigger_extract_trigger_tags[custom] (0013_before)     1.3332 (1.19)     27.0000 (1.27)     1.3883 (1.12)     1.3750 (1.10)     0.1151 (1.0)    
-----------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[dynamodb]': 2 tests ------------------------------------------
Name (time in us)                                                Min                Max              Mean            Median            StdDev          
-------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[dynamodb] (0012_after)      1.8750 (1.0)      36.3750 (1.0)      2.0774 (1.0)      2.0830 (1.0)      0.2693 (1.05)   
test_trigger_extract_trigger_tags[dynamodb] (0013_before)     2.2910 (1.22)     41.2500 (1.13)     2.4383 (1.17)     2.4170 (1.16)     0.2570 (1.0)    
-------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[eventbridge-custom]': 2 tests ------------------------------------------
Name (time in us)                                                          Min                Max              Mean            Median            StdDev          
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[eventbridge-custom] (0012_after)      3.3750 (1.0)      63.1660 (1.55)     4.0700 (1.05)     3.6250 (1.0)      0.9625 (3.08)   
test_trigger_extract_trigger_tags[eventbridge-custom] (0013_before)     3.7080 (1.10)     40.8750 (1.0)      3.8822 (1.0)      3.8340 (1.06)     0.3127 (1.0)    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[eventbridge-sqs]': 2 tests -------------------------------------------
Name (time in us)                                                       Min                 Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[eventbridge-sqs] (0012_after)      1.8750 (1.0)       14.2500 (1.0)      1.9865 (1.0)      1.9590 (1.0)      0.1525 (1.0)    
test_trigger_extract_trigger_tags[eventbridge-sqs] (0013_before)     2.3330 (1.24)     196.0410 (13.76)    2.4620 (1.24)     2.4170 (1.23)     1.8948 (12.42)  
---------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[http-api]': 2 tests ------------------------------------------
Name (time in us)                                                Min                Max              Mean            Median            StdDev          
-------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[http-api] (0012_after)      4.3750 (1.0)      24.4170 (1.0)      4.5463 (1.0)      4.5410 (1.0)      0.2925 (1.0)    
test_trigger_extract_trigger_tags[http-api] (0013_before)     4.8330 (1.10)     70.5410 (2.89)     5.0267 (1.11)     5.0000 (1.10)     0.4949 (1.69)   
-------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[kinesis-batch]': 2 tests -------------------------------------------
Name (time in us)                                                     Min                Max              Mean            Median            StdDev          
------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[kinesis-batch] (0012_after)      1.8750 (1.0)      63.7080 (1.12)     2.0140 (1.0)      2.0000 (1.0)      0.3433 (1.06)   
test_trigger_extract_trigger_tags[kinesis-batch] (0013_before)     2.2910 (1.22)     57.0000 (1.0)      2.4448 (1.21)     2.4170 (1.21)     0.3252 (1.0)    
------------------------------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[kinesis]': 2 tests --------------------------------------------
Name (time in us)                                               Min                   Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[kinesis] (0012_after)      1.8330 (1.0)      1,516.0000 (40.52)    2.0705 (1.0)      2.0420 (1.0)      3.9262 (16.43)  
test_trigger_extract_trigger_tags[kinesis] (0013_before)     2.2920 (1.25)        37.4160 (1.0)      2.4442 (1.18)     2.4170 (1.18)     0.2390 (1.0)    
---------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[lambda-url]': 2 tests ------------------------------------------
Name (time in us)                                                  Min                Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[lambda-url] (0012_after)      3.8750 (1.0)      27.4160 (1.14)     4.0552 (1.0)      4.0420 (1.0)      0.2792 (1.0)    
test_trigger_extract_trigger_tags[lambda-url] (0013_before)     4.2910 (1.11)     24.0830 (1.0)      4.4659 (1.10)     4.4170 (1.09)     0.3485 (1.25)   
---------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[s3]': 2 tests ------------------------------------------
Name (time in us)                                          Min                Max              Mean            Median            StdDev          
-------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[s3] (0012_after)      2.8330 (1.0)      29.2080 (1.0)      2.9654 (1.0)      2.9580 (1.0)      0.2170 (1.0)    
test_trigger_extract_trigger_tags[s3] (0013_before)     3.2910 (1.16)     33.2090 (1.14)     3.4537 (1.16)     3.4170 (1.16)     0.2722 (1.25)   
-------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[sns-b64-msg-attribute]': 2 tests -------------------------------------------
Name (time in us)                                                             Min                 Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[sns-b64-msg-attribute] (0012_after)      3.0830 (1.0)      155.4170 (6.53)     3.2732 (1.0)      3.2080 (1.0)      1.4099 (5.41)   
test_trigger_extract_trigger_tags[sns-b64-msg-attribute] (0013_before)     3.4580 (1.12)      23.7910 (1.0)      3.6256 (1.11)     3.6250 (1.13)     0.2607 (1.0)    
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[sns-batch]': 2 tests -------------------------------------------
Name (time in us)                                                 Min                 Max              Mean            Median            StdDev          
---------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[sns-batch] (0012_after)      3.0410 (1.0)      852.0000 (24.31)    3.2378 (1.0)      3.2080 (1.0)      3.5622 (10.90)  
test_trigger_extract_trigger_tags[sns-batch] (0013_before)     3.5000 (1.15)      35.0410 (1.0)      3.6971 (1.14)     3.6660 (1.14)     0.3269 (1.0)    
---------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[sns-string-msg-attribute]': 2 tests ------------------------------------------
Name (time in us)                                                                Min                Max              Mean            Median            StdDev          
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[sns-string-msg-attribute] (0012_after)      3.0420 (1.0)      25.0840 (1.0)      3.2059 (1.0)      3.2080 (1.0)      0.2811 (1.02)   
test_trigger_extract_trigger_tags[sns-string-msg-attribute] (0013_before)     3.4580 (1.14)     27.1660 (1.08)     3.6681 (1.14)     3.6250 (1.13)     0.2747 (1.0)    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------ benchmark 'test_trigger_extract_trigger_tags[sqs-batch]': 2 tests -------------------------------------------
Name (time in us)                                                 Min                Max              Mean            Median            StdDev          
--------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[sqs-batch] (0012_after)      1.8750 (1.0)      17.6660 (1.0)      1.9786 (1.0)      1.9590 (1.0)      0.2017 (1.0)    
test_trigger_extract_trigger_tags[sqs-batch] (0013_before)     2.2500 (1.20)     35.2080 (1.99)     2.4305 (1.23)     2.4170 (1.23)     0.2131 (1.06)   
--------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[sqs-java-upstream]': 2 tests -------------------------------------------
Name (time in us)                                                         Min                 Max              Mean            Median            StdDev          
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[sqs-java-upstream] (0012_after)      1.8330 (1.0)      912.5000 (31.33)    1.9753 (1.0)      1.9580 (1.0)      2.3605 (10.77)  
test_trigger_extract_trigger_tags[sqs-java-upstream] (0013_before)     2.2910 (1.25)      29.1250 (1.0)      2.4312 (1.23)     2.4170 (1.23)     0.2193 (1.0)    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------- benchmark 'test_trigger_extract_trigger_tags[sqs-string-msg-attribute]': 2 tests ------------------------------------------
Name (time in us)                                                                Min                Max              Mean            Median            StdDev          
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_trigger_extract_trigger_tags[sqs-string-msg-attribute] (0012_after)      1.8750 (1.0)      21.2500 (1.0)      1.9937 (1.0)      1.9590 (1.0)      0.1901 (1.0)    
test_trigger_extract_trigger_tags[sqs-string-msg-attribute] (0013_before)     2.3330 (1.24)     73.7090 (3.47)     2.4424 (1.23)     2.4170 (1.23)     0.3177 (1.67)   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Legend:
  Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
  OPS: Operations Per Second, computed as 1 / Mean

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@purple4reina purple4reina requested a review from a team as a code owner April 10, 2024 22:16
Copy link
Contributor

@joeyzhao2018 joeyzhao2018 left a comment

Choose a reason for hiding this comment

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

🚢

@purple4reina purple4reina merged commit 0b85fc9 into main Apr 11, 2024
51 checks passed
@purple4reina purple4reina deleted the rey.abolofia/trigger-clean branch April 11, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants