tomasklatt / dto-performance-comparison
Performance comparison between SpatieDTO, own written DTOs and raw data (associative arrays)
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tomasklatt/dto-performance-comparison
Requires
- php: >=8.1
- fakerphp/faker: ^1.20
- spatie/data-transfer-object: ^3.8
- splitbrain/php-cli: dev-master
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-10-15 15:23:37 UTC
README
Compare performance of associative arrays, SpatieDTO and own written DTO.
Installation
This project uses composer.
composer require tomasklatt/dto-performance-comparison
Usage
To test those three ways of passing data in app with default data set just use
bin/dtopc run
To change amount of data of Faker library you can use params -c
or -count
bin/dtopc run -c 10
To add own DTO library just install it via composer and create new runner class extending AbstractRunner.