Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Performance]
[Performance] [message #1597320] Mon, 02 February 2015 07:52 Go to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

I would like to write performance tests for the CDO project. I have read
the Eclipse Performance wiki page [1].
First question is : are there a fixed p2 repository URL because
currently I use
http://download.eclipse.org/eclipse/updates/4.5milestones but seems
temporary.
Second question is : can you have org.eclipse.test.performance framework
works for standalone JUnit plugin? I ask it because instead of having
performance measures output to sysout or DB, I would like to save them
in local file. Then I have tested by providing my own
PerformanceMeterFactory but get the following exception because the
framework needs to access to PerformanceTestPlugin instance which is at
null in standalone :

org.eclipse.emf.cdo.tests.config.impl.ConfigTestException: Error in
InverseReferencesPerformanceTests.testGetInverseReferencesWithXMIResourceUsingECrossReferenceAdapter
[MEM-branching, TCP, Native]
at
org.eclipse.emf.cdo.tests.config.impl.ConfigTest.runBare(ConfigTest.java:612)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at org.eclipse.net4j.util.tests.AbstractOMTest.run(AbstractOMTest.java:354)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: java.lang.NullPointerException
at
org.eclipse.test.performance.Performance.tryInstantiate(Performance.java:218)
at
org.eclipse.test.performance.Performance.createPerformanceMeterFactory(Performance.java:200)
at
org.eclipse.test.performance.Performance.getPeformanceMeterFactory(Performance.java:194)
at
org.eclipse.test.performance.Performance.createPerformanceMeter(Performance.java:152)
at
org.eclipse.emf.cdo.tests.performance.framework.AbstractPerformanceCDOTest.setUp(AbstractPerformanceCDOTest.java:35)
at
org.eclipse.net4j.util.tests.AbstractOMTest$3.execute(AbstractOMTest.java:297)
at
org.eclipse.net4j.internal.util.test.TestExecuter.execute(TestExecuter.java:40)
at
org.eclipse.net4j.util.tests.AbstractOMTest.runBare(AbstractOMTest.java:287)
at
org.eclipse.emf.cdo.tests.config.impl.ConfigTest.runBare(ConfigTest.java:603)
... 14 more


Last question is : how can we get chart like one in [1] by using local
data instead of data stored in Derby DB?

Best Regards.


[1] https://wiki.eclipse.org/Performance/Automated_Tests
--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [Performance] [message #1622650 is a reply to message #1597320] Wed, 18 February 2015 16:45 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/02/2015 02:52 AM, Esteban
Dugueperoux wrote:<br>
</div>
<blockquote cite="mid:manabh$al0$1@xxxxxxxxe.org" type="cite">Hi,
<br>
<br>
I would like to write performance tests for the CDO project. I
have read the Eclipse Performance wiki page [1].
<br>
First question is : are there a fixed p2 repository URL because
currently I use
<a class="moz-txt-link-freetext" href="http://download.eclipse.org/eclipse/updates/4.5milestones">http://download.eclipse.org/eclipse/updates/4.5milestones</a> but
seems temporary.
<br>
</blockquote>
<br>
Yes, it is temporary, until the "Release" (but, as far as I know, it
is in Luna repo too, so if you want a completely stable version,
that might be the one to use. PLUS, I *do* plan to be changing both
the performance bundles in Mars, so you either need to be prepared
for that ... or use a "stable" released version or ... fork it, I
guess -- but, am open to the idea of improving it to suit your
needs, if you have some good patches that would help. <br>
<br>
<blockquote cite="mid:manabh$al0$1@xxxxxxxxe.org" type="cite">Second
question is : can you have org.eclipse.test.performance framework
works for standalone JUnit plugin? I ask it because instead of
having performance measures output to sysout or DB, I would like
to save them in local file. Then I have tested by providing my own
PerformanceMeterFactory but get the following exception because
the framework needs to access to PerformanceTestPlugin instance
which is at null in standalone :
<br>
<br>
</blockquote>
<br>
Yes, it would at least have to be on your classpath, if you are not
using the test framework and Platform runtime ... but, I have no
idea if that would really work ... or, if there other things
required, as well? <br>
<br>
<blockquote cite="mid:manabh$al0$1@xxxxxxxxe.org" type="cite">
<br>
Last question is : how can we get chart like one in [1] by using
local data instead of data stored in Derby DB?
<br>
<br>
</blockquote>
<br>
Short answer is "no". It is entirely oriented toward getting the
data from a database. (And, BTW, as is, is pretty specific to "the
Eclipse Platform"). <br>
<br>
If there is some JDBC Driver that that handles "flat files", then
you might be able to get it that part to work. But, even that would
be a small problem compared to many others you would encounter, I
suspect. Perhaps a "charting" program such as "BIRT" would be easier
to use? (I myself hope to have time to look into that, but, not sure
it'll be in time to do you any good). <br>
<br>
Good luck, <br>
<br>
</body>
</html>
Re: [Performance] [message #1625801 is a reply to message #1622650] Fri, 20 February 2015 16:54 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi David,

I have raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=460464 with
a patch to have org.eclipse.test.performance bundle usable in standalone.

Thanks and best Regards.

Le 18/02/2015 17:45, David Williams a écrit :
> On 02/02/2015 02:52 AM, Esteban Dugueperoux wrote:
>> Hi,
>>
>> I would like to write performance tests for the CDO project. I have
>> read the Eclipse Performance wiki page [1].
>> First question is : are there a fixed p2 repository URL because
>> currently I use
>> http://download.eclipse.org/eclipse/updates/4.5milestones but seems
>> temporary.
>
> Yes, it is temporary, until the "Release" (but, as far as I know, it is
> in Luna repo too, so if you want a completely stable version, that might
> be the one to use. PLUS, I *do* plan to be changing both the performance
> bundles in Mars, so you either need to be prepared for that ... or use a
> "stable" released version or ... fork it, I guess -- but, am open to the
> idea of improving it to suit your needs, if you have some good patches
> that would help.
>
>> Second question is : can you have org.eclipse.test.performance
>> framework works for standalone JUnit plugin? I ask it because instead
>> of having performance measures output to sysout or DB, I would like to
>> save them in local file. Then I have tested by providing my own
>> PerformanceMeterFactory but get the following exception because the
>> framework needs to access to PerformanceTestPlugin instance which is
>> at null in standalone :
>>
>
> Yes, it would at least have to be on your classpath, if you are not
> using the test framework and Platform runtime ... but, I have no idea if
> that would really work ... or, if there other things required, as well?
>
>>
>> Last question is : how can we get chart like one in [1] by using local
>> data instead of data stored in Derby DB?
>>
>
> Short answer is "no". It is entirely oriented toward getting the data
> from a database. (And, BTW, as is, is pretty specific to "the Eclipse
> Platform").
>
> If there is some JDBC Driver that that handles "flat files", then you
> might be able to get it that part to work. But, even that would be a
> small problem compared to many others you would encounter, I suspect.
> Perhaps a "charting" program such as "BIRT" would be easier to use? (I
> myself hope to have time to look into that, but, not sure it'll be in
> time to do you any good).
>
> Good luck,
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Set linked resource variables through commandline arguments?
Next Topic:Uninstall Eclipse Kepler
Goto Forum:
  


Current Time: Thu Jan 23 09:31:04 GMT 2025

Powered by FUDForum. Page generated in 0.02397 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top