derailed_benchmarks 1.3.6 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +7 -1
  4. data/README.md +70 -2
  5. data/Rakefile +2 -0
  6. data/bin/derailed +1 -0
  7. data/derailed_benchmarks.gemspec +4 -1
  8. data/gemfiles/rails_5_1.gemfile +2 -0
  9. data/gemfiles/rails_5_2.gemfile +2 -0
  10. data/gemfiles/rails_6_0.gemfile +2 -0
  11. data/gemfiles/rails_git.gemfile +19 -0
  12. data/lib/derailed_benchmarks.rb +20 -0
  13. data/lib/derailed_benchmarks/auth_helper.rb +2 -0
  14. data/lib/derailed_benchmarks/auth_helpers/devise.rb +2 -0
  15. data/lib/derailed_benchmarks/core_ext/kernel_require.rb +7 -2
  16. data/lib/derailed_benchmarks/load_tasks.rb +138 -0
  17. data/lib/derailed_benchmarks/require_tree.rb +3 -1
  18. data/lib/derailed_benchmarks/stats_from_dir.rb +99 -0
  19. data/lib/derailed_benchmarks/stats_in_file.rb +53 -0
  20. data/lib/derailed_benchmarks/tasks.rb +70 -115
  21. data/lib/derailed_benchmarks/version.rb +3 -1
  22. data/test/derailed_benchmarks/core_ext/kernel_require_test.rb +3 -0
  23. data/test/derailed_benchmarks/require_tree_test.rb +2 -0
  24. data/test/derailed_benchmarks/stats_from_dir_test.rb +101 -0
  25. data/test/derailed_test.rb +2 -0
  26. data/test/fixtures/require/child_one.rb +1 -1
  27. data/test/fixtures/require/child_two.rb +1 -1
  28. data/test/fixtures/require/parent_one.rb +2 -1
  29. data/test/fixtures/require/raise_child.rb +2 -0
  30. data/test/fixtures/require/relative_child.rb +2 -0
  31. data/test/fixtures/require/relative_child_two.rb +4 -0
  32. data/test/fixtures/stats/significant/loser.bench.txt +100 -0
  33. data/test/fixtures/stats/significant/winner.bench.txt +100 -0
  34. data/test/integration/tasks_test.rb +9 -0
  35. data/test/rails_app/Rakefile +2 -0
  36. data/test/rails_app/app/controllers/application_controller.rb +2 -0
  37. data/test/rails_app/app/controllers/authenticated_controller.rb +2 -0
  38. data/test/rails_app/app/controllers/pages_controller.rb +2 -0
  39. data/test/rails_app/app/helpers/application_helper.rb +2 -0
  40. data/test/rails_app/app/helpers/authenticated_helper.rb +2 -0
  41. data/test/rails_app/app/models/user.rb +2 -0
  42. data/test/rails_app/config.ru +2 -0
  43. data/test/rails_app/config/application.rb +2 -0
  44. data/test/rails_app/config/boot.rb +3 -1
  45. data/test/rails_app/config/environment.rb +4 -0
  46. data/test/rails_app/config/environments/development.rb +2 -0
  47. data/test/rails_app/config/environments/production.rb +2 -0
  48. data/test/rails_app/config/environments/test.rb +2 -0
  49. data/test/rails_app/config/initializers/backtrace_silencers.rb +2 -0
  50. data/test/rails_app/config/initializers/devise.rb +2 -0
  51. data/test/rails_app/config/initializers/inflections.rb +2 -0
  52. data/test/rails_app/config/initializers/mime_types.rb +2 -0
  53. data/test/rails_app/config/initializers/secret_token.rb +2 -0
  54. data/test/rails_app/config/initializers/session_store.rb +2 -0
  55. data/test/rails_app/config/routes.rb +2 -0
  56. data/test/rails_app/db/migrate/20141210070547_devise_create_users.rb +2 -0
  57. data/test/rails_app/db/schema.rb +2 -0
  58. data/test/rails_app/perf.rake +2 -0
  59. data/test/rails_app/script/rails +2 -0
  60. data/test/support/integration_case.rb +2 -0
  61. data/test/test_helper.rb +6 -2
  62. metadata +30 -4
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RelativeChildTwo
4
+ end
@@ -0,0 +1,100 @@
1
+ 9.590142 0.831269 10.457801 ( 11.437769)
2
+ 9.836019 0.837319 10.728024 ( 11.792425)
3
+ 9.889497 0.837097 10.762795 ( 11.747066)
4
+ 9.532349 0.835770 10.407767 ( 11.343758)
5
+ 9.498824 0.821246 10.366225 ( 11.282013)
6
+ 9.531201 0.834812 10.412715 ( 11.330127)
7
+ 9.583804 0.830178 10.449280 ( 11.384867)
8
+ 9.681340 0.834776 10.553697 ( 11.496842)
9
+ 9.629079 0.820234 10.487276 ( 11.406677)
10
+ 9.616845 0.818370 10.481193 ( 11.395825)
11
+ 9.738706 0.825397 10.600923 ( 11.541978)
12
+ 9.613132 0.827242 10.477559 ( 11.406065)
13
+ 9.486763 0.818159 10.342470 ( 11.305299)
14
+ 9.590618 0.833308 10.468615 ( 11.428548)
15
+ 9.725126 0.842955 10.604727 ( 11.580922)
16
+ 9.598757 0.846951 10.491222 ( 11.462324)
17
+ 9.484803 0.836242 10.366269 ( 11.328111)
18
+ 9.591107 0.818305 10.455931 ( 11.381660)
19
+ 9.745620 0.841107 10.623715 ( 11.572584)
20
+ 9.670502 0.826673 10.535566 ( 11.464770)
21
+ 9.573957 0.825235 10.439166 ( 11.358507)
22
+ 9.468308 0.817744 10.330541 ( 11.240717)
23
+ 9.799312 0.833922 10.670213 ( 11.645225)
24
+ 9.575413 0.828039 10.444712 ( 11.366111)
25
+ 9.632808 0.828399 10.506581 ( 11.439761)
26
+ 9.599766 0.829294 10.467003 ( 11.427869)
27
+ 9.521930 0.828257 10.388242 ( 11.347915)
28
+ 9.842608 0.815513 10.694427 ( 11.667158)
29
+ 9.590377 0.837459 10.467418 ( 11.433524)
30
+ 9.729984 0.819101 10.587020 ( 11.539660)
31
+ 9.540025 0.819396 10.396442 ( 11.314444)
32
+ 9.615953 0.827258 10.479946 ( 11.414527)
33
+ 9.572009 0.824862 10.438432 ( 11.362800)
34
+ 9.612657 0.818645 10.476568 ( 11.385235)
35
+ 9.755889 0.823267 10.615302 ( 11.545301)
36
+ 9.493372 0.813202 10.345646 ( 11.254617)
37
+ 9.529610 0.816457 10.391484 ( 11.305237)
38
+ 9.575646 0.828898 10.449636 ( 11.374993)
39
+ 9.533278 0.828915 10.405592 ( 11.347798)
40
+ 9.692731 0.845925 10.577313 ( 11.545701)
41
+ 9.662406 0.835481 10.543032 ( 11.511367)
42
+ 9.588803 0.834782 10.468166 ( 11.427231)
43
+ 9.696038 0.832612 10.573877 ( 11.545533)
44
+ 9.612567 0.833363 10.491381 ( 11.410244)
45
+ 9.471584 0.836005 10.352883 ( 11.303213)
46
+ 9.682906 0.829932 10.558423 ( 11.466843)
47
+ 9.676123 0.825750 10.548111 ( 11.468789)
48
+ 9.509686 0.826678 10.380435 ( 11.290658)
49
+ 9.552683 0.826631 10.421387 ( 11.337799)
50
+ 9.579964 0.829423 10.447095 ( 11.358198)
51
+ 9.506519 0.812635 10.357147 ( 11.313867)
52
+ 9.654363 0.839408 10.531093 ( 11.515562)
53
+ 9.576167 0.833579 10.447897 ( 11.421267)
54
+ 9.498507 0.826285 10.370417 ( 11.336780)
55
+ 9.758637 0.842156 10.645638 ( 11.595915)
56
+ 9.635031 0.836329 10.516094 ( 11.475492)
57
+ 9.934052 0.825471 10.794286 ( 11.812346)
58
+ 9.652537 0.821982 10.520060 ( 11.434903)
59
+ 9.526788 0.820300 10.384780 ( 11.306397)
60
+ 9.473180 0.812507 10.329689 ( 11.233813)
61
+ 9.862016 0.841529 10.757393 ( 11.734586)
62
+ 9.534627 0.821267 10.392666 ( 11.313970)
63
+ 9.640884 0.837997 10.515254 ( 11.489616)
64
+ 9.535812 0.826216 10.407273 ( 11.318032)
65
+ 9.588703 0.851935 10.476997 ( 11.462256)
66
+ 9.574569 0.834756 10.454909 ( 11.404434)
67
+ 9.650073 0.839516 10.535755 ( 11.488113)
68
+ 9.551275 0.822510 10.415396 ( 11.378195)
69
+ 9.627255 0.829954 10.500136 ( 11.458503)
70
+ 9.560385 0.814457 10.419578 ( 11.333235)
71
+ 9.572809 0.819290 10.438854 ( 11.349594)
72
+ 9.660163 0.824722 10.530198 ( 11.443437)
73
+ 9.661319 0.837408 10.550881 ( 11.512634)
74
+ 9.637423 0.837322 10.520727 ( 11.432594)
75
+ 9.664915 0.825478 10.526599 ( 11.464716)
76
+ 9.644935 0.814938 10.505644 ( 11.424535)
77
+ 9.799771 0.835598 10.671993 ( 11.613622)
78
+ 9.791496 0.840368 10.676233 ( 11.643770)
79
+ 9.760101 0.850254 10.648067 ( 11.619884)
80
+ 9.784358 0.829651 10.658058 ( 11.632889)
81
+ 9.727932 0.844568 10.616464 ( 11.578881)
82
+ 9.776381 0.847439 10.663001 ( 11.648257)
83
+ 9.839221 0.835333 10.714699 ( 11.670378)
84
+ 9.697873 0.836432 10.570815 ( 11.541265)
85
+ 9.867105 0.836122 10.741859 ( 11.681261)
86
+ 9.675377 0.826509 10.539536 ( 11.465271)
87
+ 9.703541 0.830895 10.578611 ( 11.502074)
88
+ 9.717583 0.832110 10.586737 ( 11.531415)
89
+ 9.784151 0.842351 10.662311 ( 11.647167)
90
+ 9.741646 0.832834 10.612608 ( 11.580701)
91
+ 9.687384 0.798745 10.525026 ( 11.493736)
92
+ 9.698579 0.851183 10.586010 ( 11.588731)
93
+ 9.712651 0.823867 10.573837 ( 11.540969)
94
+ 9.657543 0.829349 10.524768 ( 11.443846)
95
+ 9.675987 0.807980 10.521943 ( 11.451106)
96
+ 9.744757 0.817850 10.600094 ( 11.535379)
97
+ 9.683474 0.836913 10.557015 ( 11.525771)
98
+ 9.922540 0.843157 10.805096 ( 11.808377)
99
+ 9.696813 0.821768 10.554695 ( 11.464342)
100
+ 9.760965 0.836511 10.636968 ( 11.594082)
@@ -0,0 +1,100 @@
1
+ 9.558387 0.795543 10.392696 ( 11.309311)
2
+ 9.524045 0.803011 10.364301 ( 11.318477)
3
+ 9.534609 0.804759 10.383564 ( 11.340585)
4
+ 9.535700 0.800444 10.373048 ( 11.289682)
5
+ 9.532372 0.794646 10.371722 ( 11.287656)
6
+ 9.556350 0.822103 10.425949 ( 11.413659)
7
+ 9.586525 0.824110 10.456246 ( 11.429651)
8
+ 9.551907 0.830509 10.428443 ( 11.411978)
9
+ 9.518711 0.834491 10.398652 ( 11.376422)
10
+ 9.569772 0.827570 10.442956 ( 11.413585)
11
+ 9.618950 0.829319 10.485139 ( 11.440848)
12
+ 9.556727 0.807981 10.401758 ( 11.328267)
13
+ 9.480701 0.804683 10.322360 ( 11.245781)
14
+ 9.563369 0.801410 10.409686 ( 11.334188)
15
+ 9.493082 0.805298 10.335983 ( 11.248441)
16
+ 9.681861 0.803602 10.524930 ( 11.456107)
17
+ 9.614529 0.781155 10.444055 ( 11.364476)
18
+ 9.597825 0.806409 10.442217 ( 11.365743)
19
+ 9.538346 0.813941 10.388972 ( 11.346084)
20
+ 9.538091 0.808328 10.391165 ( 11.346197)
21
+ 9.502600 0.812638 10.360783 ( 11.306602)
22
+ 9.571149 0.826238 10.449697 ( 11.411387)
23
+ 9.531260 0.821429 10.390722 ( 11.532200)
24
+ 9.611447 0.783734 10.431579 ( 11.351863)
25
+ 9.533522 0.806067 10.384192 ( 11.296454)
26
+ 9.586843 0.820340 10.444013 ( 11.383357)
27
+ 9.615441 0.804255 10.456321 ( 11.385184)
28
+ 9.462530 0.803438 10.302507 ( 11.223665)
29
+ 9.676985 0.789649 10.511461 ( 11.427901)
30
+ 9.574692 0.816601 10.427670 ( 11.374204)
31
+ 9.596892 0.803796 10.437442 ( 11.362358)
32
+ 9.562942 0.815001 10.415687 ( 11.383593)
33
+ 9.622502 0.804110 10.470848 ( 11.488275)
34
+ 9.766782 0.828892 10.632272 ( 11.635267)
35
+ 9.612909 0.804247 10.455650 ( 11.421374)
36
+ 9.537415 0.805782 10.390754 ( 11.294518)
37
+ 9.763286 0.805568 10.614687 ( 11.533764)
38
+ 9.507627 0.806313 10.350967 ( 11.299277)
39
+ 9.469710 0.803944 10.312100 ( 11.232190)
40
+ 9.535007 0.795200 10.371960 ( 11.292289)
41
+ 9.530755 0.797043 10.372644 ( 11.289316)
42
+ 9.588961 0.806621 10.431681 ( 11.368492)
43
+ 9.592512 0.808849 10.446866 ( 11.359820)
44
+ 9.653610 0.803463 10.501491 ( 11.419194)
45
+ 9.547770 0.812003 10.405405 ( 11.368690)
46
+ 9.682181 0.812963 10.530854 ( 11.485025)
47
+ 9.491677 0.807396 10.344595 ( 11.281067)
48
+ 9.587365 0.813596 10.442915 ( 11.394766)
49
+ 9.569528 0.814968 10.421925 ( 11.395829)
50
+ 9.499610 0.806958 10.342308 ( 11.266410)
51
+ 9.470981 0.802210 10.311858 ( 11.228286)
52
+ 9.562924 0.794929 10.395599 ( 11.322258)
53
+ 9.601453 0.810256 10.456259 ( 11.374217)
54
+ 9.505371 0.799272 10.354669 ( 11.279456)
55
+ 9.457992 0.795362 10.289520 ( 11.205184)
56
+ 9.628120 0.787671 10.453407 ( 11.377989)
57
+ 9.627611 0.805838 10.470388 ( 11.399739)
58
+ 9.675034 0.812966 10.532779 ( 11.515440)
59
+ 9.612906 0.807182 10.457964 ( 11.434272)
60
+ 9.480996 0.803877 10.325013 ( 11.265876)
61
+ 9.717399 0.823376 10.577638 ( 11.569749)
62
+ 9.665028 0.809491 10.511645 ( 11.488256)
63
+ 9.512832 0.805858 10.363675 ( 11.339722)
64
+ 9.654066 0.807307 10.506755 ( 11.426100)
65
+ 9.865550 0.794908 10.703626 ( 11.618194)
66
+ 9.652618 0.793610 10.493186 ( 11.419415)
67
+ 9.499487 0.796346 10.341364 ( 11.250758)
68
+ 9.544258 0.797515 10.385862 ( 11.284281)
69
+ 9.739863 0.794279 10.570723 ( 11.509588)
70
+ 9.487554 0.785309 10.316760 ( 11.233325)
71
+ 9.481721 0.803731 10.329705 ( 11.255686)
72
+ 9.466643 0.802025 10.313663 ( 11.234516)
73
+ 9.565479 0.798706 10.406513 ( 11.374955)
74
+ 9.546849 0.818211 10.409684 ( 11.368566)
75
+ 9.559145 0.813582 10.418666 ( 11.401304)
76
+ 9.547626 0.787676 10.380384 ( 11.305801)
77
+ 9.731920 0.806463 10.576084 ( 11.499545)
78
+ 9.634309 0.804944 10.477565 ( 11.398455)
79
+ 9.663389 0.797418 10.499369 ( 11.418504)
80
+ 9.741374 0.818880 10.597056 ( 11.575796)
81
+ 9.683985 0.804469 10.527844 ( 11.457434)
82
+ 9.739006 0.808335 10.587852 ( 11.513780)
83
+ 9.761998 0.818945 10.618427 ( 11.614032)
84
+ 9.737508 0.819736 10.593885 ( 11.588014)
85
+ 9.735949 0.821038 10.595284 ( 11.552597)
86
+ 9.750022 0.814069 10.601283 ( 11.567239)
87
+ 9.700983 0.801116 10.542112 ( 11.471005)
88
+ 9.720313 0.798207 10.555314 ( 11.473235)
89
+ 9.685407 0.811225 10.534452 ( 11.467112)
90
+ 9.677940 0.809071 10.526291 ( 11.447495)
91
+ 9.609120 0.813429 10.467227 ( 11.372680)
92
+ 9.712403 0.810281 10.560867 ( 11.485852)
93
+ 9.748022 0.817132 10.603028 ( 11.522460)
94
+ 9.737389 0.801790 10.576720 ( 11.522855)
95
+ 9.709541 0.795349 10.542238 ( 11.544047)
96
+ 9.658660 0.819237 10.515718 ( 11.520783)
97
+ 9.765426 0.829642 10.632481 ( 11.615062)
98
+ 9.731822 0.809695 10.578871 ( 11.558062)
99
+ 9.575340 0.800450 10.421430 ( 11.318465)
100
+ 9.682845 0.796365 10.515529 ( 11.435012)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
  require 'shellwords'
3
5
 
@@ -25,6 +27,13 @@ class TasksTest < ActiveSupport::TestCase
25
27
  result
26
28
  end
27
29
 
30
+ test 'library_branches' do
31
+ skip unless ENV['USING_RAILS_GIT']
32
+
33
+ env = { "TEST_COUNT" => 10, "DERAILED_SCRIPT_COUNT" => 2, "SHAS_TO_TEST" => "3054e1d584e7eca110c69a1f8423f2e0866abbf9,80f989aecece1a2b1830e9c953e5887421b52d3c"}
34
+ puts rake "perf:library", { env: env }
35
+ end
36
+
28
37
  test 'hitting authenticated devise apps' do
29
38
  env = { "PATH_TO_HIT" => "authenticated", "USE_AUTH" => "true", "TEST_COUNT" => "2" }
30
39
  result = rake 'perf:test', env: env
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Add your own tasks in files placed in lib/tasks ending in .rake,
2
4
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class ApplicationController < ActionController::Base
2
4
  if respond_to?(:before_filter) && !respond_to?(:before_action)
3
5
  class << self
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class AuthenticatedController < ApplicationController
2
4
  before_action :authenticate_user!
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class PagesController < ApplicationController
2
4
  http_basic_authenticate_with name: "admin", password: "secret", only: :secret
3
5
 
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApplicationHelper
2
4
  end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AuthenticatedHelper
2
4
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class User < ActiveRecord::Base
2
4
  # Include default devise modules. Others available are:
3
5
  # :confirmable, :lockable, :timeoutable and :omniauthable
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This file is used by Rack-based servers to start the application.
2
4
 
3
5
  require ::File.expand_path('../config/environment', __FILE__)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require File.expand_path('../boot', __FILE__)
2
4
 
3
5
  require "active_model/railtie"
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
  gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
5
 
4
6
  if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
7
+ ENV['BUNDLE_GEMFILE'] ||= gemfile
6
8
  require 'bundler'
7
9
  Bundler.setup
8
10
  end
@@ -1,5 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load the rails application
2
4
  require File.expand_path('../application', __FILE__)
3
5
 
4
6
  # Initialize the rails application
7
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
8
+
5
9
  Dummy::Application.initialize!
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Dummy::Application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Dummy::Application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Dummy::Application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Use this hook to configure devise mailer, warden hooks and so forth.
2
4
  # Many of these configuration options can be set straight in your model.
3
5
  Devise.setup do |config|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Add new inflection rules using the following format
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Add new mime types for use in respond_to blocks:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  # Your secret key for verifying the integrity of signed cookies.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Be sure to restart your server when you modify this file.
2
4
 
3
5
  Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Dummy::Application.routes.draw do
2
4
  devise_for :users
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  inherited_class = Rails.version < "5" ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
2
4
  class DeviseCreateUsers < inherited_class
3
5
  def change
@@ -1,4 +1,6 @@
1
1
  # encoding: UTF-8
2
+ # frozen_string_literal: true
3
+
2
4
  # This file is auto-generated from the current state of the database. Instead
3
5
  # of editing this file, please use the migrations feature of Active Record to
4
6
  # incrementally modify your database, and then regenerate this schema definition.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  $LOAD_PATH << File.expand_path("../../../lib", __FILE__)
2
4
 
3
5
  require 'derailed_benchmarks'
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
2
4
  # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
5
 
4
6
  APP_PATH = File.expand_path('../../config/application', __FILE__)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Define a bare test case to use with Capybara
2
4
  class ActiveSupport::IntegrationCase < ActiveSupport::TestCase
3
5
  # include Capybara::DSL
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
  require 'bundler/setup'
3
5
 
@@ -26,7 +28,9 @@ require "capybara/rails"
26
28
  Capybara.default_driver = :rack_test
27
29
  Capybara.default_selector = :css
28
30
 
29
- # Run any available migration
31
+ require_relative "rails_app/config/environment"
32
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../rails_app/db/migrate", __dir__)]
33
+
30
34
  if Rails.gem_version >= Gem::Version.new('5.2.0')
31
35
  ActiveRecord::MigrationContext
32
36
  .new(File.expand_path("../rails_app/db/migrate/", __FILE__))
@@ -55,4 +59,4 @@ end
55
59
 
56
60
  def rails_app_path(name = "")
57
61
  root_path("test/rails_app").join(name)
58
- end
62
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derailed_benchmarks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-23 00:00:00.000000000 Z
11
+ date: 2019-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: heapy
@@ -114,6 +114,20 @@ dependencies:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0.19'
117
+ - !ruby/object:Gem::Dependency
118
+ name: ruby-statistics
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '2.1'
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '2.1'
117
131
  - !ruby/object:Gem::Dependency
118
132
  name: capybara
119
133
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +185,7 @@ dependencies:
171
185
  version: '3'
172
186
  - - "<"
173
187
  - !ruby/object:Gem::Version
174
- version: '5'
188
+ version: '6'
175
189
  type: :development
176
190
  prerelease: false
177
191
  version_requirements: !ruby/object:Gem::Requirement
@@ -181,7 +195,7 @@ dependencies:
181
195
  version: '3'
182
196
  - - "<"
183
197
  - !ruby/object:Gem::Version
184
- version: '5'
198
+ version: '6'
185
199
  - !ruby/object:Gem::Dependency
186
200
  name: appraisal
187
201
  requirement: !ruby/object:Gem::Requirement
@@ -217,21 +231,29 @@ files:
217
231
  - gemfiles/rails_5_1.gemfile
218
232
  - gemfiles/rails_5_2.gemfile
219
233
  - gemfiles/rails_6_0.gemfile
234
+ - gemfiles/rails_git.gemfile
220
235
  - lib/derailed_benchmarks.rb
221
236
  - lib/derailed_benchmarks/auth_helper.rb
222
237
  - lib/derailed_benchmarks/auth_helpers/devise.rb
223
238
  - lib/derailed_benchmarks/core_ext/kernel_require.rb
239
+ - lib/derailed_benchmarks/load_tasks.rb
224
240
  - lib/derailed_benchmarks/require_tree.rb
241
+ - lib/derailed_benchmarks/stats_from_dir.rb
242
+ - lib/derailed_benchmarks/stats_in_file.rb
225
243
  - lib/derailed_benchmarks/tasks.rb
226
244
  - lib/derailed_benchmarks/version.rb
227
245
  - test/derailed_benchmarks/core_ext/kernel_require_test.rb
228
246
  - test/derailed_benchmarks/require_tree_test.rb
247
+ - test/derailed_benchmarks/stats_from_dir_test.rb
229
248
  - test/derailed_test.rb
230
249
  - test/fixtures/require/child_one.rb
231
250
  - test/fixtures/require/child_two.rb
232
251
  - test/fixtures/require/parent_one.rb
233
252
  - test/fixtures/require/raise_child.rb
234
253
  - test/fixtures/require/relative_child.rb
254
+ - test/fixtures/require/relative_child_two.rb
255
+ - test/fixtures/stats/significant/loser.bench.txt
256
+ - test/fixtures/stats/significant/winner.bench.txt
235
257
  - test/integration/tasks_test.rb
236
258
  - test/rails_app/Rakefile
237
259
  - test/rails_app/app/assets/javascripts/authenticated.js
@@ -306,12 +328,16 @@ summary: Benchmarks designed to performance test your ENTIRE site
306
328
  test_files:
307
329
  - test/derailed_benchmarks/core_ext/kernel_require_test.rb
308
330
  - test/derailed_benchmarks/require_tree_test.rb
331
+ - test/derailed_benchmarks/stats_from_dir_test.rb
309
332
  - test/derailed_test.rb
310
333
  - test/fixtures/require/child_one.rb
311
334
  - test/fixtures/require/child_two.rb
312
335
  - test/fixtures/require/parent_one.rb
313
336
  - test/fixtures/require/raise_child.rb
314
337
  - test/fixtures/require/relative_child.rb
338
+ - test/fixtures/require/relative_child_two.rb
339
+ - test/fixtures/stats/significant/loser.bench.txt
340
+ - test/fixtures/stats/significant/winner.bench.txt
315
341
  - test/integration/tasks_test.rb
316
342
  - test/rails_app/Rakefile
317
343
  - test/rails_app/app/assets/javascripts/authenticated.js