[jdk17u-dev] Integrated: 8292698: Improve performance of DataInputStream
Aleksey Shipilev
shade at openjdk.org
Tue May 30 18:52:09 UTC 2023
On Tue, 23 May 2023 12:57:56 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> Clean backport to improve `DataInputStream` performance in JDK 17u.
>
> Benchmark from the changeset:
>
>
> Benchmark Mode Cnt Score Error Units
>
> #### x86_64
>
> # Before
> DataInputStreamTest.readChar avgt 20 19.939 ? 0.120 us/op
> DataInputStreamTest.readInt avgt 20 20.538 ? 0.052 us/op
>
> # After
> DataInputStreamTest.readChar avgt 20 10.497 ? 0.079 us/op
> DataInputStreamTest.readInt avgt 20 5.399 ? 0.073 us/op
>
> ### AArch64
>
> # Before
> DataInputStreamTest.readChar avgt 20 21.600 ? 0.410 us/op
> DataInputStreamTest.readInt avgt 20 21.425 ? 0.545 us/op
>
> # After
> DataInputStreamTest.readChar avgt 20 12.186 ? 0.366 us/op
> DataInputStreamTest.readInt avgt 20 6.207 ? 0.174 us/op
>
>
> Additional testing:
> - [x] Benchmark added by RFE
> - [x] Linux x86_64 fastdebug, `tier1 tier2 tier3`
> - [x] Linux AArch64 fastdebug, `tier1 tier2 tier3`
This pull request has now been integrated.
Changeset: 7765ba55
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/7765ba55dcc01116a8e266c60753253c1ac96386
Stats: 98 lines in 2 files changed: 71 ins; 14 del; 13 mod
8292698: Improve performance of DataInputStream
Backport-of: 74a51ccc86525eb4b1eb2e5cb11e605ca9e9fc5d
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/1390
More information about the jdk-updates-dev
mailing list