Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    N

    Nate Berkopec

    speedshop.co · Personal blog · on HN since 2016

    Nate Berkopec writes about Ruby and Rails performance, covering Puma, memory use, garbage collection, and ActiveRecord.

    Visit blogRSSHN submissions
    Web DevelopmentSystems & PerformanceProgramming
    What HN says

    Commenters cite it for the claim that page weight matters less than assumed, and for HTTP/2 and Ruby server tuning advice.

    Stats for nerds
    15HN people shared it
    14linked in comments
    108story points
    Nov 2020last shared
    2017people per year2020

    Top posts on HN

    1. 1
      Is Ruby Too Slow for Web-Scale?
      1 person · 84 points · first shared 2017 · 94 comments on HN
    2. 2
      Malloc Can Double Multithreaded Ruby Program Memory Usage
      2 people · 6 points · first shared 2017 · 1 comments on HN
    3. 3
      ActiveRecord Mistakes
      3 people · 5 points · first shared 2019 · Discussion on HN
    4. 4
      Gitlab sped up Puma using sleep sort
      2 people · 5 points · first shared 2020 · Discussion on HN
    5. 5
      Understanding Ruby GC Through GC.stat
      2 people · 4 points · first shared 2017 · Discussion on HN
    6. 6
      Page Weight Doesn't Matter
      2 people · 1 points · first shared 2016 · Discussion on HN
    7. 7
      Configuring Puma, Unicorn and Passenger for Maximum Efficiency
      1 person · 1 points · first shared 2017 · Discussion on HN
    8. 8
      Rack-Mini-Profiler – The Secret Weapon of Ruby and Rails Speed
      1 person · 1 points · first shared 2019 · Discussion on HN
    9. 9
      How to Measure Ruby App Performance with New Relic
      1 person · 1 points · first shared 2017 · Discussion on HN
    10. 10
      Blog
      1 person · first shared 2017

    What HN people wrote when they linked it

    • jameslkNov 2020

      Unpopular truth: Lowering page weight doesn't often help web performance.

      https://www.speedshop.co/2015/11/05/page-weight-doesnt-matter.html

      > Bandwidth is not the problem, and the performance of the web will not improve as broadband access becomes more widespread.

      > The problem is latency. Most of our networking protocols require a lot of round-trips. Each of those round trips imposes a latency penalty. Latency is governed, at the end of the day, by the speed of light. Which means that latency isn’t going anywhere.

      Of course, this will get downvoted on an all-text forum. That won't make it less true.

    • intertextualityFeb 2019

      It all comes down to what you're doing. To put it another way: it depends. Obviously, writing logic in Go can boost performance, but one needs to assess that that's where the slowdown actually is first. One can also eke out a lot more speed from ruby/rails than you'd think! [0]

      For a lot of people (and businesses), Ruby more than suffices. If it doesn't, other languages always exist. So no, Ruby is far from doomed–one just needs to evaluate the pros and cons of Ruby vs something like Go, etc. Ruby with Rails isn't hype or sexy technology, but it is quite mature and robust.

      [0]: https://www.speedshop.co/

    • nathan_f77Oct 2018

      This sounds great! Are there any things I need to watch out for before switching from Puma to Falcon? And is it production-ready now, or does it still need some time to mature and have feature parity with other web servers?

      This is a great article about the different Ruby web servers (from 2015): https://www.speedshop.co/2015/07/29/scaling-ruby-apps-to-1000-rpm.html

      Would be great to have a comparison with Falcon. Also, speaking of performance, I still need to set up jemalloc. Have heard lots of good things about that.

    • lixtraOct 2018

      Don’t you have an nginx/Apache in front? If you tell it to serve HTTP/2 don’t you already get 95% of the benefits?

      EDIT: e.g. bottom of https://www.speedshop.co/2016/01/07/what-http2-means-for-ruby-developers.html

    • nateberkopecMay 2017

      Not sure. My blog uses Milligram inlined into the head tag: https://www.speedshop.co/blog/

    Related

    James Golickjamesgolick.com40 people

    Reminder: "Broken gets fixed, but shitty lasts forever"

    James Golick
    Personal · last shared 2024
    Mechanical Sympathymechanical-sympathy.blogspot.com79 people

    Memory Access Patterns Are Important (2012)

    Mechanical Sympathy
    Personal · last shared 2026
    Probably Danceprobablydance.com74 people

    Fibonacci Hashing: The Optimization That the World Forgot

    Probably Dance
    Personal · last shared 2026
    byrootbyroot.github.io36 people

    There isn't much point to HTTP/2 past the load balancer

    byroot
    Personal · last shared 2026
    Rails at Scalerailsatscale.com59 people

    Tiny JITs for a Faster FFI

    Rails at Scale
    Company · last shared 2026
    Berkberk.es16 people

    Using a framework will harm the maintenance of your software

    Berk
    Personal · last shared 2023
    Unlimited Noveltyunlimitednovelty.com42 people

    Node.js has jumped the shark

    Unlimited Novelty
    Personal · last shared 2023
    Antonio Cangianoantoniocangiano.com27 people

    Who is accessing your Gmail account?

    Antonio Cangiano
    Personal · last shared 2010