Re: DataQueue performance jt400Native 10x slower then RPG
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <OF73C7596D.072E1E75-ONC1258546.005D08BA-C1258546.005D1F41@encobis.com> |
and this is a cut from my rpg-client
i am sending 10 times 1024msgs wich are numbered from 1 to 1024 so i can
mesure the time on the java and the rpg-server
dcl-proc testdatqc;
testds.vorname = 'Max';
testds.nachname = 'Mustermann';
testds.data = 'AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGÄÄÄÄÄÖÖÖÖÖÜÜÜÜÜ';
FOR j = 1 TO 10;
FOR i = 1 TO 1024;
testds.nr = i;
gettimeofday(testds.time);
DataQueue_Send('DTAQ3': 'EDEV': %len(testds): testds);
ENDFOR;
endfor;
return;
end-proc;
From: [email protected]
To: [email protected]
Date: 10.04.2020 17:35
Subject: DataQueue performance jt400Native 10x slower then RPG
Sent by: "JAVA400-L" <java400-l-bounces-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org>
Hi!
I have a performance problem with my IBM-i scenario.
I have a RPG Client which writes messages to a dataquene. the messages are
about 9000bytes in size. i am writing 1024 messages.
I have two server implementaions which run on the same IBMi machine one in
Java and one in RPG
The java version takes about 150ms to read 1024 messges. The RPG version
only about 15ms. so the RPG version is 10 times faster.
I verified that i user jt400Native and the AS400ImplNative and
BaseDataQueueImplNative is used so that the native API calls from JVM/Pase
are used.
Both server implementations are running in al loop so that i can exlude
any startup perfomance impacts. The timings do not vary over time. RPG is
alwas 10x faster.
Why is the Java/Pase version so much slower??
Greetings,
Franz
My Environment is: Power S812 64GB RAM (1Core no VIOS). IBM-i 7.4 TR1.
There is no load on Server
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com