File: perf.rake

package info (click to toggle)
ruby-derailed-benchmarks 1.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 760 kB
  • sloc: ruby: 1,317; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

$LOAD_PATH << File.expand_path("../../../lib", __FILE__)

require 'derailed_benchmarks'
require 'derailed_benchmarks/tasks'

if ENV['AUTH_CUSTOM_USER']
  DerailedBenchmarks.auth.user = -> { User.first_or_create!(email: "user@example.com", password: 'password') }
end