I’ve come across an odd issue while I was trying to reproduce these results locally.
After I ran both benchmarks directly on my machine (not in docker) I got Sequel 2x faster than ActiveRecord:
- sequel/postgres_discourse - 312 ips
- activerecord/postgres_discourse - 162 ips
While running same benchmarks in a standard way (inside docker) gave me smaller differences in results:
- sequel/postgres - 198 ips
- activerecord/postgres - 153 ips
I am super confused with this. Maybe we are missing something in setup. I have verified benchmark correctness (same SQL query and same string generated) by running it directly on local machine.