Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

perl versus c

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
wampy
Asked:
wampy
1 Solution
 
ozoCommented:
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
 
jhurstCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now