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

  1. 1
    Fcgi vs. gunicorn vs. uWSGI
    5 people · 13 points · first shared 2010 · 2 comments on HN
  2. 2
  3. 3
    Mincss "clears the junk out of your CSS"
    3 people · 124 points · first shared 2013 · 47 comments on HN
  4. 4
    A Python dict that can report which keys you did not use
    2 people · 97 points · first shared 2025 · 43 comments on HN
  5. 5
    Fastest database for Tornado
    2 people · 13 points · first shared 2013 · 2 comments on HN
  6. 6
    Advanced Closure Compiler vs. UglifyJS2
    2 people · 10 points · first shared 2016 · 4 comments on HN
  7. 7
    10 Reasons I Love Create-React-App
    2 people · 3 points · first shared 2017 · discussion on HN
  8. 8
    Homepage
    2 people · first shared 2015
  9. 9
    Is Nginx obsolete now that we have Amazon CloudFront?
    1 people · 75 points · first shared 2012 · 61 comments on HN
  10. 10
    Hugepic - a web app for showing massive pictures
    1 people · 74 points · first shared 2012 · 23 comments on HN
  11. 11
    My new web marketing strategy: Begging
    1 people · 38 points · first shared 2012 · 22 comments on HN
  12. 12
    Github Pull Request Triage tool
    1 people · 29 points · first shared 2014 · 3 comments on HN
  13. 13
  14. 14
  15. 15
    Aggressively prefetching everything you might click
    1 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.
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

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close