Better not measure the 2nd time, mabye the 200th time....Java's JIT optimizes frequently run code. Sure, if you count the overhead of getting the JVM running and Java app translated to optimized machine code, it will be slower than COBOL for "equivalent code" (if such a thing even exists for a complex app).
But I'm sticking with my original answer for most serious applications: "the better programmer wins". In complex systems, the better programmer/design is a more significant factor in performance than the language choice. Largely, this favors COBOL, since most Java programmers lack the skill to write high-performance code. Java is a much nicer language than traditional COBOL (IMO), supporting modern OO software engineering, etc. and *can* be used to create fast, maintainable, and reusable code. There are lots of examples, but these are still a *tiny* percentage of all Java apps. Kirk Wolf Dovetailed Technologies http://dovetail.com PS> Stand back, this is one of "those" threads :-) On Thu, Jul 15, 2010 at 2:02 PM, Itschak Mugzach <[email protected]> wrote: > As expected, I believe. But did the second run was faster as the JVM was > loaded? What is the ratio? > > On Thu, Jul 15, 2010 at 9:59 PM, Chase, John <[email protected]> wrote: > >> > -----Original Message----- >> > From: IBM Mainframe Discussion List On Behalf Of Itschak Mugzach >> > >> > I wonder if this was tested ever: same business logic in batch or >> CICS. NO\o >> > zAAP installed. Who is faster? and in case of zAAP? >> >> It's been a few months since we did an informal comparison, but on a >> z9-BC without zAAP the CICS COBOL code was "noticeably" faster than the >> equivalent CICS Java code. >> >> -jc- >> >> ---------------------------------------------------------------------- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to [email protected] with the message: GET IBM-MAIN INFO >> Search the archives at http://bama.ua.edu/archives/ibm-main.html >> > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

