#jmh — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jmh, aggregated by home.social.
-
Wednesday Links - Edition 2025-07-02
https://dev.to/0xkkocel/wednesday-links-edition-2025-07-02-4bmb
#java #jmh #spring #architecture -
🚀 Call for Contributors – #JVM #Performance #Benchmarks
If you're interested in contributing to the #JVM #Performance #Benchmarks project - an initiative that gained significant traction in the #Java community through our recent #JDK17 and #JDK21 analyses - check out the repo:
🔗 https://github.com/ionutbalosin/jvm-performance-benchmarks
🧵 DM me or open a PR to get started
-
Simple O(n^2) vs mildly optimised solution in #Java for #AdventOfCode day 1 part 2 using #jmh.
Day 2 part 2 was surprisingly tricky to find the edge cases and required unit tests to track them all down.
Code: https://github.com/chriswhocodes/aoc2024
Benchmark: https://github.com/chriswhocodes/aoc2024-benchmark -
Thanks for attending my deep dive session, and thanks for all feedback and questions. #Devoxx #JMH
Slides https://t.ly/POQnP and if you want to get really crazy with running some examples, you can clone the repository from https://github.com/Xceptance/jmh-training
And here is the full recording: https://youtu.be/u5XC2nriqpQ?si=SB_05NXM3oqJ7x6f
Feedback appreciated!
-
How many joules does it take to execute a single Java method?
In my latest Growing Green Software blog post, I explore this question and show how we can use JoularJX to break down the energy consumption of a Java program to the method level.
https://medium.com/growing-green-software/measuring-java-energy-consumption-987654efdabb
-
"My code is faster than yours... let me prove it to you!" Challenge accepted, François Martin! 🚨
In this #BaselOne24 talk, you will learn about benchmarking with #JMH. JMH is a #Java harness for building, running, and analyzing nano/micro/milli/macro benchmarks written in Java and other languages targeting the hashtag#JVM.
Get your tickets at https://lnkd.in/ggjmzerN.
#communityrocks #softwaredevelopment #softwareengineering #BaselOne
-
Как замерять и повышать производительность Java-кода: личный пример с JMH
Привет, Хабр! Большинство команд разработки так или иначе вовлечены в гонку за производительностью. Если понимать этот показатель как скорость работы системы, то вся деятельность по прокачке производительности — это, по сути, анализ метрик и поиск инструментов, которые эту скорость могут повысить. Меня зовут Александр Певненко , я работаю в СберТехе, компании, которая разрабатывает ПО. Для большинства наших продуктов производительность — критичный фактор, поэтому анализ метрик и оптимизация кода — важная часть цикла разработки. Хочу поделиться личным опытом и мнением обо всём, что касается оптимизации и повышения скорости работы кода, а также нагрузочного тестирования как части этой работы. Тут представлены моя собственная практика использования набора библиотек JMH для нагрузочного тестирования и замеров производительности Java-кода. Всем, кому интересно, добро пожаловать под кат!
-
@matari Most of your recorded time will actually have been spent on the System.out.println command. And self-made benchmark timers are notorious for giving bad data, so I recommend JMH instead.
You're right that String.format is slower than using the + operator, but a JMH benchmark comparison would show the difference to be much greater. (It would also show that String.format allocates a bunch more bytes to the heap.)
In summary: don't use String.format for simple concatenation.
-
Today I made the first release of #SonarQube #Java Energy Impact #Plugin. See https://github.com/aixigo/sonarqube-java-energyimpact-plugin/blob/main/CHANGELOG.md
Based on scientific research the usage of #ArrayList and #HashMap is discouraged due to higher #EnergyConsumption leading to higher #CarbonEmission|s. 5% #EnergySaving|s can be achieved.
Now I'm searching for ways to measure energy consumption in #Java Microbenchmark Harness (#JMH) to start working on the higher hanging fruits/recommendations of the paper: https://doi.org/10.1007/s10664-021-09950-y
-
https://www.gva.be/cnt/dmf20230908_95777642 Cafe Kamiel nog steeds gesloten #jmh #antwerpen #berchem
-
The curious C2 case of different training data and sticking to it forever: https://github.com/rschwietzke/jmh-C2-compile
I would appreciate a review, any feedback, and possibly an idea, if this is a bug, a feature, or just one of the "bad luck" cases.
-
Here are the slides of my first #DevoxxPL talk. I had to rush a little because I wanted to tell you so much in so little time. Thanks for attending. I hope you enjoyed it and you can take something home.
See you tomorrow for "Parallel Programming is Hard". 1430/230pm in Room 2!
https://training.xceptance.com/java/500-the-art-of-microbenchmarking-devoxx-pl-2023.html
-
How to write JMH microbenchmarks for asynchronous functions (tips and tricks). https://mail.openjdk.org/pipermail/loom-dev/2023-May/005509.html
By Sergey Kuksenko #Java #jmh -
JMH 1.36 (github.com/openjdk/jmh) is released (JDK 8 is now minimum, GC profiler bugfix, perfasm profiler improvements): https://mail.openjdk.org/pipermail/jmh-dev/2022-November/003553.html
#noxp #Java #jmh -
Significantly cleaner #JMH results with this improvement to compiler blackholes, allowing standard load optimisations to work: https://mail.openjdk.org/pipermail/hotspot-compiler-dev/2022-November/060233.html #HotSpot #performance #benchmark