Skip to content

Conversation

@xHeaven
Copy link
Contributor

@xHeaven xHeaven commented Feb 10, 2026

Usage

php benchmark.php

Outputs per-language stats (avg, p50, p95, min, max).

Extending

Add a new language fixture by adding a static method to FixtureProvider and register it in all().
For example:

public static function python(): string
{
    return <<<'PYTHON'
    import os
    # ... python code to benchmark
    PYTHON;
}
public static function all(): array
{
    return [
        // ... other languages
        'python' => self::python(),
    ];
}

Other

You can finetune the iteration and warmup count at the bottom of the script.

@brendt brendt merged commit 0a89751 into tempestphp:main Feb 10, 2026
4 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21861270396

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.881%

Totals Coverage Status
Change from base Build 21860645768: 0.0%
Covered Lines: 1657
Relevant Lines: 1784

💛 - Coveralls

@xHeaven xHeaven deleted the benchmark branch February 10, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants