frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

100M-Row Challenge with PHP

https://github.com/tempestphp/100-million-row-challenge
62•brentroose•3h ago

Comments

brentroose•3h ago
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 :)

gib444•59m ago
> 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

That's a huge improvement! How much was low hanging fruit unrelated to the PHP interpreter itself, out of curiosity? (E.g. parallelism, faster SQL queries etc)

brentroose•36m ago
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

tiffanyh•24m ago
Aren’t these optimizations less about PHP, and more about optimizing how your using the database.
user3939382•45m ago
exec(‘c program that does the parsing’);

Where do I get my prize? ;)

brentroose•38m ago
The FAQ states that solutions like FFI are not allowed because the goal is to solve it with PHP :)
Tade0•34m ago
Pitch this to whoever is in charge of performance at Wordpress.

A Wordpress instance will happily take over 20 seconds to fully load if you disable cache.

embedding-shape•21m ago
Microbenchmarks are very different from optimizing performance in real applications in wide use though, they could do great on this specific benchmark but still have no clue about how to actually make something large like Wordpress to perform OK out of the box.
spiderfarmer•1h ago
Awesome. I’ll be following this. I’ll probably learn a ton.
pxtail•1h ago
Side note - I wasn't aware that there is active collectors scene for Elephpants, awesome!

https://elephpant.me/

t1234s•28m ago
Elephpants should be for second and third place. First place should be the double-clawed hammer.
thih9•17m ago
Excellent project. My favorites: the joker, php storm, phplashy, Molly.
Retr0id•48m ago
How large is a sample 100M row file in bytes? (I tried to run the generator locally but my php is not bleeding-edge enough)
brentroose•36m ago
Around 7GB
tveita•32m ago
> Also, the generator will use a seeded randomizer so that, for local development, you work on the same dataset as others

Except that the generator script generates dates relative to time() ?

Never Buy A .online Domain

https://www.0xsid.com/blog/online-tld-is-pain
138•ssiddharth•37m ago•37 comments

Danish government agency to ditch Microsoft software (2025)

https://therecord.media/denmark-digital-agency-microsoft-digital-independence
352•robtherobber•3h ago•206 comments

Show HN: A real-time strategy game that AI agents can play

https://llmskirmish.com/
105•__cayenne__•4h ago•34 comments

How to fold the Blade Runner origami unicorn (1996)

https://web.archive.org/web/20011104015933/www.linkclub.or.jp/~null/index_br.html
62•exvi•2d ago•0 comments

100M-Row Challenge with PHP

https://github.com/tempestphp/100-million-row-challenge
64•brentroose•3h ago•16 comments

I'm helping my dog vibe code games

https://www.calebleak.com/posts/dog-game/
990•cleak•20h ago•320 comments

AIs can't stop recommending nuclear strikes in war game simulations

https://www.newscientist.com/article/2516885-ais-cant-stop-recommending-nuclear-strikes-in-war-ga...
29•ceejayoz•1h ago•23 comments

LLM=True

https://blog.codemine.be/posts/2026/20260222-be-quiet/
156•avh3•5h ago•104 comments

Claude Code Remote Control

https://code.claude.com/docs/en/remote-control
151•empressplay•6h ago•107 comments

Event Horizon Labs (YC W24) Is Hiring

https://www.ycombinator.com/companies/event-horizon-labs/jobs/xGQicps-founding-infrastructure-eng...
1•ocolegro•2h ago

Pi – A minimal terminal coding harness

https://pi.dev
462•kristianpaul•16h ago•221 comments

Turing Completeness of GNU find

https://arxiv.org/abs/2602.20762
79•todsacerdoti•8h ago•15 comments

Mercury 2: Fast reasoning LLM powered by diffusion

https://www.inceptionlabs.ai/blog/introducing-mercury-2
266•fittingopposite•15h ago•107 comments

Show HN: Moonshine Open-Weights STT models – higher accuracy than WhisperLargev3

https://github.com/moonshine-ai/moonshine
275•petewarden•16h ago•65 comments

Japanese Death Poems

https://www.secretorum.life/p/japanese-death-poems-part-3
74•NaOH•2d ago•21 comments

Mac mini will be made at a new facility in Houston

https://www.apple.com/newsroom/2026/02/apple-accelerates-us-manufacturing-with-mac-mini-production/
555•haunter•16h ago•557 comments

Cl-kawa: Scheme on Java on Common Lisp

https://github.com/atgreen/cl-kawa
56•varjag•3d ago•14 comments

Hacking an old Kindle to display bus arrival times

https://www.mariannefeng.com/portfolio/kindle/
299•mengchengfeng•18h ago•75 comments

I pitched a roller coaster to Disneyland at age 10 in 1978

https://wordglyph.xyz/one-piece-at-a-time
495•wordglyph•1d ago•179 comments

Nearby Glasses

https://github.com/yjeanrenaud/yj_nearbyglasses
373•zingerlio•20h ago•161 comments

Show HN: Scheme-langserver – Digest incomplete code with static analysis

https://github.com/ufo5260987423/scheme-langserver
15•ufo5260987423•1d ago•0 comments

Show HN: Emdash – Open-source agentic development environment

https://github.com/generalaction/emdash
177•onecommit•20h ago•62 comments

Confusables.txt and NFKC disagree on 31 characters

https://paultendo.github.io/posts/unicode-confusables-nfkc-conflict/
3•pimterry•2d ago•0 comments

Steel Bank Common Lisp

https://www.sbcl.org/
234•tosh•19h ago•97 comments

Amazon accused of widespread scheme to inflate prices across the economy

https://www.thebignewsletter.com/p/amazon-busted-for-widespread-price
532•toomuchtodo•13h ago•194 comments

Half million 'Words with Spaces' missing from dictionaries

https://www.linguabase.org/words-with-spaces.html
91•gligierko•1d ago•170 comments

Cell Service for the Fairly Paranoid

https://www.cape.co/
128•0xWTF•15h ago•122 comments

Running RISC-V in a VM to test my snaps

https://blog.popey.com/2026/02/running-risc-v-in-a-vm-to-test-my-snaps/
13•jandeboevrie•3d ago•0 comments

Anthropic Drops Flagship Safety Pledge

https://time.com/7380854/exclusive-anthropic-drops-flagship-safety-pledge/
449•cwwc•12h ago•214 comments

Meta problem with URPF our bundle in Boca raton

https://metafixthis.com/
47•synthesis5x•1d ago•5 comments