Skip to content

sinazahed/1-billion-challenge-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

usage

first of all you need to create a dataset, for this purpose run the bash script. you can specify the number of records and threads. you can also specify the name of the output file in bash script.

chmod +x datasetCreator.php
./datasetCreator.php

php -d extension=parallel calculateAverage.php > final.txt

Requirements

This solutions requires a ZTS build of PHP and ext-parallel to be installed for that PHP version.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published