|
Mel, I wrongly assumed that if I comment out wrtjobdbg(*on), it would turn off debugging. As you suggested, I added a named activation group and made a call to setnodebug(*on). The CGIDEV2 response in my test page now ranges from 4 to 5 seconds as I refresh, compared to the 8 to 10 seconds previously. Indeed I am not trying to knock anyone down and I think CGIDEV2 is a great free alternative, just as RPGsp is a great commercial alternative. What I was trying to do is measure the speed of CGI in general, and draw a comparison to JSPs. Joe, I have had experience coding Java, but not JSPs. However, I have seen other developer's JSPs run slow compared to RPG. I have yet to try the thin layer of JSP/servlets over RPG business logic. This can be my next thing to learn and experiment with. If you would like, Joe, we could try and compare the JSP approach to the RPGsp approach (apples to apples). Every language/program has a purpose and JSPs probably have their advantages, but it'd be interesting to see how they match up from a performance standpoint. I think the typical test to try would be to create a page that displays records from an iSeries database file. We have here a database of 70,463 Zip Codes (includes Zip, City, State, County). I was able to display the entire database with an RPGsp page in 17.6 seconds. I simply put a timestamp at the top and bottom of my page, so it only measures the processing time on the server, not how long it takes to transfer the records to the browser (which is a long time - but not relevant). For reference, 1,500 zip code records load up in 0.25 seconds. 15,000 records load up in 2-3 seconds. I display every field in the file. Any chance we could get a similarly written JSP/RPG-backend sample written to compare speeds? The machine I use is a low-end 520 (500 cpw). I can send you the source of my page if you'd like. Here is how the database is defined: A UNIQUE A R POSTR A POSTCITY 28A TEXT('City') A POSTSTATE 2A TEXT('State') A POSTZIP 5S 0 TEXT('ZIP Code') A POSTNAME 25A TEXT('County Name') A K POSTZIP A K POSTSTATE A K POSTCITY Seth Newton snewton@xxxxxxxxxxxxxxxxx Profound Logic Software, Inc. Toll-Free: (877) 224-7768 x115 Fax: (603) 849-7757 RPGsp - iSeries Web Development has never been this easy! Watch video demos: http://www.profoundlogic.com/video_demos/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.