Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

I built the fastest PHP webserver in the world (https://qbixserver.com)

35 points by EGreg 1 day ago | 36 comments | View on ycombinator

pshirshov 1 minute ago |

> 1060 req/s

Nice! I remember 2010 when a single-core pentium 4 was happily doing 18k RPS with Glassfish. Ten more years of progress and you can match that!

nzeid 1 minute ago |

> php-fpm re-bootstraps the framework on every request (10–50ms)

What is the setup/benchmark that caused you to see this?

dreadnip 26 minutes ago |

People have been using pcntl_fork to speed up PHP code since the 90s. It seems good on paper, can produce an "impressive" demo and falls apart quickly on real world projects and use cases. This is nothing more than LLM slop/psychosis.

dmitrijbelikov 39 minutes ago |

You should look at Workerman

tommica 41 minutes ago |

I love the idea of being able to remove the webserver from my stack, and be able to give that job to php too. Less deps!

mschuster91 25 minutes ago |

s/you built/you spent LLM tokens to build/g

The general idea makes sense. PHP, particularly modern Java-style PHP, is notorious for loading sometimes thousands of files for every single request. I think there's opcache enabled by default, so the load on the filesystem is reduced by quite a bit, but even opcache still needs to do some sort of parsing for each request that comes in.

LoganDark about 1 hour ago |

You don't need your database on a dedicated server. Not sure why the comparison table claims "$30 + DB server" when your web server is a perfectly good server already.

dingdingdang about 1 hour ago |

I for one do not get the hate, nobody needs to use/or-waste-time-commenting on this project if they have no need/want. However, I do agree that it needs some more contributors on-board alongside with a couple months more support and bug squashing. And yes: better rewrite that website without the clanger involved in the wording! ;)

On a positive note: the performance is genuinely impressive.. what does it take to unlock this performance if I'm NOT running one of the big "usual" frameworks? The devil is always in the detail, best get some practical advice up on exactly what needs to happen with a medium piece of custom code to get it to said max performance.

mpalmer about 2 hours ago |

I'm confused why the copy you generated repeatedly boasts "no nginx, no Redis" as if those things don't exist independently of application servers for a reason, and as if building something that doesn't need these things (when deployed as a single instance) is particularly notable.

"no Docker" - so what? Docker is a tool. Running containers on Linux has extremely low overhead. No idea what this is about.

You didn't spend the effort to decorate the slop with your rationale for these choices, so I see no evidence that you built any of this.

bawolff about 1 hour ago |

[dead]

etchalon about 1 hour ago |

I haven't used PHP as a daily workhorse in a decade, so I guess I don't understand why I would want a web server in pure PHP? Nginx exists.

BatchJob about 1 hour ago |

You can see the slop through the headline. No need to click. Posts like this are turning the internet into a trash pile. Nobody needs this slop, abandonware.

Heres the template:

"I" <--- prompted some LLM

"built" <--- to generate code for a

"fastest" <-- insert specious claim here

"PHP server" <-- thing

"And I prompted the LLM to build a website" <---- link

Im sorry folks but this just doesnt cut it anymore. I dont think it ever did.