duel 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AGENT_PROMPT.md +2 -2
- data/CHANGELOG.md +203 -1
- data/README.md +41 -1
- data/docs/ci.md +170 -76
- data/docs/configuration.md +38 -2
- data/docs/how-it-works.md +18 -9
- data/docs/plugins.md +23 -0
- data/lib/duel/across.rb +1 -6
- data/lib/duel/baseline.rb +8 -7
- data/lib/duel/cli.rb +96 -28
- data/lib/duel/comment.rb +296 -0
- data/lib/duel/config.rb +124 -4
- data/lib/duel/context.rb +33 -34
- data/lib/duel/control.rb +52 -0
- data/lib/duel/init.rb +255 -20
- data/lib/duel/lane.rb +734 -0
- data/lib/duel/lock.rb +34 -4
- data/lib/duel/memory.rb +14 -5
- data/lib/duel/metric.rb +97 -26
- data/lib/duel/native.rb +199 -32
- data/lib/duel/platform.rb +31 -0
- data/lib/duel/process_sample.rb +74 -49
- data/lib/duel/resource.rb +71 -42
- data/lib/duel/result.rb +165 -0
- data/lib/duel/rubies.rb +21 -3
- data/lib/duel/runner.rb +33 -1044
- data/lib/duel/spawn.rb +327 -0
- data/lib/duel/summary.rb +21 -15
- data/lib/duel/templates/duel.gitlab-ci.yml.erb +8 -19
- data/lib/duel/templates/perf-caller.yml.erb +43 -0
- data/lib/duel/templates/perf-comment-caller.yml.erb +42 -0
- data/lib/duel/templates/perf-comment.yml.erb +61 -44
- data/lib/duel/templates/perf.yml.erb +143 -7
- data/lib/duel/testing.rb +3 -0
- data/lib/duel/version.rb +1 -1
- data/lib/duel/worker.rb +13 -4
- data/lib/duel/worker_process.rb +142 -0
- data/lib/duel.rb +35 -3
- data/sig/duel/cli.rbs +19 -0
- data/sig/duel/comment.rbs +97 -0
- data/sig/duel/config.rbs +57 -2
- data/sig/duel/context.rbs +4 -31
- data/sig/duel/control.rbs +27 -0
- data/sig/duel/init.rbs +95 -1
- data/sig/duel/lane.rbs +202 -0
- data/sig/duel/lock.rbs +8 -1
- data/sig/duel/memory.rbs +1 -1
- data/sig/duel/metric.rbs +53 -10
- data/sig/duel/native.rbs +109 -9
- data/sig/duel/platform.rbs +13 -0
- data/sig/duel/process_sample.rbs +7 -9
- data/sig/duel/resource.rbs +28 -9
- data/sig/duel/result.rbs +164 -0
- data/sig/duel/rubies.rbs +4 -0
- data/sig/duel/runner.rbs +6 -460
- data/sig/duel/spawn.rbs +111 -0
- data/sig/duel/summary.rbs +6 -3
- data/sig/duel/worker_process.rbs +90 -0
- data/sig/duel.rbs +17 -3
- metadata +121 -105
data/sig/duel/spawn.rbs
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
module Duel
|
|
2
|
+
# Starts a process with its output in a log, or pipes for its input and
|
|
3
|
+
# output, and gives the Child to wait for it and stop it by: with
|
|
4
|
+
# Process.spawn's redirects, or through Open3 where spawn can't redirect
|
|
5
|
+
# or wait (JRuby on Windows).
|
|
6
|
+
# @api private
|
|
7
|
+
module Spawn
|
|
8
|
+
# How a process starts: Directly, or ThroughOpen3.
|
|
9
|
+
type starter = singleton(Directly) | singleton(ThroughOpen3)
|
|
10
|
+
|
|
11
|
+
REDIRECTS: bool
|
|
12
|
+
WAITS: bool
|
|
13
|
+
SHELL: Regexp
|
|
14
|
+
COPY_WAIT: Integer
|
|
15
|
+
CHUNK: Integer
|
|
16
|
+
LOG_LINES: Integer
|
|
17
|
+
STARTER: starter
|
|
18
|
+
|
|
19
|
+
# A process started, to wait for and stop.
|
|
20
|
+
class Child
|
|
21
|
+
GONE: Array[singleton(SystemCallError)]
|
|
22
|
+
|
|
23
|
+
attr_reader pid: Integer
|
|
24
|
+
|
|
25
|
+
@pid: Integer
|
|
26
|
+
@waiter: Thread?
|
|
27
|
+
@group: bool
|
|
28
|
+
@windows: bool
|
|
29
|
+
|
|
30
|
+
def initialize: (Integer pid, ?Thread? waiter, ?group: bool, ?windows: bool) -> void
|
|
31
|
+
|
|
32
|
+
# The thread whose value is how it ended (a Process::Status).
|
|
33
|
+
def waiter: () -> Thread
|
|
34
|
+
|
|
35
|
+
# Waits for it on a thread from now on: returns itself.
|
|
36
|
+
def detach: () -> self
|
|
37
|
+
|
|
38
|
+
def alive?: () -> bool
|
|
39
|
+
|
|
40
|
+
# Waits for it, and returns how it ended, and its peak memory where
|
|
41
|
+
# that can be told.
|
|
42
|
+
def wait: () -> [Integer?, Integer?, Integer?]
|
|
43
|
+
|
|
44
|
+
# Sends it +signal+: on Windows, kills it with what it started.
|
|
45
|
+
def signal: (String signal) -> void
|
|
46
|
+
|
|
47
|
+
# Kills it, with what it started where that can be told, and waits
|
|
48
|
+
# for it to end.
|
|
49
|
+
def kill: () -> void
|
|
50
|
+
|
|
51
|
+
# Waits up to +seconds+ for it to end, then kills it.
|
|
52
|
+
def stop: (Numeric seconds) -> void
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Starts a process with Process.spawn, given its redirects and pipes.
|
|
56
|
+
module Directly
|
|
57
|
+
# Starts +command+, its output and errors in +log+.
|
|
58
|
+
def self.logged: (Hash[String, String?] env, Array[String] command, log: String, mode: String, **untyped options) -> Child
|
|
59
|
+
|
|
60
|
+
# Starts +command+ with a pipe each way: its Child, its input and its
|
|
61
|
+
# output.
|
|
62
|
+
def self.piped: (Hash[String, String?] env, Array[String] command, ?group: bool, **untyped options) -> [Child, IO, IO]
|
|
63
|
+
|
|
64
|
+
# Starts +command+, its output this process's.
|
|
65
|
+
def self.started: (Hash[String, String?] env, Array[String] command, **untyped options) -> Child
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Starts a process through Open3, as Directly does.
|
|
69
|
+
module ThroughOpen3
|
|
70
|
+
def self.logged: (Hash[String, String?] env, Array[String] command, log: String, mode: String, **untyped options) -> Child
|
|
71
|
+
|
|
72
|
+
def self.piped: (Hash[String, String?] env, Array[String] command, ?group: bool, **untyped options) -> [Child, IO, IO]
|
|
73
|
+
|
|
74
|
+
def self.started: (Hash[String, String?] env, Array[String] command, **untyped options) -> Child
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# How a process that failed ended: its exit status, or the signal that
|
|
78
|
+
# killed it.
|
|
79
|
+
def self.why: (Integer? code, Integer? signal) -> String
|
|
80
|
+
|
|
81
|
+
# The end of the log at +path+, for a failure to show.
|
|
82
|
+
def self.tail: (String path) -> String
|
|
83
|
+
|
|
84
|
+
# The log at +path+, opened for a process's output.
|
|
85
|
+
def self.log: (String path, String mode) -> File
|
|
86
|
+
|
|
87
|
+
# Open3's +name+d method, on JRuby on Windows with ENV and the
|
|
88
|
+
# program found.
|
|
89
|
+
def self.open3: (Symbol name, *untyped args, ?jruby_on_windows: bool, **untyped options) ?{ (*untyped) -> untyped } -> untyped
|
|
90
|
+
|
|
91
|
+
# +command+ as Windows runs it, its program found.
|
|
92
|
+
def self.program: (Array[String] command, ?path: String, ?exts: Array[String]) -> Array[String]
|
|
93
|
+
|
|
94
|
+
# +arg+ as a Windows program's command line has it.
|
|
95
|
+
def self.quote: (String arg) -> String
|
|
96
|
+
|
|
97
|
+
# Process.spawn's options that start a process in a group of its own:
|
|
98
|
+
# a process group, or on Windows, a console's.
|
|
99
|
+
def self.group: (?windows: bool) -> ({ pgroup: true } | { new_pgroup: true })
|
|
100
|
+
|
|
101
|
+
# Kills +pid+ and what it started: its process group, or on Windows,
|
|
102
|
+
# its tree of children.
|
|
103
|
+
def self.kill_tree: (Integer pid, ?windows: bool) -> untyped
|
|
104
|
+
|
|
105
|
+
# A thread copying +output+ to +out+, then closing both.
|
|
106
|
+
def self.copy: (IO output, IO out, ?close: bool) -> Thread
|
|
107
|
+
|
|
108
|
+
# A thread whose value is +waiter+'s, once +copy+ is done.
|
|
109
|
+
def self.ended: (Thread waiter, Thread copy, *IO outputs) -> Thread
|
|
110
|
+
end
|
|
111
|
+
end
|
data/sig/duel/summary.rbs
CHANGED
|
@@ -17,6 +17,7 @@ module Duel
|
|
|
17
17
|
# What the heading starts with.
|
|
18
18
|
PASSED_MARK: String
|
|
19
19
|
FAILED_MARK: String
|
|
20
|
+
ACCEPTED_MARK: String
|
|
20
21
|
NEUTRAL_MARK: String
|
|
21
22
|
|
|
22
23
|
# What an unsettled timing means.
|
|
@@ -26,6 +27,7 @@ module Duel
|
|
|
26
27
|
DECIDES: String
|
|
27
28
|
|
|
28
29
|
@note: String?
|
|
30
|
+
@accepted: bool?
|
|
29
31
|
@runner: Runner
|
|
30
32
|
@results: Array[Result]
|
|
31
33
|
@settings: Settings
|
|
@@ -53,7 +55,7 @@ module Duel
|
|
|
53
55
|
def self.changed_counts: (Result result) -> Hash[String, [Float, Float]]
|
|
54
56
|
|
|
55
57
|
def initialize: (Runner runner, Array[Result] results, settings: Settings, baseline: String, candidate: String,
|
|
56
|
-
?note: String?) -> void
|
|
58
|
+
?note: String?, ?accepted: bool?) -> void
|
|
57
59
|
|
|
58
60
|
# The Markdown.
|
|
59
61
|
def markdown: () -> String
|
|
@@ -90,6 +92,9 @@ module Duel
|
|
|
90
92
|
# Every benchmark.
|
|
91
93
|
def table: () -> String?
|
|
92
94
|
|
|
95
|
+
# A table of +rows+ under +header+, without an empty last column.
|
|
96
|
+
def grid: (Array[String] header, Array[Array[String]] rows) -> String
|
|
97
|
+
|
|
93
98
|
# A table's row of +cells+.
|
|
94
99
|
def row: (Array[String] cells) -> String
|
|
95
100
|
|
|
@@ -102,8 +107,6 @@ module Duel
|
|
|
102
107
|
# Each counted measure that changed, an iteration.
|
|
103
108
|
def counts: (Result result) -> String
|
|
104
109
|
|
|
105
|
-
def mb: (Integer bytes) -> String
|
|
106
|
-
|
|
107
110
|
# The first +explained+ regressions, explained.
|
|
108
111
|
def regressions: (Integer explained) -> Array[String]
|
|
109
112
|
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
module Duel
|
|
2
|
+
# A worker process (Duel::Worker) running one version of the code.
|
|
3
|
+
# @api private
|
|
4
|
+
class WorkerProcess
|
|
5
|
+
# A worker's reply to a request (see Worker#handle), parsed from JSON.
|
|
6
|
+
type reply = untyped
|
|
7
|
+
|
|
8
|
+
LIB: String
|
|
9
|
+
POLL: Float
|
|
10
|
+
STOP_WAIT: Integer
|
|
11
|
+
# The gems that are Duel's: Duel, and its plugins.
|
|
12
|
+
DUEL_GEM: Regexp
|
|
13
|
+
|
|
14
|
+
@label: String
|
|
15
|
+
@timeout: Float
|
|
16
|
+
@root: String
|
|
17
|
+
@dir: String
|
|
18
|
+
@env: Hash[String, String?]
|
|
19
|
+
@ruby: String
|
|
20
|
+
@engine: String
|
|
21
|
+
@child: Spawn::Child
|
|
22
|
+
@launch: Array[String]?
|
|
23
|
+
@runs: ProcessSample?
|
|
24
|
+
@description: String
|
|
25
|
+
@extensions: Hash[String, String]
|
|
26
|
+
@twice: Hash[String, Array[String]]
|
|
27
|
+
@gem_dirs: Array[String]
|
|
28
|
+
@socket: UNIXSocket | TCPSocket
|
|
29
|
+
@benchmarks: Hash[String, Definition::summary]
|
|
30
|
+
@metrics: Array[Metric::spec]
|
|
31
|
+
@memory: bool
|
|
32
|
+
@profiler: bool
|
|
33
|
+
@yjit: bool
|
|
34
|
+
|
|
35
|
+
attr_reader label: String
|
|
36
|
+
|
|
37
|
+
attr_reader benchmarks: Hash[String, Definition::summary]
|
|
38
|
+
|
|
39
|
+
attr_reader metrics: Array[Metric::spec]
|
|
40
|
+
|
|
41
|
+
attr_reader memory: bool
|
|
42
|
+
|
|
43
|
+
attr_reader profiler: bool
|
|
44
|
+
|
|
45
|
+
attr_reader yjit: bool
|
|
46
|
+
|
|
47
|
+
# The Ruby it runs on (RUBY_DESCRIPTION).
|
|
48
|
+
attr_reader description: String
|
|
49
|
+
|
|
50
|
+
# The native extensions it loaded, by feature.
|
|
51
|
+
attr_reader extensions: Hash[String, String]
|
|
52
|
+
|
|
53
|
+
# Those it loaded from more than one file, by feature.
|
|
54
|
+
attr_reader twice: Hash[String, Array[String]]
|
|
55
|
+
|
|
56
|
+
# The directories gems are installed in, as real paths ending in "/".
|
|
57
|
+
attr_reader gem_dirs: Array[String]
|
|
58
|
+
|
|
59
|
+
# Where a worker on +ruby+ loads Duel from, ahead of anything else.
|
|
60
|
+
def self.load_path: (String ruby, ?specs: Hash[String, Gem::BasicSpecification]) -> Array[String]
|
|
61
|
+
|
|
62
|
+
def initialize: (String label, String root, String candidate_root, String dir, config_path: String?,
|
|
63
|
+
env: Hash[String, String?], timeout: Float, ruby: String, engine: String, ?unix: bool) -> void
|
|
64
|
+
|
|
65
|
+
# Sends a request, and returns the reply, or raises Failed with its
|
|
66
|
+
# error.
|
|
67
|
+
def request: (String op, String name, **untyped args) -> reply
|
|
68
|
+
|
|
69
|
+
def sample: (String name, Integer n, ?runs: Integer, ?count: bool) -> reply
|
|
70
|
+
|
|
71
|
+
# A run of a process benchmark: its process, fresh, started as this
|
|
72
|
+
# worker was.
|
|
73
|
+
def run: (Definition::process process) -> ProcessSample::sampled
|
|
74
|
+
|
|
75
|
+
# Closing the connection ends the worker. One still running +wait+
|
|
76
|
+
# seconds later is killed.
|
|
77
|
+
def stop: (?wait: Numeric) -> void
|
|
78
|
+
|
|
79
|
+
private
|
|
80
|
+
|
|
81
|
+
def accept: (UNIXServer | TCPServer server, String path) -> (UNIXSocket | TCPSocket)
|
|
82
|
+
|
|
83
|
+
def read: () -> reply
|
|
84
|
+
|
|
85
|
+
# Kills a worker that didn't +what+ within the timeout, and fails.
|
|
86
|
+
def hung: (String what) -> bot
|
|
87
|
+
|
|
88
|
+
def monotonic: () -> Float
|
|
89
|
+
end
|
|
90
|
+
end
|
data/sig/duel.rbs
CHANGED
|
@@ -6,6 +6,11 @@ module Duel
|
|
|
6
6
|
class Error < StandardError
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
+
# What Duel raises when something a run needs fails: a resource that
|
|
10
|
+
# didn't start, a worker that died or hung.
|
|
11
|
+
class Failed < Error
|
|
12
|
+
end
|
|
13
|
+
|
|
9
14
|
# What a benchmark is judged on, if not both its timings and its
|
|
10
15
|
# counts (see DSL#duel).
|
|
11
16
|
type only = :count | :timing
|
|
@@ -166,9 +171,8 @@ module Duel
|
|
|
166
171
|
# @api private
|
|
167
172
|
def self.measured: [T] (bool measuring) { () -> T } -> T
|
|
168
173
|
|
|
169
|
-
# Loads a config file (.duel.rb)
|
|
170
|
-
#
|
|
171
|
-
# @api private
|
|
174
|
+
# Loads a config file (.duel.rb) and returns its configuration, which
|
|
175
|
+
# is Duel.config from then on.
|
|
172
176
|
def self.load_config: (String path) -> Config
|
|
173
177
|
|
|
174
178
|
# Where +method+ is defined ("file:line"), or whose it is.
|
|
@@ -201,6 +205,16 @@ module Duel
|
|
|
201
205
|
# @api private
|
|
202
206
|
def self.plugins: () -> Hash[Symbol, Module & _Plugin]
|
|
203
207
|
|
|
208
|
+
# Whether a server that a plugin starts for a worker can listen on a
|
|
209
|
+
# Unix socket that a worker can reach: not on Windows, nor where Ruby
|
|
210
|
+
# has none. Where it can't, the server listens on a port (see
|
|
211
|
+
# Resource#port).
|
|
212
|
+
def self.unix_sockets?: () -> bool
|
|
213
|
+
|
|
214
|
+
# Whether Duel runs on Windows: for a plugin to do what it does
|
|
215
|
+
# differently there.
|
|
216
|
+
def self.windows?: () -> bool
|
|
217
|
+
|
|
204
218
|
self.@defining_file: String?
|
|
205
219
|
|
|
206
220
|
# The file of benchmarks that called the DSL method running, if one is.
|
metadata
CHANGED
|
@@ -1,130 +1,146 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: duel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Erik Berlin
|
|
7
|
+
- Erik Berlin
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
confidence interval for paired CPU-time ratios and confirmed in fresh processes,
|
|
30
|
-
so it fails on real regressions, not noise.
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: fiddle
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: "1.1"
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ~>
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: "1.1"
|
|
28
|
+
description: "Duel runs your benchmarks on two versions of your code side by side, the baseline (where your branch left main, say) and the candidate, and fails if the candidate is slower at any of them. Timings are judged by a distribution-free confidence interval for paired CPU-time ratios and confirmed in fresh processes, so it fails on real regressions, not noise."
|
|
31
29
|
email:
|
|
32
|
-
- sferik@gmail.com
|
|
30
|
+
- sferik@gmail.com
|
|
33
31
|
executables:
|
|
34
|
-
- duel
|
|
32
|
+
- duel
|
|
35
33
|
extensions: []
|
|
36
34
|
extra_rdoc_files: []
|
|
37
35
|
files:
|
|
38
|
-
- AGENT_PROMPT.md
|
|
39
|
-
- CHANGELOG.md
|
|
40
|
-
- LICENSE
|
|
41
|
-
- README.md
|
|
42
|
-
- docs/README.md
|
|
43
|
-
- docs/benchmarks.md
|
|
44
|
-
- docs/ci.md
|
|
45
|
-
- docs/configuration.md
|
|
46
|
-
- docs/how-it-works.md
|
|
47
|
-
- docs/json.md
|
|
48
|
-
- docs/plugins.md
|
|
49
|
-
- docs/troubleshooting.md
|
|
50
|
-
- exe/duel
|
|
51
|
-
- lib/duel.rb
|
|
52
|
-
- lib/duel/across.rb
|
|
53
|
-
- lib/duel/baseline.rb
|
|
54
|
-
- lib/duel/cli.rb
|
|
55
|
-
- lib/duel/
|
|
56
|
-
- lib/duel/
|
|
57
|
-
- lib/duel/
|
|
58
|
-
- lib/duel/
|
|
59
|
-
- lib/duel/
|
|
60
|
-
- lib/duel/
|
|
61
|
-
- lib/duel/
|
|
62
|
-
- lib/duel/
|
|
63
|
-
- lib/duel/
|
|
64
|
-
- lib/duel/
|
|
65
|
-
- lib/duel/
|
|
66
|
-
- lib/duel/
|
|
67
|
-
- lib/duel/
|
|
68
|
-
- lib/duel/
|
|
69
|
-
- lib/duel/
|
|
70
|
-
- lib/duel/
|
|
71
|
-
- lib/duel/
|
|
72
|
-
- lib/duel/
|
|
73
|
-
- lib/duel/
|
|
74
|
-
- lib/duel/
|
|
75
|
-
- lib/duel/
|
|
76
|
-
- lib/duel/
|
|
77
|
-
- lib/duel/
|
|
78
|
-
- lib/duel/
|
|
79
|
-
- lib/duel/
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
- sig/duel
|
|
90
|
-
- sig/duel/
|
|
91
|
-
- sig/duel/
|
|
92
|
-
- sig/duel/
|
|
93
|
-
- sig/duel/
|
|
94
|
-
- sig/duel/
|
|
95
|
-
- sig/duel/
|
|
96
|
-
- sig/duel/
|
|
97
|
-
- sig/duel/
|
|
98
|
-
- sig/duel/
|
|
99
|
-
- sig/duel/
|
|
100
|
-
- sig/duel/
|
|
101
|
-
- sig/duel/
|
|
102
|
-
- sig/duel/
|
|
103
|
-
- sig/duel/
|
|
104
|
-
- sig/
|
|
105
|
-
|
|
36
|
+
- AGENT_PROMPT.md
|
|
37
|
+
- CHANGELOG.md
|
|
38
|
+
- LICENSE
|
|
39
|
+
- README.md
|
|
40
|
+
- docs/README.md
|
|
41
|
+
- docs/benchmarks.md
|
|
42
|
+
- docs/ci.md
|
|
43
|
+
- docs/configuration.md
|
|
44
|
+
- docs/how-it-works.md
|
|
45
|
+
- docs/json.md
|
|
46
|
+
- docs/plugins.md
|
|
47
|
+
- docs/troubleshooting.md
|
|
48
|
+
- exe/duel
|
|
49
|
+
- lib/duel.rb
|
|
50
|
+
- lib/duel/across.rb
|
|
51
|
+
- lib/duel/baseline.rb
|
|
52
|
+
- lib/duel/cli.rb
|
|
53
|
+
- lib/duel/comment.rb
|
|
54
|
+
- lib/duel/config.rb
|
|
55
|
+
- lib/duel/context.rb
|
|
56
|
+
- lib/duel/control.rb
|
|
57
|
+
- lib/duel/init.rb
|
|
58
|
+
- lib/duel/json_report.rb
|
|
59
|
+
- lib/duel/lane.rb
|
|
60
|
+
- lib/duel/lock.rb
|
|
61
|
+
- lib/duel/memory.rb
|
|
62
|
+
- lib/duel/message.rb
|
|
63
|
+
- lib/duel/metric.rb
|
|
64
|
+
- lib/duel/native.rb
|
|
65
|
+
- lib/duel/platform.rb
|
|
66
|
+
- lib/duel/process_sample.rb
|
|
67
|
+
- lib/duel/profile.rb
|
|
68
|
+
- lib/duel/rake_task.rb
|
|
69
|
+
- lib/duel/resource.rb
|
|
70
|
+
- lib/duel/result.rb
|
|
71
|
+
- lib/duel/rubies.rb
|
|
72
|
+
- lib/duel/runner.rb
|
|
73
|
+
- lib/duel/spawn.rb
|
|
74
|
+
- lib/duel/stats.rb
|
|
75
|
+
- lib/duel/summary.rb
|
|
76
|
+
- lib/duel/templates/benchmark_duel.rb.erb
|
|
77
|
+
- lib/duel/templates/duel.gitlab-ci.yml.erb
|
|
78
|
+
- lib/duel/templates/duel.rb.erb
|
|
79
|
+
- lib/duel/templates/perf-caller.yml.erb
|
|
80
|
+
- lib/duel/templates/perf-comment-caller.yml.erb
|
|
81
|
+
- lib/duel/templates/perf-comment.yml.erb
|
|
82
|
+
- lib/duel/templates/perf.yml.erb
|
|
83
|
+
- lib/duel/testing.rb
|
|
84
|
+
- lib/duel/version.rb
|
|
85
|
+
- lib/duel/worker.rb
|
|
86
|
+
- lib/duel/worker_process.rb
|
|
87
|
+
- sig/duel.rbs
|
|
88
|
+
- sig/duel/across.rbs
|
|
89
|
+
- sig/duel/baseline.rbs
|
|
90
|
+
- sig/duel/cli.rbs
|
|
91
|
+
- sig/duel/comment.rbs
|
|
92
|
+
- sig/duel/config.rbs
|
|
93
|
+
- sig/duel/context.rbs
|
|
94
|
+
- sig/duel/control.rbs
|
|
95
|
+
- sig/duel/init.rbs
|
|
96
|
+
- sig/duel/json_report.rbs
|
|
97
|
+
- sig/duel/lane.rbs
|
|
98
|
+
- sig/duel/lock.rbs
|
|
99
|
+
- sig/duel/memory.rbs
|
|
100
|
+
- sig/duel/message.rbs
|
|
101
|
+
- sig/duel/metric.rbs
|
|
102
|
+
- sig/duel/native.rbs
|
|
103
|
+
- sig/duel/platform.rbs
|
|
104
|
+
- sig/duel/process_sample.rbs
|
|
105
|
+
- sig/duel/profile.rbs
|
|
106
|
+
- sig/duel/rake_task.rbs
|
|
107
|
+
- sig/duel/resource.rbs
|
|
108
|
+
- sig/duel/result.rbs
|
|
109
|
+
- sig/duel/rubies.rbs
|
|
110
|
+
- sig/duel/runner.rbs
|
|
111
|
+
- sig/duel/spawn.rbs
|
|
112
|
+
- sig/duel/stats.rbs
|
|
113
|
+
- sig/duel/summary.rbs
|
|
114
|
+
- sig/duel/testing.rbs
|
|
115
|
+
- sig/duel/version.rbs
|
|
116
|
+
- sig/duel/worker.rbs
|
|
117
|
+
- sig/duel/worker_process.rbs
|
|
118
|
+
- sig/manifest.yaml
|
|
119
|
+
homepage: "https://github.com/sferik/duel-ruby"
|
|
106
120
|
licenses:
|
|
107
|
-
- MIT
|
|
121
|
+
- MIT
|
|
108
122
|
metadata:
|
|
109
|
-
source_code_uri: https://github.com/sferik/duel-ruby
|
|
110
|
-
changelog_uri: https://github.com/sferik/duel-ruby/blob/main/CHANGELOG.md
|
|
111
|
-
bug_tracker_uri: https://github.com/sferik/duel-ruby/issues
|
|
112
|
-
rubygems_mfa_required:
|
|
123
|
+
source_code_uri: "https://github.com/sferik/duel-ruby"
|
|
124
|
+
changelog_uri: "https://github.com/sferik/duel-ruby/blob/main/CHANGELOG.md"
|
|
125
|
+
bug_tracker_uri: "https://github.com/sferik/duel-ruby/issues"
|
|
126
|
+
rubygems_mfa_required: "true"
|
|
113
127
|
rdoc_options: []
|
|
114
128
|
require_paths:
|
|
115
|
-
- lib
|
|
129
|
+
- lib
|
|
116
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
131
|
requirements:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
132
|
+
-
|
|
133
|
+
- ">="
|
|
134
|
+
- !ruby/object:Gem::Version
|
|
135
|
+
version: "3.4"
|
|
121
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
137
|
requirements:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
138
|
+
-
|
|
139
|
+
- ">="
|
|
140
|
+
- !ruby/object:Gem::Version
|
|
141
|
+
version: "0"
|
|
126
142
|
requirements: []
|
|
127
|
-
rubygems_version: 4.0
|
|
143
|
+
rubygems_version: 4.1.0
|
|
128
144
|
specification_version: 4
|
|
129
|
-
summary:
|
|
145
|
+
summary: "Performance regression guards: fail when a change makes your code slower"
|
|
130
146
|
test_files: []
|