Commit a1fb62f8 authored by Brett Walker's avatar Brett Walker

Add a rake task `benchmark:banzai`

parent ef5aab72
# frozen_string_literal: true
return if Rails.env.production?
namespace :benchmark do
desc 'Benchmark | Banzai pipeline/filters'
RSpec::Core::RakeTask.new(:banzai) do |t|
t.pattern = 'spec/benchmarks/banzai_benchmark.rb'
ENV['BENCHMARK'] = '1'
end
end
......@@ -12,6 +12,8 @@ if ENV.key?('BENCHMARK')
#
# Run by:
# BENCHMARK=1 rspec spec/benchmarks/banzai_benchmark.rb
# or
# rake benchmark:banzai
#
RSpec.describe 'GitLab Markdown Benchmark', :aggregate_failures do
include MarkupHelper
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment