Benchmark
How fast is Clear?
Initial bootstrapping
Clear magic is built on compile time. Therefore, the impact on loading time is very limited. Clear can be used for example into web function (lambda function, google cloud function) application without any problem.
The only overhead is the connection to the database; Clear allocate by default 5 connections to PostgreSQL. In the case of mono-fiber web-function projects, you may want to reduce the connection pool to 1 only:
Another good performance improvement would be to connect through PGBouncer instead of directly to the database.
Query and fetching benchmark
Here is a simple benchmark comparing the different layers of Clear and how they impact the performance, over a 100k row very simple table:
Against the competition
While being a bit outdated, a benchmark of the competition has been done here.
Clear stands in the middle of the crowd, being slightly slower than some other ORM over select
methods.
More noticeably, Clear performs 5 to 8x faster than Ruby's ActiveRecord !
Last updated