duel 0.1.3 → 0.1.5

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.
data/sig/duel/worker.rbs CHANGED
@@ -1,11 +1,11 @@
1
1
  module Duel
2
2
  # A worker process: loads one version of the code and the candidate's
3
- # benchmarks, and answers the runner's requests, one JSON object a line.
3
+ # benchmarks, and answers the runner's requests (see Message).
4
4
  # @api private
5
5
  class Worker
6
6
  type hello = { "benchmarks" => Array[Definition::summary], "metrics" => Array[Metric::spec], "ruby" => String,
7
7
  "memory" => bool, "profiler" => bool, "yjit" => bool, "extensions" => Hash[String, String],
8
- "gem_dirs" => Array[String] }
8
+ "twice" => Hash[String, Array[String]], "gem_dirs" => Array[String] }
9
9
 
10
10
  type ok = { "ok" => true }
11
11
 
@@ -24,6 +24,7 @@ module Duel
24
24
  @specs: Array[Metric::spec]
25
25
  @benchmarks: Hash[String, Definition]
26
26
  @hooks: Hash[Symbol, Array[hook]]
27
+ @before: Array[String]
27
28
  @harnesses: Hash[String, Harness]
28
29
 
29
30
  def self.main: (String version_root, String candidate_root, String control, ?String? config_path) -> void
@@ -31,6 +32,13 @@ module Duel
31
32
  # The native extensions loaded, by feature, at their real paths.
32
33
  def self.extensions: (?Array[String] features, ?Array[String] load_path) -> Hash[String, String]
33
34
 
35
+ # Those of +features+ loaded from more than one file, by feature, at
36
+ # their real paths, in the order they loaded.
37
+ def self.twice: (Array[String] features, ?Array[String] load_path) -> Hash[String, Array[String]]
38
+
39
+ # The native extensions loaded, by feature, at their real paths.
40
+ def self.loaded: (Array[String] features, Array[String] load_path) -> Hash[String, Array[String]]
41
+
34
42
  # The directories gems are installed in, as real paths ending in "/".
35
43
  def self.gem_dirs: (?Array[String] dirs) -> Array[String]
36
44
 
@@ -44,7 +52,7 @@ module Duel
44
52
  def self.yjit?: () -> bool
45
53
 
46
54
  def initialize: (?Array[singleton(Metric)] plugin_metrics, ?Hash[String, Hash[Symbol, untyped]] measures,
47
- ?hooks: Hash[Symbol, Array[hook]]) -> void
55
+ ?hooks: Hash[Symbol, Array[hook]], ?before: Array[String]) -> void
48
56
 
49
57
  # Closes its metrics, last first, as it ends.
50
58
  def close: () -> void
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Berlin
@@ -57,6 +57,7 @@ files:
57
57
  - lib/duel/init.rb
58
58
  - lib/duel/json_report.rb
59
59
  - lib/duel/lock.rb
60
+ - lib/duel/message.rb
60
61
  - lib/duel/metric.rb
61
62
  - lib/duel/native.rb
62
63
  - lib/duel/process_sample.rb
@@ -84,6 +85,7 @@ files:
84
85
  - sig/duel/init.rbs
85
86
  - sig/duel/json_report.rbs
86
87
  - sig/duel/lock.rbs
88
+ - sig/duel/message.rbs
87
89
  - sig/duel/metric.rbs
88
90
  - sig/duel/native.rbs
89
91
  - sig/duel/process_sample.rbs
@@ -120,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
122
  - !ruby/object:Gem::Version
121
123
  version: '0'
122
124
  requirements: []
123
- rubygems_version: 4.0.23
125
+ rubygems_version: 4.0.24
124
126
  specification_version: 4
125
127
  summary: 'Performance regression guards: fail when a change makes your code slower'
126
128
  test_files: []