Solved

perl versus c

Posted on 2000-03-05
2
150 Views
Last Modified: 2010-03-05
Hello i have been told for a high usage site i should have my login script in c instead of perl.

my login script is approx 20kb on a solaris with 220mb bandwidth.

my questions are

1. how many logins could this forseeably cope with in say 1 second ?
2. would c be any better or faster?

thanks for your asdvice gerald.
0
Comment
Question by:wampy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2585752
1. how long does your script take to run?
2. c may be faster, particularly if your script spends a lot of time on calculations.
0
 
LVL 8

Accepted Solution

by:
jhurst earned 100 total points
ID: 2586199
ozo is almost always right, however this time I disagree with him.  So many web servers are now optimized for perl that even though C is probably slightly more efficient itself, by the time it is on a server it is probably less efficient.  Either way, there will be no problem, the time take to execute a login in scrip will not matter.

Now, your bandwidth is much more likely to be a limit- just find out how big each transaction is, by looking at the generated pages and divide it into the bandwidth available.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question