metallizzer/laravel-bench 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

metallizzer/laravel-bench

Composer 安装命令:

composer require metallizzer/laravel-bench

包简介

Benchmark tool for Laravel

README 文档

README

Latest Version on Packagist Software License Total Downloads

The metallizzer/laravel-bench package provides tool to compare different functions inside your Laravel app.

Installation

You can install the package via composer:

composer require --dev metallizzer/laravel-bench

Next, you must publish the assets from this package.

php artisan vendor:publish --provider="Metallizzer\Bench\BenchServiceProvider" --tag="bench-assets"

Optionally, you can publish the config file of the package.

php artisan vendor:publish --provider="Metallizzer\Bench\BenchServiceProvider" --tag="config"

This is the content that will be published to config/bench.php

return [
    /*
     * The benchmark page will be available on this path.
     */
    'path' => '/bench',

    /*
     * By default this package will only run in local development.
     * Do not change this, unless you know what your are doing.
     */
    'enabled' => env('APP_ENV') === 'local',

    /*
     * The maximum execution time, in seconds. If set to zero, no time limit is imposed.
     */
    'max_execution_time' => 0,
];

Usage

By default this package will only run in a local environment.

Visit /bench in your local environment of your app to view the benchmark page.

You can also run benchmarks as artisan command

php artisan bench:run

Use with passing benchmark class name

php artisan bench:run --benchmark="Benchmark\Class"

To run all available benchmarks just issue

php artisan bench:run --all

To create a new command, use the bench:make Artisan command.

php artisan bench:make

This command will create a new benchmark class in the app/Benchmarks directory.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固