[ 
https://issues.apache.org/jira/browse/DISPATCH-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17379847#comment-17379847
 ] 

ASF GitHub Bot commented on DISPATCH-1783:
------------------------------------------

jiridanek opened a new pull request #1296:
URL: https://github.com/apache/qpid-dispatch/pull/1296


   ```
   76: 
------------------------------------------------------------------------------
   76: Benchmark                                    Time             CPU   
Iterations
   76: 
------------------------------------------------------------------------------
   76: BM_RouterInitializeMinimalConfig           219 ms        0.214 ms        
    1
   76: BM_AddRemoveSinglePattern                 57.0 us         57.0 us        
   19
   76: BM_AddRemoveMultiplePatterns/1            38.9 us         38.9 us        
   28
   76: BM_AddRemoveMultiplePatterns/3            70.8 us         70.8 us        
   19
   76: BM_AddRemoveMultiplePatterns/10            184 us          184 us        
    6
   76: BM_AddRemoveMultiplePatterns/30            499 us          499 us        
    3
   76: BM_AddRemoveMultiplePatterns/100          1704 us         1703 us        
    1
   76: BM_AddRemoveMultiplePatterns/1000        25246 us        16791 us        
    1
   76: BM_AddRemoveMultiplePatterns/100000    3246570 us      2267338 us        
    1
   76: BM_AddRemoveMultiplePatterns_BigO      1954.65 NlgN    1365.08 NlgN 
   76: BM_AddRemoveMultiplePatterns_RMS             0 %             0 %    
   76: BM_TCPEchoServerLatencyWithoutQDR        0.026 ms        0.018 ms        
  100
   76: -----------------------------------------------------
   ```
   
   Note the big O complexity estimation feature above ;P
   
   I have some TCP tests that involve the router, but for that I need a 
mechanism to configure randomly assigned port in the router. That seems better 
to add in separate PR, since this one is already 1k lines.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> Add ability to use test doubles (mocks, fakes, ...) in C tests
> --------------------------------------------------------------
>
>                 Key: DISPATCH-1783
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1783
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Tests
>    Affects Versions: 1.14.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> During the work on https://github.com/apache/qpid-dispatch/pull/684, there 
> was at one point a version of the PR, which tested what happens if 
> {{vsnprintf}} called from {{safe_snprinf}} returns {{-1}}.
> This was done by replacing the {{vsnprintf}} with a mock (technically it's 
> probably a stub, or maybe fake, but let's ignore the proper terminology).
> There are various possibilities how to approach mocking in C. They are less 
> nice than in more dynamic languages such as Java, or even C++ (where it's 
> possible to subclass things). Nevertheless, it can be useful technique, and 
> it should be explored.
> CC [~cans]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to