Skip to content

This project compares the performance and functionality of the Laravel PHP framework and the Echo Golang microframework. The example used is a simple CRUD API. Tech stack: Nginx, PostgreSQL, PgBouncer, PHP 8.4 Laravel 12, Go 1.24 Echo 4.13.4, Docker, Docker Compose.

License

Notifications You must be signed in to change notification settings

sk1t0n/laravel_vs_echo_benchmark

Repository files navigation

laravel_vs_echo_benchmark

This project compares the performance and functionality of the Laravel PHP framework and the Echo Golang microframework. The example used is a simple CRUD API. Tech stack: Nginx, PostgreSQL, PgBouncer, PHP 8.4 Laravel 12, Go 1.24 Echo 4.13.4, Docker, Docker Compose.

I wanted to find libraries for Golang to write less code almost like in PHP. For example for pagination I found upper/db.

Everything is run through Docker Compose with a single command. For load testing I used hey.

screenshot

screenshot2

Start

docker-compose up

Stop

docker-compose down --volumes

Conclusion

Echo is on average 47.5 times faster than Laravel in terms of RPS on a €5/month VPS.

About

This project compares the performance and functionality of the Laravel PHP framework and the Echo Golang microframework. The example used is a simple CRUD API. Tech stack: Nginx, PostgreSQL, PgBouncer, PHP 8.4 Laravel 12, Go 1.24 Echo 4.13.4, Docker, Docker Compose.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published