Hi Kiren
On 27/03/12 13:09, Kiren Pillay wrote:
Hi Sergey,
Attached is a war file against which I am testing my client.
great, thanks
The test URLS
are given below together with the Jamon stats for a 1000 hits.
1. Large response (27k)
url="http://localhost:8080/RestTest/rest/test/long/27000";
JAMon Label=myCodeTimer, Units=ms.: (Hits=1000.0, Avg=7.77, Total=7770.0,
Min=4.0
tps:128.5512276642242
2. Small response
url="http://localhost:8080/RestTest/rest/test/short";
JAMon Label=myCodeTimer, Units=ms.: (Hits=1000.0, Avg=5.454, Total=5454.0,
Min=3.0, Max=37.0
tps:183.0831197363603
3. Dummy Response using the JAXB schema
url="http://localhost:8080/RestTest/rest/test/xml";
JAMon Label=myCodeTimer, Units=ms.: (Hits=1000.0, Avg=15.381, Total=15381.0,
Min=9.0, Max=542.0,
tps:64.96037417175522
With the following code:
WebClient wc =
WebClient.create("http://localhost:8080/RestTest/rest/test/xml");
wc.accept("text/xml");
// warm up a bit
for (int i = 0; i < 50; i++) {
wc.get();
}
long total = 0;
for (int i = 0; i < 1000; i++) {
long l1 = System.currentTimeMillis();
wc.get(Document.class);
long l2 = System.currentTimeMillis();
total += l2-l1;
}
System.out.println("Average: " + total/1000);
I'm getting 10 millisecs average. Note I'm adding a Document reading
just to eliminate any optimizations with webClient.get() where no actual
read is done.
Running the same code against
http://localhost:8080/RestTest/rest/test/long/27000
(changing address, accept to text/plain, and wc.get(Document.class); to
wc.get(String.class);)
gives me 2 milliseconds average.
Can you try the same code please ?
Cheers, Sergey
I've include our custom JAXB-enabled schema jar, the rest you can build from
maven pom.xml.
http://cxf.547215.n5.nabble.com/file/n5597650/RestWarProject.tar.gz
RestWarProject.tar.gz
Custom JAXB schema file:
http://cxf.547215.n5.nabble.com/file/n5597650/pams-core-xsd-server-1.3.0_ba_nemo-SNAPSHOT.jar
pams-core-xsd-server-1.3.0_ba_nemo-SNAPSHOT.jar
Regards
Kiren
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Test-client-for-JAXB-load-testing-tp5597650p5597650.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com