theigl commented on pull request #497:
URL: https://github.com/apache/wicket/pull/497#issuecomment-1027288730


   OK my previous benchmark was flawed because I created a new buffer for every 
run. The new `isEmpty` method for `AppendingStringBuffer´ is actually 40-50x 
faster for medium-sized buffers.
   
   ```
   Benchmark                            Mode  Cnt           Score         Error 
 Units
   StringsBenchmark.bufferFastIsEmpty  thrpt   15  1918461027.579 ± 4949234.208 
 ops/s
   StringsBenchmark.bufferIsEmpty      thrpt   15    42567269.762 ±   40091.373 
 ops/s
   StringsBenchmark.fastIsEmpty        thrpt   15  1910306184.208 ± 4067311.978 
 ops/s
   StringsBenchmark.isEmpty            thrpt   15  1804225517.032 ± 1951669.787 
 ops/s
   ```


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


Reply via email to