You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Benchmark revamp + run benchmark as part of CI (#3176)
* Organize benchmark gems in a group
Inspired by ruby/json#606
* Reorganize benchmark scripts
Having these in a folder helps because
we can document experiment results in it as well.
And we can edit the require script to raise an error if it takes
longer than a threshold to load faker.
Co-Authored-By: Thiago Araujo <thd.araujo@gmail.com>
* Strict permissions for gh workflows
* Skip eval and avoid generating all generators inside of the benchmark execution
Looping over the constants instead of using `eval` is a more secure approach.
Plus, build the list of generators outside so that we're only benchmarking generator execution.
Co-Authored-By: Thiago Araujo <thd.araujo@gmail.com>
* This was a one-time experiment
* Don't need to keep this around anymore after comparing YML vs JSON
---------
Co-authored-by: Thiago Araujo <thd.araujo@gmail.com>
Copy file name to clipboardExpand all lines: .rubocop.yml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,11 @@ Naming/VariableNumber:
50
50
Description: Use the configured style when numbering symbols, methods and variables.
51
51
Enabled: false
52
52
53
+
Security/Eval:
54
+
Description: The use of eval represents a serious security risk.
55
+
Exclude:
56
+
- 'lib/faker/default/json.rb'
57
+
53
58
Style/AsciiComments:
54
59
Description: This cop checks for non-ascii (non-English) characters in comments.
55
60
Exclude:
@@ -102,11 +107,6 @@ Style/RegexpLiteral:
102
107
- mixed
103
108
AllowInnerSlashes: false
104
109
105
-
Security/Eval:
106
-
Description: The use of eval represents a serious security risk.
107
-
Exclude:
108
-
- 'lib/faker/default/json.rb'
109
-
110
110
Style/IfUnlessModifier:
111
111
Description: Checks for `if` and `unless` statements that would fit on one line if written as modifier `if`/`unless`. The cop also checks for modifier `if`/`unless` lines that exceed the maximum line length.
0 commit comments