Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a1fb62f8
Commit
a1fb62f8
authored
Jan 19, 2021
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a rake task `benchmark:banzai`
parent
ef5aab72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
lib/tasks/benchmark.rake
lib/tasks/benchmark.rake
+11
-0
spec/benchmarks/banzai_benchmark.rb
spec/benchmarks/banzai_benchmark.rb
+2
-0
No files found.
lib/tasks/benchmark.rake
0 → 100644
View file @
a1fb62f8
# 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
spec/benchmarks/banzai_benchmark.rb
View file @
a1fb62f8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment