Peter Bengtsson
peterbe.com · Personal blog · on HN since 2008
Peter Bengtsson writes about web development and Python, including server benchmarks, databases, JavaScript tooling and frontend optimization.
What HN saysHN links it for practical benchmarks and tips, such as uWSGI versus Gunicorn and the datalist element, without much commentary on the blog itself.
38HN people shared it
10linked it in comments
49stories submitted
791story points
3 months agolast shared
2008people per year2026
Most-shared posts
- 1Fcgi vs. gunicorn vs. uWSGI5 people · 13 points · first shared 2010 · 2 comments on HN
- 2How much faster is Redis at storing a blob of JSON compared to Postgres?4 people · 253 points · first shared 2019 · 114 comments on HN
- 3Mincss "clears the junk out of your CSS"3 people · 124 points · first shared 2013 · 47 comments on HN
- 4A Python dict that can report which keys you did not use2 people · 97 points · first shared 2025 · 43 comments on HN
- 5Fastest database for Tornado2 people · 13 points · first shared 2013 · 2 comments on HN
- 6Advanced Closure Compiler vs. UglifyJS22 people · 10 points · first shared 2016 · 4 comments on HN
- 710 Reasons I Love Create-React-App2 people · 3 points · first shared 2017 · discussion on HN
- 8Homepage2 people · first shared 2015
- 9Is Nginx obsolete now that we have Amazon CloudFront?1 people · 75 points · first shared 2012 · 61 comments on HN
- 10Hugepic - a web app for showing massive pictures1 people · 74 points · first shared 2012 · 23 comments on HN
- 11My new web marketing strategy: Begging1 people · 38 points · first shared 2012 · 22 comments on HN
- 12Github Pull Request Triage tool1 people · 29 points · first shared 2014 · 3 comments on HN
- 13“tl;dr; I see little benefit in using a CDN at this point.”1 people · 7 points · first shared 2018 · 2 comments on HN
- 14Python multiprocessing made really really easy – Peterbe.com1 people · 4 points · first shared 2016 · discussion on HN
- 15Aggressively prefetching everything you might click1 people · 4 points · first shared 2014 · discussion on HN
What HN people wrote when they linked it
jermier · 2020-08-13
Who's behind this site? I don't see any credits in the footer or an about page, and the `whois` record is vague and scant on details: https://who.is/whois/ilovemdn.org
Is the OP behind it? https://www.peterbe.com/
peterbe · 2021-08-03
<datalist> is awesome! But I find it works better for short options.
See https://www.peterbe.com/plog/datalist-looks-great-on-mobile-devices
nevir · 2017-07-04
> fine but this is entirely irrelevant. the problem is that no one was optimizing for the deliverable (JavaScript). the GWT folks could have easily written an excellent compiler so it didnt generate a bunch of slow trash.
Compilers can only optimize so much. GWT/Closure do a very good job of it, too. https://www.peterbe.com/plog/advanced-closure-compiler-vs-uglifyjs2
Much of the "slow trash" is already optimized to death - it just dies under the weight of insane complexity (e.g. features), browser support, and overly-generic (IMO) support libraries
> which requires a massive slow polyfill in all but latest Chrome and results in a shit experience for all others (if i recall a related thread correctly).
Tangential: I'm not sure which version of Polymer they're using - but 1.0+ removes the need for most of the polyfilling.
avinassh · 2015-01-15
not really 'small', but some of the Python related blogs I follow are:
- http://pycon.blogspot.in/
- http://lucumr.pocoo.org/
- http://inventwithpython.com/blog/
- http://www.blog.pythonlibrary.org/
- http://www.ianbicking.org/blog/
- http://www.binarytides.com/
- http://www.peterbe.com/
- http://viksalgorithms.blogspot.com/
- http://rz.scale-it.pl
- http://packetforger.wordpress.com/
- http://blog.pythonisito.com/
rlander · 2012-05-16
There are benchmarks around [1], though I consider them valuable only for the entertainment value.
The great thing about uWSGI/Nginx over Gunicorn/Nginx is that Nginx speaks the uwsi protocol natively[2], whereas with Gunicorn Nginx acts as a proxy.
Also, in my experience (2 years with gunicorn, 1 with uwsgi in prod), uwsgi is more stable, uses less memory, has better management and configuration tools and even lets you run multiple Python apps under the same intepreter (multitenancy) [3].
[1] http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi
[2] http://wiki.nginx.org/HttpUwsgiModule
[3] http://projects.unbit.it/uwsgi/wiki/TipsAndTricks
(Edit: formatting)
najarvg · 2019-10-02
FWIW there is an update to this article at - https://www.peterbe.com/plog/update-to-speed-comparison-for-redis-vs-p…
TLDR; this update is not about redis vs postgresql but about caching!
alexatkeplar · 2012-04-23
Likewise +1 to Nginx + uwsgi. In the various performance benchmarks* uwsgi beats gunicorn, and uwsgi comes bundled with Nginx now, so there's really no reason to bother with setting up gunicorn any more.
* http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi
http://nichol.as/benchmark-of-python-web-servers
mladenkovacevic · 2011-12-27
Here's one of those articles:
http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi
He actually proclaimed Gunicorn as the initial winner but after what probably was some real-life usage changed his mind to UWsgi.
the UWsgi module is also now included with NGinx by default (as of version .84 or something)
I've never used Upstart as in the original post but I believe Supervisor does the same thing and is maybe a little more commonly used (http://supervisord.org/)
codexon · 2010-01-06
Not all people feel the need to consume as much as people in richer countries to feel the same amount of happiness.
There have been studies documenting this. Here is a short story from Tim Ferriss which sums this up where he realizes that a Mexican fisherman really has a very high quality of life.
http://www.peterbe.com/plog/the-4-hour-work-week-by-timothy-ferris