473,379 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Speed of the different python-based HTTP-servers

I'm thinking of switching from my Twisted-HTTP-server-project to
CherryPy or Snakelets etc etc. The project involves alot of
database-access using SQLObject and SQLite ( perhaps MySQL and
PostgreSQL in the future ) and some heavy IO-stuff ( scanning of local
filesystem to extract meta information about images and storing this
info in the database. This won't happen too often though).

I don't expect this project to have alot of traffic once online, but it
would kinda suck if my software couldn't handle it if it really took
off.

So my question is; based on the very brief description above, are there
any of the python-based frameworks that fits my project better than the
others? And are there some of the frameworks that doesn't scale
particulary well? Benchmarks anyone?

My main focus is simplicity, one of the main reason I'm looking for
something else than Twisted. I'm a little conserned about the
threading-issues when using thread-based frameworks though, but if
speed and scalability would increase dramatically I'm inclined to
struggle with the threads anyhow.

Snakelets and CherryPy both look interesting compared to Twisted ( and
CherryPy seems to have some code available using SQLObject allready,
while Snakelets does not, so I'm leaning towards CherryPy at the moment
).

I want to use ZPT or simpleTAL for templating and SQLObject for
database-access etc if that makes any differences.

Thanks for any input you might have.

Best regards,
Thomas

Jul 19 '05 #1
1 1293
Thomas W wrote:
I don't expect this project to have alot of traffic once online, but it
would kinda suck if my software couldn't handle it if it really took
off.
What would be "a lot"....
So my question is; based on the very brief description above, are there
any of the python-based frameworks that fits my project better than the
others? And are there some of the frameworks that doesn't scale
particulary well? Benchmarks anyone?
With the note that benchmarks are dangerous, here are some numbers:
http://snakelets.sourceforge.net/benchmark.html

I'd say just install it on your own system and run your own tests.
I want to use ZPT or simpleTAL for templating and SQLObject for
database-access etc if that makes any differences.


Snakelets has Ypages for templating, but it is not really
difficult to use your own template library (someone is successfully
using PyMeld, for instance).
It is database agnostic, meaning that no database code whatsoever
is in the package. This means that you are 100% free to choose
your own db persistence system.

--Irmen.
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Jacek Generowicz | last post by:
I have a program in which I make very good use of a memoizer: def memoize(callable): cache = {} def proxy(*args): try: return cache except KeyError: return cache.setdefault(args,...
29
by: Bart Nessux | last post by:
Just fooling around this weekend. Wrote and timed programs in C, Perl and Python. Each Program counts to 1,000,000 and prints each number to the console as it counts. I was a bit surprised. I'm not...
28
by: Maboroshi | last post by:
Hi I am fairly new to programming but not as such that I am a total beginner From what I understand C and C++ are faster languages than Python. Is this because of Pythons ability to operate on...
11
by: grv | last post by:
So it is supposed to be very fast to have an array of say 5 million integers stored in a binary file and do a = numarray.fromfile('filename', (2, 2, 2)) numarray.add(a, 9, a) but how is that...
52
by: Neuruss | last post by:
It seems there are quite a few projects aimed to improve Python's speed and, therefore, eliminate its main limitation for mainstream acceptance. I just wonder what do you all think? Will Python...
3
by: I.V. Aprameya Rao | last post by:
Hi I have to implement a flat file dbms. The basic condition is that relations will be given in files and i will have to run certain select project join queries on those relations. Can...
23
by: Mark Dickinson | last post by:
I have a simple 192-line Python script that begins with the line: dummy0 = 47 The script runs in less than 2.5 seconds. The variable dummy0 is never referenced again, directly or indirectly,...
53
by: Krystian | last post by:
Hi are there any future perspectives for Python to be as fast as java? i would like to use Python as a language for writing games. best regards krystian
34
by: Larry Hastings | last post by:
This is such a long posting that I've broken it out into sections. Note that while developing this patch I discovered a Subtle Bug in CPython, which I have discussed in its own section below. ...
1
by: mk | last post by:
Out of curiosity I decided to make some speed comparisons of the same algorithm in Python and C++. Moving slices of lists of strings around seemed like a good test case. Python code: def...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.