|
|
@@ -18,3 +18,31 @@ mysql -u niche -p niche < schema.sql
|
|
18
|
18
|
Sanitizing
|
|
19
|
19
|
----------
|
|
20
|
20
|
bleach looks fine https://github.com/jsocol/bleach
|
|
|
21
|
+
|
|
|
22
|
+Performance
|
|
|
23
|
+-----------
|
|
|
24
|
+All with niche-dev running a local server.
|
|
|
25
|
+
|
|
|
26
|
+base: 1592 ms
|
|
|
27
|
+web.config.debug = False: 841 ms
|
|
|
28
|
+Pre-compiled templates: 848 ms
|
|
|
29
|
+Basic MySQL caching: ~366 ms
|
|
|
30
|
+
|
|
|
31
|
+cProfile doesn't do multiple threads.
|
|
|
32
|
+
|
|
|
33
|
+HTML templates: 366 ms
|
|
|
34
|
+Precompiled templates: 360 ms (no advantage)
|
|
|
35
|
+
|
|
|
36
|
+Baseline: 366 ms
|
|
|
37
|
+Basic caching: 228 ms
|
|
|
38
|
+Binary pickle: 221 ms
|
|
|
39
|
+
|
|
|
40
|
+Before launch
|
|
|
41
|
+-------------
|
|
|
42
|
+Error and access logging: DONE
|
|
|
43
|
+Check /static/ is served by nginx: DONE
|
|
|
44
|
+Check gzip effects: DONE
|
|
|
45
|
+Way of logging bytes transferred:
|
|
|
46
|
+error.log has no SQL in it: DONE
|
|
|
47
|
+memcached in monit: DONE
|
|
|
48
|
+monit emails sending: DONE
|