You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/08/05 18:49:00 UTC

[jira] [Work logged] (BEAM-12619) Swap LinkedBlockingQueue to ArrayBlockingQueue

     [ https://issues.apache.org/jira/browse/BEAM-12619?focusedWorklogId=634725&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-634725 ]

ASF GitHub Bot logged work on BEAM-12619:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Aug/21 18:48
            Start Date: 05/Aug/21 18:48
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on pull request #15176:
URL: https://github.com/apache/beam/pull/15176#issuecomment-893697605


   ArrayBlockingQueue was ~8% better than LinkedBlockingDeque and ~11% better than LinkedBlockingQueue
   
   Note that the stddev of the LinkedBlockingQueue is better but based upon 99.9% CI ArrayBlockingQueue outperforms the other two.
   
   Here are the raw perf results using the BeamFnLoggingClientBenchmark#testLogging
   LinkedBlockingDeque:
   ```
   Result "org.apache.beam.fn.harness.logging.BeamFnLoggingClientBenchmark.testLogging":
     221317.775 ±(99.9%) 4963.444 ops/s [Average]
     (min, avg, max) = (211022.781, 221317.775, 230699.443), stdev = 6626.055
     CI (99.9%): [216354.332, 226281.219] (assumes normal distribution)
   ```
   
   LinkedBlockingQueue:
   ```
   Result "org.apache.beam.fn.harness.logging.BeamFnLoggingClientBenchmark.testLogging":
     214444.765 ±(99.9%) 2042.514 ops/s [Average]
     (min, avg, max) = (209158.045, 214444.765, 218078.984), stdev = 2726.698
     CI (99.9%): [212402.251, 216487.280] (assumes normal distribution)
   ```
   
   ArrayBlockingQueue:
   ```
   Result "org.apache.beam.fn.harness.logging.BeamFnLoggingClientBenchmark.testLogging":
     239073.546 ±(99.9%) 10245.282 ops/s [Average]
     (min, avg, max) = (213124.995, 239073.546, 259784.386), stdev = 13677.158
     CI (99.9%): [228828.264, 249318.828] (assumes normal distribution)
   ```


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 634725)
    Time Spent: 1h  (was: 50m)

> Swap LinkedBlockingQueue to ArrayBlockingQueue
> ----------------------------------------------
>
>                 Key: BEAM-12619
>                 URL: https://issues.apache.org/jira/browse/BEAM-12619
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-harness
>            Reporter: Luke Cwik
>            Assignee: Luke Cwik
>            Priority: P4
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Minor perf improvement



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