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

ASF GitHub Bot logged work on LANG-1576:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Jul/20 17:00
            Start Date: 26/Jul/20 17:00
    Worklog Time Spent: 10m 
      Work Description: XenoAmess commented on pull request #565:
URL: https://github.com/apache/commons-lang/pull/565#issuecomment-664013772


   jmh
   ```
   [INFO] --- exec-maven-plugin:1.6.0:exec (benchmark) @ commons-lang3 ---
   WARNING: An illegal reflective access operation has occurred
   WARNING: Illegal reflective access by org.openjdk.jmh.util.Utils 
(file:/C:/Users/xenoa/.m2/repository/org/openjdk/jmh/jmh-core/
   1.21/jmh-core-1.21.jar) to field java.io.PrintStream.charOut
   WARNING: Please consider reporting this to the maintainers of 
org.openjdk.jmh.util.Utils
   WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
   WARNING: All illegal access operations will be denied in a future release
   # JMH version: 1.21
   # VM version: JDK 13.0.2, OpenJDK 64-Bit Server VM, 13.0.2+8
   # VM invoker: C:\jdk-13.0.2+8\bin\java.exe
   # VM options: <none>
   # Warmup: 5 iterations, 10 s each
   # Measurement: 5 iterations, 10 s each
   # Timeout: 10 min per iteration
   # Threads: 1 thread, will synchronize iterations
   # Benchmark mode: Average time, time/op
   # Benchmark: org.apache.commons.lang3.StringUtilsChompTest.test1New
   
   # Run progress: 0.00% complete, ETA 00:33:20
   # Fork: 1 of 5
   # Warmup Iteration   1: 0.455 ns/op
   # Warmup Iteration   2: 0.426 ns/op
   # Warmup Iteration   3: 0.591 ns/op
   # Warmup Iteration   4: 0.568 ns/op
   # Warmup Iteration   5: 0.627 ns/op
   Iteration   1: 0.629 ns/op
   Iteration   2: 0.607 ns/op
   Iteration   3: 0.574 ns/op
   Iteration   4: 0.575 ns/op
   Iteration   5: 0.562 ns/op
   
   # Run progress: 5.00% complete, ETA 00:31:49
   # Fork: 2 of 5
   # Warmup Iteration   1: 0.413 ns/op
   # Warmup Iteration   2: 0.417 ns/op
   # Warmup Iteration   3: 0.563 ns/op
   # Warmup Iteration   4: 0.552 ns/op
   # Warmup Iteration   5: 0.565 ns/op
   Iteration   1: 0.558 ns/op
   Iteration   2: 0.562 ns/op
   Iteration   3: 0.559 ns/op
   Iteration   4: 0.550 ns/op
   Iteration   5: 0.555 ns/op
   
   # Run progress: 10.00% complete, ETA 00:30:09
   # Fork: 3 of 5
   # Warmup Iteration   1: 0.414 ns/op
   # Warmup Iteration   2: 0.409 ns/op
   # Warmup Iteration   3: 0.561 ns/op
   # Warmup Iteration   4: 0.554 ns/op
   # Warmup Iteration   5: 0.555 ns/op
   Iteration   1: 0.553 ns/op
   Iteration   2: 0.558 ns/op
   Iteration   3: 0.557 ns/op
   Iteration   4: 0.560 ns/op
   Iteration   5: 0.556 ns/op
   
   # Run progress: 15.00% complete, ETA 00:28:28
   # Fork: 4 of 5
   # Warmup Iteration   1: 0.415 ns/op
   # Warmup Iteration   2: 0.418 ns/op
   # Warmup Iteration   3: 0.574 ns/op
   # Warmup Iteration   4: 0.581 ns/op
   # Warmup Iteration   5: 0.581 ns/op
   Iteration   1: 0.674 ns/op
   Iteration   2: 0.791 ns/op
   Iteration   3: 0.630 ns/op
   Iteration   4: 0.630 ns/op
   Iteration   5: 0.575 ns/op
   
   # Run progress: 20.00% complete, ETA 00:26:47
   # Fork: 5 of 5
   # Warmup Iteration   1: 0.416 ns/op
   # Warmup Iteration   2: 0.415 ns/op
   # Warmup Iteration   3: 0.555 ns/op
   # Warmup Iteration   4: 0.567 ns/op
   # Warmup Iteration   5: 0.566 ns/op
   Iteration   1: 0.557 ns/op
   Iteration   2: 0.552 ns/op
   Iteration   3: 0.557 ns/op
   Iteration   4: 0.571 ns/op
   Iteration   5: 0.559 ns/op
   
   
   Result "org.apache.commons.lang3.StringUtilsChompTest.test1New":
     0.584 ?99.9%) 0.040 ns/op [Average]
   
     (min, avg, max) = (0.550, 0.584, 0.791), stdev = 0.054
     CI (99.9%): [0.544, 0.625] (assumes normal distribution)
   
   
   # JMH version: 1.21
   # VM version: JDK 13.0.2, OpenJDK 64-Bit Server VM, 13.0.2+8
   # VM invoker: C:\jdk-13.0.2+8\bin\java.exe
   # VM options: <none>
   # Warmup: 5 iterations, 10 s each
   # Measurement: 5 iterations, 10 s each
   # Timeout: 10 min per iteration
   # Threads: 1 thread, will synchronize iterations
   # Benchmark mode: Average time, time/op
   # Benchmark: org.apache.commons.lang3.StringUtilsChompTest.test1Old
   
   # Run progress: 25.00% complete, ETA 00:25:07
   # Fork: 1 of 5
   # Warmup Iteration   1: 0.416 ns/op
   # Warmup Iteration   2: 0.422 ns/op
   # Warmup Iteration   3: 0.559 ns/op
   # Warmup Iteration   4: 0.557 ns/op
   # Warmup Iteration   5: 0.560 ns/op
   Iteration   1: 0.561 ns/op
   Iteration   2: 0.568 ns/op
   Iteration   3: 0.555 ns/op
   Iteration   4: 0.564 ns/op
   Iteration   5: 0.567 ns/op
   
   # Run progress: 30.00% complete, ETA 00:23:26
   # Fork: 2 of 5
   # Warmup Iteration   1: 0.432 ns/op
   # Warmup Iteration   2: 0.415 ns/op
   # Warmup Iteration   3: 0.580 ns/op
   # Warmup Iteration   4: 0.564 ns/op
   # Warmup Iteration   5: 0.557 ns/op
   Iteration   1: 0.554 ns/op
   Iteration   2: 0.555 ns/op
   Iteration   3: 0.561 ns/op
   Iteration   4: 0.561 ns/op
   Iteration   5: 0.609 ns/op
   
   # Run progress: 35.00% complete, ETA 00:21:46
   # Fork: 3 of 5
   # Warmup Iteration   1: 0.452 ns/op
   # Warmup Iteration   2: 0.439 ns/op
   # Warmup Iteration   3: 0.559 ns/op
   # Warmup Iteration   4: 0.553 ns/op
   # Warmup Iteration   5: 0.565 ns/op
   Iteration   1: 0.552 ns/op
   Iteration   2: 0.553 ns/op
   Iteration   3: 0.565 ns/op
   Iteration   4: 0.559 ns/op
   Iteration   5: 0.585 ns/op
   
   # Run progress: 40.00% complete, ETA 00:20:05
   # Fork: 4 of 5
   # Warmup Iteration   1: 0.465 ns/op
   # Warmup Iteration   2: 0.415 ns/op
   # Warmup Iteration   3: 0.557 ns/op
   # Warmup Iteration   4: 0.561 ns/op
   # Warmup Iteration   5: 0.557 ns/op
   Iteration   1: 0.570 ns/op
   Iteration   2: 0.586 ns/op
   Iteration   3: 0.579 ns/op
   Iteration   4: 0.559 ns/op
   Iteration   5: 0.568 ns/op
   
   # Run progress: 45.00% complete, ETA 00:18:25
   # Fork: 5 of 5
   # Warmup Iteration   1: 0.429 ns/op
   # Warmup Iteration   2: 0.416 ns/op
   # Warmup Iteration   3: 0.570 ns/op
   # Warmup Iteration   4: 0.574 ns/op
   # Warmup Iteration   5: 0.583 ns/op
   Iteration   1: 0.569 ns/op
   Iteration   2: 0.557 ns/op
   Iteration   3: 0.568 ns/op
   Iteration   4: 0.565 ns/op
   Iteration   5: 0.574 ns/op
   
   
   Result "org.apache.commons.lang3.StringUtilsChompTest.test1Old":
     0.566 ?99.9%) 0.010 ns/op [Average]
   
     (min, avg, max) = (0.552, 0.566, 0.609), stdev = 0.013
     CI (99.9%): [0.557, 0.576] (assumes normal distribution)
   
   
   # JMH version: 1.21
   # VM version: JDK 13.0.2, OpenJDK 64-Bit Server VM, 13.0.2+8
   # VM invoker: C:\jdk-13.0.2+8\bin\java.exe
   # VM options: <none>
   # Warmup: 5 iterations, 10 s each
   # Measurement: 5 iterations, 10 s each
   # Timeout: 10 min per iteration
   # Threads: 1 thread, will synchronize iterations
   # Benchmark mode: Average time, time/op
   # Benchmark: org.apache.commons.lang3.StringUtilsChompTest.test2New
   
   # Run progress: 50.00% complete, ETA 00:16:44
   # Fork: 1 of 5
   # Warmup Iteration   1: 95680.898 ns/op
   # Warmup Iteration   2: 90444.175 ns/op
   # Warmup Iteration   3: 94788.132 ns/op
   # Warmup Iteration   4: 95403.343 ns/op
   # Warmup Iteration   5: 94287.177 ns/op
   Iteration   1: 87182.379 ns/op
   Iteration   2: 84504.871 ns/op
   Iteration   3: 86379.487 ns/op
   Iteration   4: 89007.855 ns/op
   Iteration   5: 93364.669 ns/op
   
   # Run progress: 55.00% complete, ETA 00:15:04
   # Fork: 2 of 5
   # Warmup Iteration   1: 95661.936 ns/op
   # Warmup Iteration   2: 91977.819 ns/op
   # Warmup Iteration   3: 88283.451 ns/op
   # Warmup Iteration   4: 89021.565 ns/op
   # Warmup Iteration   5: 89691.599 ns/op
   Iteration   1: 91784.549 ns/op
   Iteration   2: 90799.644 ns/op
   Iteration   3: 89279.024 ns/op
   Iteration   4: 88994.977 ns/op
   Iteration   5: 88424.678 ns/op
   
   # Run progress: 60.00% complete, ETA 00:13:23
   # Fork: 3 of 5
   # Warmup Iteration   1: 90910.147 ns/op
   # Warmup Iteration   2: 93698.745 ns/op
   # Warmup Iteration   3: 91782.114 ns/op
   # Warmup Iteration   4: 89938.992 ns/op
   # Warmup Iteration   5: 89732.219 ns/op
   Iteration   1: 91407.693 ns/op
   Iteration   2: 88116.955 ns/op
   Iteration   3: 88866.737 ns/op
   Iteration   4: 89332.096 ns/op
   Iteration   5: 89412.458 ns/op
   
   # Run progress: 65.00% complete, ETA 00:11:43
   # Fork: 4 of 5
   # Warmup Iteration   1: 101746.465 ns/op
   # Warmup Iteration   2: 95473.860 ns/op
   # Warmup Iteration   3: 89825.200 ns/op
   # Warmup Iteration   4: 96220.566 ns/op
   # Warmup Iteration   5: 92051.440 ns/op
   Iteration   1: 96909.999 ns/op
   Iteration   2: 96380.609 ns/op
   Iteration   3: 100042.571 ns/op
   Iteration   4: 97193.562 ns/op
   Iteration   5: 94927.636 ns/op
   
   # Run progress: 70.00% complete, ETA 00:10:02
   # Fork: 5 of 5
   # Warmup Iteration   1: 94768.098 ns/op
   # Warmup Iteration   2: 88710.712 ns/op
   # Warmup Iteration   3: 92609.575 ns/op
   # Warmup Iteration   4: 91591.784 ns/op
   # Warmup Iteration   5: 90414.524 ns/op
   Iteration   1: 89574.697 ns/op
   Iteration   2: 91357.226 ns/op
   Iteration   3: 89932.893 ns/op
   Iteration   4: 89500.817 ns/op
   Iteration   5: 86699.252 ns/op
   
   
   Result "org.apache.commons.lang3.StringUtilsChompTest.test2New":
     90775.093 ?99.9%) 2829.707 ns/op [Average]
   
     (min, avg, max) = (84504.871, 90775.093, 100042.571), stdev = 3777.578
     CI (99.9%): [87945.386, 93604.800] (assumes normal distribution)
   
   
   # JMH version: 1.21
   # VM version: JDK 13.0.2, OpenJDK 64-Bit Server VM, 13.0.2+8
   # VM invoker: C:\jdk-13.0.2+8\bin\java.exe
   # VM options: <none>
   # Warmup: 5 iterations, 10 s each
   # Measurement: 5 iterations, 10 s each
   # Timeout: 10 min per iteration
   # Threads: 1 thread, will synchronize iterations
   # Benchmark mode: Average time, time/op
   # Benchmark: org.apache.commons.lang3.StringUtilsChompTest.test2Old
   
   # Run progress: 75.00% complete, ETA 00:08:22
   # Fork: 1 of 5
   # Warmup Iteration   1: 91681.297 ns/op
   # Warmup Iteration   2: 89610.996 ns/op
   # Warmup Iteration   3: 90239.668 ns/op
   # Warmup Iteration   4: 90743.008 ns/op
   # Warmup Iteration   5: 90583.186 ns/op
   Iteration   1: 90615.064 ns/op
   Iteration   2: 95244.614 ns/op
   Iteration   3: 91058.743 ns/op
   Iteration   4: 98658.725 ns/op
   Iteration   5: 91439.762 ns/op
   
   # Run progress: 80.00% complete, ETA 00:06:41
   # Fork: 2 of 5
   # Warmup Iteration   1: 97044.749 ns/op
   # Warmup Iteration   2: 91562.570 ns/op
   # Warmup Iteration   3: 91697.237 ns/op
   # Warmup Iteration   4: 90945.613 ns/op
   # Warmup Iteration   5: 93285.585 ns/op
   Iteration   1: 92028.821 ns/op
   Iteration   2: 91660.172 ns/op
   Iteration   3: 93375.415 ns/op
   Iteration   4: 101690.972 ns/op
   Iteration   5: 100558.989 ns/op
   
   # Run progress: 85.00% complete, ETA 00:05:01
   # Fork: 3 of 5
   # Warmup Iteration   1: 104327.299 ns/op
   # Warmup Iteration   2: 95678.312 ns/op
   # Warmup Iteration   3: 92210.713 ns/op
   # Warmup Iteration   4: 91596.527 ns/op
   # Warmup Iteration   5: 94779.366 ns/op
   Iteration   1: 100016.047 ns/op
   Iteration   2: 91561.759 ns/op
   Iteration   3: 91823.144 ns/op
   Iteration   4: 89676.886 ns/op
   Iteration   5: 93613.789 ns/op
   
   # Run progress: 90.00% complete, ETA 00:03:21
   # Fork: 4 of 5
   # Warmup Iteration   1: 93297.253 ns/op
   # Warmup Iteration   2: 93646.629 ns/op
   # Warmup Iteration   3: 98469.356 ns/op
   # Warmup Iteration   4: 84207.828 ns/op
   # Warmup Iteration   5: 92455.514 ns/op
   Iteration   1: 89759.291 ns/op
   Iteration   2: 92110.185 ns/op
   Iteration   3: 90429.158 ns/op
   Iteration   4: 93414.921 ns/op
   Iteration   5: 89412.610 ns/op
   
   # Run progress: 95.00% complete, ETA 00:01:40
   # Fork: 5 of 5
   # Warmup Iteration   1: 101307.089 ns/op
   # Warmup Iteration   2: 89975.708 ns/op
   # Warmup Iteration   3: 92697.877 ns/op
   # Warmup Iteration   4: 89897.830 ns/op
   # Warmup Iteration   5: 95858.014 ns/op
   Iteration   1: 89576.129 ns/op
   Iteration   2: 89414.301 ns/op
   Iteration   3: 93616.044 ns/op
   Iteration   4: 89962.513 ns/op
   Iteration   5: 89446.796 ns/op
   
   
   Result "org.apache.commons.lang3.StringUtilsChompTest.test2Old":
     92806.594 ?99.9%) 2758.319 ns/op [Average]
   
     (min, avg, max) = (89412.610, 92806.594, 101690.972), stdev = 3682.277
     CI (99.9%): [90048.275, 95564.913] (assumes normal distribution)
   
   
   # Run complete. Total time: 00:33:30
   
   REMEMBER: The numbers below are just data. To gain reusable insights, you 
need to follow up on
   why the numbers are the way they are. Use profilers (see -prof, -lprof), 
design factorial
   experiments, perform baseline and negative tests that provide experimental 
control, make sure
   the benchmarking environment is safe on JVM/OS/HW level, ask for reviews 
from the domain experts.
   Do not assume the numbers tell you what you want them to tell.
   
   Benchmark                      Mode  Cnt      Score      Error  Units
   StringUtilsChompTest.test1New  avgt   25      0.584 ?   0.040  ns/op
   
   StringUtilsChompTest.test1Old  avgt   25      0.566 ?   0.010  ns/op
   
   StringUtilsChompTest.test2New  avgt   25  90775.093 ?2829.707  ns/op
   
   StringUtilsChompTest.test2Old  avgt   25  92806.594 ?2758.319  ns/op
   
   ```


----------------------------------------------------------------
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.

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


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

    Worklog Id:     (was: 463370)
    Time Spent: 20m  (was: 10m)

> refine StringUtils.chomp
> ------------------------
>
>                 Key: LANG-1576
>                 URL: https://issues.apache.org/jira/browse/LANG-1576
>             Project: Commons Lang
>          Issue Type: Sub-task
>            Reporter: Jin Xu
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> [https://github.com/apache/commons-lang/pull/565]



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

Reply via email to