We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84cdb4 commit 3e2727dCopy full SHA for 3e2727d
test/controllers/documents_benchmark_test_b.rb
@@ -0,0 +1,23 @@
1
+require 'test_helper'
2
+
3
+class DocumentsControllerTest < ActionController::TestCase
4
+ test "index" do
5
+ get :index
6
+ assert_equal 200, response.status
7
+ end
8
+end
9
10
+class DocumentsIntegrationTest < ActionDispatch::IntegrationTest
11
12
+ get '/documents'
13
14
15
16
17
+Minitest.run_one_method(DocumentsIntegrationTest, 'test_index')
18
+Minitest.run_one_method(DocumentsControllerTest, 'test_index')
19
+StackProf.run(mode: :cpu, out: 'stackprof.dump') do
20
+ 3000.times do
21
22
23
0 commit comments