Web Script Development language comparison

Source: Internet
Author: User
Tags comparison iis new features object model variables php and apache tomcat microsoft iis
We all must compare the ease and simplicity of programming. While we are all sure that PHP and Perl are the easiest languages to learn and program, I still want to know which one will be the fastest if you write a different program in PHP, ASP, JSP, and Perl.

Such comparisons are dependent on the operating system and hardware devices. For me, running PHP on Linux/apache is very fast, even if the machine belongs to the low-end pro type. Of course, everyone knows how stable and fast Linux is. ASP runs on IIS can be very fast, but also requires fairly high hardware performance.

As for Java, many programmers have been complaining about how slow it is ... There is a report called "Volano", from which you can find differences in performance between the various JDKs and servlet engines.

But it is also to be seen that, thanks to the "Java" hype, everyone is studying servlets/jsp or EJBS (which can be found in job postings). So, if you start working from penniless, PHP or Python/zope will be the best choice. But if you work for a company that is ambitious (thousands of dollars doesn't matter to them), you have a lot of options.

Developing applications in an enterprise-wide computer environment faces a number of special challenges: multi-background threading is standard, code resources must be manageable, maintainable, and reused by multiple generations of developers.

Even with these limitations, IT managers still face tremendous pressure to quickly develop new projects. When these projects occur on the Web, scripting languages are often a good choice.

As a business case for evaluation, the eWEEK lab simulates a test that assumes that a new, relatively small web application needs to be designed for the development of the intranet. We limit our budget to thousands of dollars and one weeks of development time.

In the test, we used 2 identical Dell computer Company's Optiplex gx1p system, each machine's CPU is Pentium III 550MHz, memory 384MB.

One server is running Windows Server, and service Pack 1 is installed. We tested the Allaire company's ColdFusion server Professional 4.5.1 and Microsoft's ASP (Active Server Pages) 5.0. Another server runs Red Hat Linux 7.0, which tests Apache Tomcat 3.2 Beta 5 and PHP 4.02.

In terms of development speed, ease of use, and complete, powerful API usage, ColdFusion ultimately stands out from the crowd.

We also recommend using JSP (JavaServer Pages), which is depicted by Tomcat and is a good choice for enterprise applications. ASP and PHP can do the same work, but they are not our first choice.

To test Web page performance and test stability, we used the Quest software company's benchmark Factory load test and stability planning tool. Quest software can be obtained from www.quest.com.

Although performance is different, we believe that each product is fast enough for small projects, where pure scripting is practical. More information about this test, including code and performance details, is posted in www.eWEEK.com/links
Jsp

Sun Microsystems has struggled to popularize its JSP scripting language and has contributed code to the Apache organization on JSP and the Java servlet engine. The Apache organization publishes the code as an Apache product called Tomcat.

JSP is relatively a new technology, but has a clear market direction.

However, since JSP is based on Java (and almost anything Java can do, this opens up a huge API library and class library) and because JSP extensions called Tag libraries enable JSP to mimic the ColdFusion tag type API, we have reason to think that In the next few years, JSP will become the core of the Web scripting language.

There are more kinds of product support JSPs that apply to high-end application servers, which makes it easier for JSP developers to consider scalability and fault tolerance.

Because JSP is based on Java and Java is a powerful type language, we must define the type of the variable when it is needed. This is a difficult thing to learn from non programmers, although some people who know Java think that JSP can be used almost quickly.

With Java database connectivity, Java has a flexible and complete set of APIs to access data.

On the server side, we tested the free Tomcat 3.2 Beta 5 version of the Apache organization. When the test server is Linux, the speed of Tomcat is approximately 13 pages per second.

Unfortunately, Tomcat has only a very basic performance Monitor and management tool (we may be able to find some beta products on the web), similar to PHP. The high-end java-based application Server provides a wealth of management tools.

Although the advantages of the Sun's Java 1.0 Community version are free and well suited to the JSP development environment, the reality is that development tools are often scarce in the JSP realm.

For enterprise-level development, we believe that JSP technology, although very new, is still the right choice because it uses Java, and many application server products support JSP. Microsoft ASP

In a team development environment, Microsoft's ASP (Active Server Pages) language is a well-known and very good web scripting technology, which also means that ASP developers are very easy to find. This technology is also very popular because the ASP is installed with Windows NT Server and Windows Web server.

Because it supports undefined type variables (untyped), ASP makes programming simple. And by supporting the Microsoft COM (Component Object Model: component objects models) standard, it provides a simple way to access a huge collection of Windows APIs. This is also a double-edged sword, in providing simple access to powerful COM objects, ASP code is complex and difficult to write. Microsoft's ADO (Active Data Objects) COM interface provides a comprehensive database access API.

Microsoft also invests heavily in ASP's clustering technology, and the upcoming Microsoft Application Center Server will provide clustering technology and content management capabilities for ASP sites

Using the VBScript language when writing ASP, we want it to have the Try/catch keyword. Without these, writing error-handling logic programs is annoying because we have to manually check to see if any errors occur (ASP also supports JScript, which has the Try/catch keyword).

ASP development tools are numerous and usually very mature. Using Microsoft's Microsoft Script Editor (which comes with Microsoft Office) to write pages, we find this tool valuable because it has a convenient editing environment and a complete debugger.

Our ASP site is a server running Windows 2000, which is about 43 pages per second.

See also: ASP and JSP comparison

Php

PHP as the preferred Linux Web scripting language emerges quickly. With the release of this year's PHP4, it has featured a number of new features, including a new scripting engine and a standardized keyword portion of the language (such as HTTP Session management), which was previously in the form of a add-on module.

The PHP language of the PHP development team is open and can be downloaded in the form of source code. Pre-compiled binaries for Windows are also available, and PHP can work on many Web servers, including Apache and Microsoft IIS.

PHP is really a few powerful blends, including Perl, C, Java, and even some ASP, and supporting undefined variables makes development work easier. PHP is very easy to expand, because the source code is available, so that a wide range of module extenders are developed and contributed by a large group of people, including: database links, mail applications, XML parser and so on.

Rich extensions also lead to a lack of API consistency. Users must try to agree on the PHP components they use to effectively track related changes.

We focus on PHP's lack of standard database APIs: To access Oracle data, we have to directly write code that invokes the Oracle8 API, which makes the page less lightweight and increases development costs. A number of studies are underway in this area, including Micorsoft ADO to PHP.

Similarly, PHP lacks a complete development environment tool and debugger (we can only find one, the Ives Development Company's Nexidion Designer, which is still in the 1.0 version).

On a tested Linux server, PHP has a speed of about 47 pages per second.
Turn from: Dynamic Network production guide www.knowsky.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.