HackerTrans
TopNewTrendsCommentsPastAskShowJobs

brentroose

no profile record

Submissions

My IKEA clock and software design

stitcher.io
4 points·by brentroose·3 месяца назад·1 comments

100M-Row Challenge with PHP

github.com
186 points·by brentroose·5 месяцев назад·102 comments

Optimizing PHP to process 50k lines per second instead of 30

stitcher.io
2 points·by brentroose·6 месяцев назад·0 comments

Open Source Strategies

tempestphp.com
1 points·by brentroose·6 месяцев назад·0 comments

PHP in 2026

stitcher.io
13 points·by brentroose·6 месяцев назад·0 comments

PHP 8.5

stitcher.io
244 points·by brentroose·8 месяцев назад·190 comments

The State of PHP in 2025

blog.jetbrains.com
6 points·by brentroose·9 месяцев назад·0 comments

comments

brentroose
·5 месяцев назад·discuss
The rules state that FFI and the likes isn't allowed because the goal is to do it in PHP :)
brentroose
·5 месяцев назад·discuss
True, it's a bug that I'm going to fix, but it only impacts local test data sets and not the real benchmark :)
brentroose
·5 месяцев назад·discuss
Around 7GB
brentroose
·5 месяцев назад·discuss
Almost all, actually. I wrote about it here: https://stitcher.io/blog/11-million-rows-in-seconds

A couple of things I did:

- Cursor based pagination - Combining insert statements - Using database transactions to prevent fsync calls - Moving calculations from the database to PHP - Avoiding serialization where possible
brentroose
·5 месяцев назад·discuss
The FAQ states that solutions like FFI are not allowed because the goal is to solve it with PHP :)
brentroose
·5 месяцев назад·discuss
A month ago, I went on a performance quest trying to optimize a PHP script that took 5 days to run. Together with the help of many talented developers, I eventually got it to run in under 30 seconds. This optimization process with so much fun, and so many people pitched in with their ideas; so I eventually decided I wanted to do something more.

That's why I built a performance challenge for the PHP community

The goal of this challenge is to parse 100 million rows of data with PHP, as efficiently as possible. The challenge will run for about two weeks, and at the end there are some prizes for the best entries (amongst the prize is the very sought-after PhpStorm Elephpant, of which we only have a handful left).

I hope people will have fun with it :)
brentroose
·9 месяцев назад·discuss
Out of curiosity: do you know why they pay for it themselves instead of asking their company to do so?