-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is PerformanceBenchmarkTest exactly supposed to do? #34
Comments
Hi @wind57,
Sure I can remove that.
The point of having a single benchmark is to collect data of a single use-case. It might seem counter intuitive but it helps me to benchmark two different versions of datus on the same setup. Before releasing a new version of datus I run said benchmark on the previous version and compare potential performance regressions.
Well I am using assertJ facilities as
There's that tricky question :) I wanted to do that in #23 but decided against it as I would have to maintain other mapper implementations in my repository and people would complain about non-idiomatic / non-best-performing usage of other frameworks. That's why I have linked to the repository you linked to in the
To put it bluntly: I still don't want to maintain 3rd-party mapper implementations for 8-XX frameworks for the aforementioned reasons. I think it would be best to go to arey's repo and open issues etc. Thank you for your issue |
Thank you.
I see. Yes, that makes sense.
I did not meant to use
I see. Thx for the follow-up. I think it's safe we close this and I understand the reasonings.
|
I am a little confused about
PerformanceBenchmarkTest
..jvmArgs("-server")
is an ancient setting, that is simply ignored in the JVM.Second, what is the point of having a single
@Benchmark
? You are supposed to benchmark against something else, I guess.It seems your
testedConversionShouldBeCorrect
, just ensures that the conversion is correct, but that is something JMH already offers via@TearDown
: https://hg.openjdk.java.net/code-tools/jmh/file/b6f87aa2a687/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_05_StateFixtures.javaAnyway, these are nitpicks, mainly. The idea is that I hoped this test would have some samples against some popular frameworks. I have seen https://github.com/arey/java-object-mapper-benchmark, though. It's just that your results rely on those tests and I am not sure about their correctness (without understanding them, those are meaningless numbers: look how the benchmark presents that "direct" mapping is slower than "map-struct"). I wonder if I should provide a PR against some data mappings libraries inside (or a separate project/child from datus)?
The text was updated successfully, but these errors were encountered: