RFR: 8315098: Improve URLEncodeDecode microbenchmark [v2]
Claes Redestad
redestad at openjdk.org
Wed Aug 30 15:28:39 UTC 2023
On Wed, 30 Aug 2023 14:09:45 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> Idle musing: I wonder if it would be useful to print on System.out how many strings actually have no encoded chars? Just to get a rough feeling on whether the percentage values were actually respected.
Good call, since I had gotten the distribution wrong for decode with `unchanged` set to a value like 75 by recalculating `needDecoding` for every char. Also improved the precision for `unchanged == 0`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15448#issuecomment-1699391212
More information about the net-dev
mailing list