The Effect of C Language Output Method to the Performance of CGI Gateway in the UNIX Systems


The KIPS Transactions:PartC, Vol. 12, No. 1, pp. 147-156, Feb. 2005
10.3745/KIPSTC.2005.12.1.147,   PDF Download:

Abstract

CGI is a standard interface rule between web server and gateway devised for the gateway's standard output to replace a static web document in UNIX environment. So, it is common to use standard I/O statements provided by the programming language for the CGI gateway. But the standard I/O mechanism is one of buffer strategies that are designed transparently to operating system and optimized for generic cases. This means that it may be useful to apply another optimization to the standard I/O environment in CGI gateway. In this paper, we introduced standard output method and file output method as the two output optimization areas for CGI gateways written in C language in the UNIX/LINUX systems, and applied the proposed methods of each area to Debian LINUX, IBM AIX, SUN Solaris, Digital UNIX respectively. Then we analyzed the effect of them focused on execution time. The results were different from operating system to operating system. Compared to normal situation, the best case of standard output area showed about 10% improvement and the worst case showed 60% degradation in file output area where some performance improvement were expected.


Statistics
Show / Hide Statistics

Statistics (Cumulative Counts from September 1st, 2017)
Multiple requests among the same browser session are counted as one view.
If you mouse over a chart, the values of data points will be shown.


Cite this article
[IEEE Style]
H. B. Lee, Y. C. Jeong, K. H. Kweon, "The Effect of C Language Output Method to the Performance of CGI Gateway in the UNIX Systems," The KIPS Transactions:PartC, vol. 12, no. 1, pp. 147-156, 2005. DOI: 10.3745/KIPSTC.2005.12.1.147.

[ACM Style]
Hyung Bong Lee, Yeon Chul Jeong, and Ki Hyeon Kweon. 2005. The Effect of C Language Output Method to the Performance of CGI Gateway in the UNIX Systems. The KIPS Transactions:PartC, 12, 1, (2005), 147-156. DOI: 10.3745/KIPSTC.2005.12.1.147.