mike watkins dot ca : Entries tagged with “Tablet”

Entries tagged with “Tablet”

November 27 2007

QP and Durus on Nokia N800

The attached image is a screen shot of a web browser running on a Nokia N800, a Linux-based internet tablet. Weighing only ounces, the wireless device is a great platform for Python developers as the language has more or less become the default dynamic language for the device and, it would seem, for Nokia. GUI developers commonly employ pygtk/glade for Maemo applications; I'm not aware of much web development being done on the N series tablets as yet.

Pictured is the output of a highly Pythonic web framework and object database combination, QP and Durus - the app is merely a template provided by running mkqpapp.py.

I wanted to see what QP and this little tablet, underpowered by laptop or server standards, could do - here is a benchmark between a fairly fast Unix desktop, across a fairly slow wireless link, generating 10 concurrent request streams to the device

frog# /home/mw% siege -b -c10 -t10s http://n800:8000/
Transactions:                164 hits
Availability:             100.00 %
Elapsed time:               9.85 secs
Data transferred:           0.06 MB
Response time:              0.58 secs
Transaction rate:          16.65 trans/sec
Throughput:                 0.01 MB/sec
Concurrency:                9.71
Successful transactions:     164
Failed transactions:           0
Longest transaction:        3.66
Shortest transaction:       0.19

Not bad, considering its a full stack web framework and object database running on a little machine weighing only ounces that also is running what amounts to be a Gnome environment, browser, mail and other apps, all powered by a lowly TI 320MHz Armel architecture CPU.

Out of curiosity I added a hit counter to exercise the object database and the transaction rate was a respectable 12.36/second.

Worlds smallest portable web application demo machine!

Once I figure out how to make Debian packages for the armel architecture I'll post a deb link for a one click install of Durus, QP, QPY and Dulcinea.

Incidentally, while sqlite is in common use on Nokia tablets, there's clearly no reason why Durus could not be used. N-series Python developers might find that to be an ideal persistence pairing to go along with their web or GTK apps.