Skip to content

Conversation

@raneomik
Copy link

@raneomik raneomik commented Dec 2, 2025

Nette framework addition suggestion

This was referenced Dec 2, 2025
Nette framework addition - readme & config

correct dir version name
@macropay-solutions
Copy link

macropay-solutions commented Dec 4, 2025

Hi. Do you have some benchmarks from your local in comparison with Lumen? We tested this benchmark project and it seems it is influenced by the order of the bench-marked frameworks from the config. So best would be to run one framework at a time and record first test because subsequent tests are faster.

@raneomik
Copy link
Author

raneomik commented Dec 5, 2025

Hi. Do you have some benchmarks from your local in comparison with Lumen? We tested this benchmark project and it seems it is influenced by the order of the bench-marked frameworks from the config. So best would be to run one framework at a time and record first test because subsequent tests are faster.

Hello, okay, here are independent results of lumen-10.0 and nette3.3 (used bash benchmark.sh -t lumen-10.0 and bash benchmark.sh -t nette3.3 - on widows' wsl running bash docker-apache.sh) :

/------- lumen-10.0: benchmarking -------/
wrk -t50 -c500 -d60s http://localhost:888/PHP-Frameworks-Bench/lumen-10.0/public/index.php/hello/index
rps: 2107.89

 Results:               25-12-05T19-21-16
 Compare to:            25-12-05T19-18-50
|-------------------|------------------------:|-------------:|----------:|-------------:|
|framework          |requests per second (rps)|relative (rps)|peak memory|relative (mem)|
|-------------------|------------------------:|-------------:|----------:|-------------:|
|lumen-10.0         |             2,107.89 (-)|           1.0|   0.38 (-)|           1.0|


/------- nette-3.3: benchmarking -------/
wrk -t50 -c500 -d60s http://localhost:888/PHP-Frameworks-Bench/nette-3.3/www/index.php/hello/index
rps: 2694.55

 Results:               25-12-05T19-18-50
 Compare to:            25-12-05T19-18-42
|-------------------|------------------------:|-------------:|----------:|-------------:|
|framework          |requests per second (rps)|relative (rps)|peak memory|relative (mem)|
|-------------------|------------------------:|-------------:|----------:|-------------:|
|nette-3.3          |             2,694.55 (-)|           1.0|   0.87 (-)|           1.0|
```

@marius-ciclistu
Copy link

marius-ciclistu commented Dec 5, 2025

Nice 28.5% faster.

@myaaghubi myaaghubi changed the base branch from main to dev December 9, 2025 12:42
@joanhey
Copy link
Contributor

joanhey commented Dec 10, 2025

This PR fail with Nette:
https://github.com/myaaghubi/PHP-Frameworks-Bench/actions/runs/19876586169/job/57574145574?pr=81#step:9:26

PD: seems that the response only send 33 bytes, not the 34 bytes to pass the tests

@joanhey
Copy link
Contributor

joanhey commented Dec 10, 2025

Normally when fail show:

Hello World!
 2013600:0.021917:008

But Nette show:
Hello World! 8491968:0.059148:236

The https://github.com/myaaghubi/PHP-Frameworks-Bench/blob/main/libs/output_data.php#L4
create a new line always.

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.

4 participants