tomasklatt/dto-performance-comparison

Performance comparison between SpatieDTO, own written DTOs and raw data (associative arrays)

1.0.3 2022-09-15 08:39 UTC

This package is auto-updated.

Last update: 2024-05-15 12:28:30 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.

Example of result in Linux terminal