Skip to content

vershart/php-csv-loader-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Loader Benchmark

This project benchmarks different CSV loading libraries in PHP. It supports the following libraries:

  • PhpOffice
  • OpenSpout
  • Vanilla PHP

Requirements

  • PHP >= 8.1
  • Composer

Installation

  1. Clone the repository:

    git clone https://github.com/vershart/csv-loader-benchmark.git
    cd csv-loader-benchmark
  2. Install dependencies:

    composer install

Usage

To run a benchmark, use the following command: sh php bench.php <benchmarkName> <rowCount>

For example, to run the benchmark for PhpOffice with 100 000 rows: sh php bench.php phpoffice 100 000

About

PHP 8.1 CSV Loader benchmarks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages