Plain Files - server I/O benchmarks
14 July 2008
Comments
5 files - 211,8KB in size
We use django and its default server and settings like in the main django/pylons benchmark. The view looks like this:from django.shortcuts import render_to_response
def index(request):
a = open('test/drive/a.html')
aa = a.read()
b = open('test/drive/b.html')
bb = b.read()
c = open('test/drive/c.html')
cc = c.read()
d = open('test/drive/d.html')
dd = d.read()
e = open('test/drive/e.html')
ee = e.read()
a.close()
b.close()
c.close()
d.close()
e.close()
return render_to_response('index.html', {'var1': aa, 'var2': bb, 'var3': cc, 'var4': dd, 'var5': ee})
mount -t tmpfs tmpfs /path/to/mountpoint
RESULTS disk
Errors:- 200 conns/s: 0 errors
- 300 conns/s: 17244 errors
Average connection time (ms):
200: 6.3
300: 1462.6
Reply time [ms]:
200: response 3.5 transfer 1.5
300: response 187.8 transfer 15.7
RESULTS RAM
Errors:- 200 conns/s: 0 errors
- 300 conns/s: 17210 errors
Average connection time (ms):
200: 5.0
300: 1446.9
Reply time [ms]:
200: response 3.4 transfer 1.5
300: response 136.4 transfer 16.1
The RAM is bit faster (5.0 vs 6.3) when httperf gets some errors looking at other numbers is pointless.
SQLite test
This test was made using PHP/cgi 5.1.4 with bundled SQLite on a Cherokee server using a simple code in which we had: 10 inserts, 10 updates, 10 selects, 5 select *, 5 * select with LIKE and delete from at the end.
RkBlog
Comment article