Ruby exceptions are 4400 times faster than ActiveRecord::Base#create
12-Nov-2016 3057
Big thanks to Robert Pankowecki who created the original gist and to Piotr Szotkowski who provided even more data. The gist was originally created as part of our Fearless Refactoring: Rails Controllers bookwhere Ruby exceptions are suggested as one of the possible techniques of the controller communication with service objects.
Ruby exceptions are 4400 times faster than ActiveRecord::Base#create #ruby #rubydeveloper #rubyonrails #Ruby #exceptions #are #4400 #times #faster #than #ActiveRecord::Base#create #activerecord::base#create https://rubyonrails.ba/link/ruby-exceptions-are-4400-times-faster-than-activerecord-base-create