Benchmarks for Bref running on AWS Lambda.
- PHP function: a simple PHP function, see
- HTTP application: a simple PHP script that returns
Hello world, see
Average (warm) execution time
Average execution time for a lambda that doesn't do anything.
Number of samples: 100-200
For comparison on a 512M Digital Ocean droplet we get 1ms for "HTTP application" and 6ms for Symfony.
The more RAM, the more CPU power is allocated to the lambda. This is clearly visible when running PHP's official
bench.php runs in 1.3s on a 512M Digital Ocean droplet, in 0.8s on a 2.8Ghz i7 and in 0.6s on a 3.2Ghz i5.
Number of samples: 20
- Symfony's cold start is high at the moment because we do not pre-generate the cache before deploying (it is generated on the first hit). This is an optimization that is planned.
You will need to install dependencies of Bref. Then:
- clone the repository
- create a S3 bucket in
us-east-2and change the bucket name in
Makefile(replace it with yours)
CloudWatch dashboard URL to use to check out the metrics in one place.