https://github.com/realFlowControl/1brc
https://github.com/realFlowControl/1brc
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/realFlowControl/1brc
- Owner: realFlowControl
- License: mit
- Created: 2024-03-12T13:08:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T12:48:18.000Z (12 months ago)
- Last Synced: 2025-02-28T04:44:51.211Z (11 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 36
- Watchers: 3
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1BRC: One Billion Row Challenge in PHP
PHP implementation of Gunnar's 1 billion row challenge:
- https://www.morling.dev/blog/one-billion-row-challenge
- https://github.com/gunnarmorling/1brc
I wrote a blog post about the story that led to this version: [Processing One Billion Rows in PHP!](https://dev.to/realflowcontrol/processing-one-billion-rows-in-php-3eg0)
# Usage
```sh
make average
# or
php createMeasurements.php 1000000000
php -d extension=parallel calculateAverage.php > average.txt
```
# Requirements
This solutions requires a ZTS build of PHP and
[`ext-parallel`](https://github.com/krakjoe/parallel) to be installed for that
PHP version.