lahaxearnaud / brc-php

Billion row challenge in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Billion row challenge in PHP

Based on this challenge https://github.com/gunnarmorling/1brc

Create the dataset

for i in {1..200}; do cat measurements-5000000.txt >> measurements.txt; done;

Build the project

composer install -o

Run the code

php challenge.php

Results

Test 1:

- Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz 
- OS: Ubuntu 22
- PHP: PHP 8.1
- Time: 2.22 m

Test 2:

- Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz 
- OS: Ubuntu 24
- PHP: PHP 8.3
- Time: 3.38 m

About

Billion row challenge in PHP


Languages

Language:PHP 100.0%