Xtext Serialization: how to benchmark? [message #1790319] |
Fri, 08 June 2018 06:59  |
Eclipse User |
|
|
|
Hi all,
what is the best/fair way to benchmark serialization performance of Xtext for a given grammar. Since the results of the benchmark will influence the decision whether we will use Xtext I want to make sure it got a fair chance. Is org.eclipse.xtext.serializer.impl.Serializer#serialize() the right entry point for a JMH benchmark? Is it always doing validation during the serialization process or can that be omitted if the model is known to be valid?
Thanks,
Michael
|
|
|
|
Re: Xtext Serialization: how to benchmark? [message #1790326 is a reply to message #1790321] |
Fri, 08 June 2018 07:40   |
Eclipse User |
|
|
|
I'm wondering why this would be such an important point for a decision for or against Xtext. And if you would benchmark on that level, against what would you benchmark other frameworks? Of course, you could use that entry point to benchmark something, but the performance is heavily influenced by the factors that Christian mentioned. I doubt that you would get useful results for your decision that way, but go ahead if you think you would.
In our experience completely different aspects influence the decision on Xtext. Performance is one of them, but usually parsing, validation etc. are more important than serializing. And even more important: Type of language you develop, integration with Eclipse/VSCode etc., code generation support, rich editor support, flexibility, robustness and a long live in past and future.
We would like to understand more your intention and use case to give the right ideas if Xtext could be the right choice for you.
Kind regards,
~Karsten
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08419 seconds