RFR: 8310502 : optimization for UUID#toString [v3]
温绍锦
duke at openjdk.org
Thu Jun 22 00:25:04 UTC 2023
On Wed, 21 Jun 2023 13:32:32 GMT, 温绍锦 <duke at openjdk.org> wrote:
>> 温绍锦 has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8310502 : hex literal
>
> * benchmark code
> https://github.com/wenshao/jdk_8310502_test/blob/main/src/main/java/com/alibaba/openjdk/UUIDUtilsBenchmark.java
>
>
> git clone https://github.com/wenshao/jdk_8310502_test
> cd jdk_8310502_test
> mvn clean package -Dmaven.test.skip
> java -cp target/jdk_8310502_benchmark.jar com.alibaba.openjdk.UUIDUtilsBenchmark
>
>
> * benchmark result on Apple MacBook M1 Max
>
> Benchmark Mode Cnt Score Error Units
> UUIDUtilsBenchmark.fast thrpt 5 701840.078 ± 57597.624 ops/ms
> UUIDUtilsBenchmark.jdk thrpt 5 246409.000 ± 84564.009 ops/ms
>
>
> * benchmark result on [ecs.c8i.xlarge](https://help.aliyun.com/document_detail/25378.html#c8i)
>
> Benchmark Mode Cnt Score Error Units
> UUIDUtilsBenchmark.fast thrpt 5 131595.572 ? 7383.223 ops/ms
> UUIDUtilsBenchmark.jdk thrpt 5 129610.735 ? 455.752 ops/ms
>
>
> * benchmark result on [ecs.c8y.xlarge](https://help.aliyun.com/document_detail/25378.html#c8y)
>
> Benchmark Mode Cnt Score Error Units
> UUIDUtilsBenchmark.fast thrpt 5 129445.610 ? 1846.775 ops/ms
> UUIDUtilsBenchmark.jdk thrpt 5 104651.872 ? 1005.977 ops/ms
> @wenshao Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See [OpenJDK Developers’ Guide](https://openjdk.org/guide/#working-with-pull-requests) for more information.
got it
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14578#issuecomment-1601851348
More information about the core-libs-dev
mailing list