GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JMH: Some jmh-tests may need to be re-evaluated · Issue #14881 · netty/netty

JMH: Some jmh-tests may need to be re-evaluated #14881

New issue
Copy link
New issue
Copy link
Open
Open
JMH: Some jmh-tests may need to be re-evaluated#14881
Copy link

Description

@laosijikaichele
laosijikaichele
opened on Feb 28, 2025
Issue body actions

This was unexpected noticed when do the PR #14878.

The PR #14878 disabled assertion by default for JMH tests, which aligned with the common production settings.

That change may affect some benchmark results, for example, the ByteBufAllocatorConcurrentBenchmark to compare performance betweenPooledByteBufAllocator.DEFAULT and adaptiveAllocator: (with JDK-17, M1 chip, 8 cores, 16G RAM)

Before PR:

Benchmark                                                    (size)   Mode  Cnt         Score          Error  Units
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   00064  thrpt   20  86231768.383 ± 11380104.655  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   00256  thrpt   20  66344453.516 ±  7880299.523  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   01024  thrpt   20  74466000.545 ±  2760686.046  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   04096  thrpt   20  62714323.129 ± 18474124.550  ops/s

ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     00064  thrpt   20  61425921.135 ±  5594520.883  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     00256  thrpt   20  63096846.621 ±  4574851.790  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     01024  thrpt   20  56776682.109 ±  3068264.099  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     04096  thrpt   20  67311458.665 ±   912472.494  ops/s

After PR:

Benchmark                                                    (size)   Mode  Cnt         Score          Error  Units
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   00064  thrpt   20  82133101.607 ±  3019206.156  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   00256  thrpt   20  89869155.325 ± 18547254.496  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   01024  thrpt   20  63534329.364 ±  1097248.608  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleaseAdaptive   04096  thrpt   20  76226536.182 ±  2291379.662  ops/s

ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     00064  thrpt   20  89168684.647 ±   524291.239  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     00256  thrpt   20  73949586.496 ±   511747.281  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     01024  thrpt   20  73877283.124 ±   429980.373  ops/s
ByteBufAllocatorConcurrentBenchmark.allocateReleasePooled     04096  thrpt   20  89362198.398 ±   447059.402  ops/s

As we can see, the performance of PooledByteBufAllocator.DEFAULT improved(+15% ~ +45%) after the PR, and its performance numbers become compatible with adaptiveAllocator after the PR.

There might be other jmh-tests need to be re-evaluated.

This is more like a gentle reminder/discussion rather than an issue, so feel free to close it.

Activity

  1. laosijikaichele
    changed the title [-]JMH: Some jmh-tests may need to be re-evaluated?[/-] [+]JMH: Some jmh-tests may need to be re-evaluated[/+] on Feb 28, 2025
  2. laosijikaichele commented on Mar 4, 2025

    @laosijikaichele
    laosijikaichele
    on Mar 4, 2025
    ContributorAuthor
    More actions

    #14876 (comment)

    Did you mean the json results data of this benchmark? @franz1981

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.