Skip to content

Richard-Degenne/activerecord-rspec-benchmark

Repository files navigation

ActiveRecord RSpec benchmark

This dummy project gives a glimpse into the performance discrepencies between different methods of testing ActiveRecord models.

Usage

Prerequisites

  • Ruby 3
  • Docker Compose

Setup

bundle install
docker-compose up -d
bundle exec dotenv rails db:setup:all

#valid? tests

bundle exec dotenv rspec spec/models/user_spec.rb[1:1]

#save! tests

bundle exec dotenv rspec spec/models/user_spec.rb[1:2]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published