grntest 1.7.1 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7175e168334b0747450ac82d996961d56921fd71cb3570dd79c087f1ed12ccb9
4
- data.tar.gz: 374847e51cc75585df02626162347cf1b96d0c774cc65379c7b9e3a782ad5f5a
3
+ metadata.gz: 4333e40f40a3b7f0d255906972e5c0d7ba7ca5c64dc9b25067aeb8229b65b621
4
+ data.tar.gz: 10f51f45c7ef3502666222c5ae9208445a168e5daecf45f703ea7809e5a812b3
5
5
  SHA512:
6
- metadata.gz: 79e28ea7a29e3b6a2bbed57c80d5f284dbf737e91d9963ff3b7c8063dfb1b850021f65a66a589f182d76aab5b3d6e1ce91d877d0634d76b0f16d3164df8cea35
7
- data.tar.gz: 6d2ed0c3743e99d7ec2219c80618ff5f3959389bb675fe49f747d579bcd413c0fc42aa3e3e61fbff82848b953a8828386eb139ec47089fb9ada556ea9370f6d1
6
+ metadata.gz: cc5a1b7ca28af7e531f488c6ebe95418e710badf657dc90167dc824b0f9c61a733ece7438c5fe819de818971c6320b806235f75e10ccc948c6d4e9c001a93899
7
+ data.tar.gz: 30ba97c16f66bd5a1e6ce10a0af01fbd5fce26d3df872362097d815da45b16079a1c47d2a0c839b3cc36588fc9b8e44c8f7758f3dd6e1d47f69f57838c4bd30b
data/doc/text/news.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # News
2
2
 
3
+ ## 1.7.3: 2024-02-20
4
+
5
+ ### Improvements
6
+
7
+ * reporter: benchmark-json: Added support for omission.
8
+
9
+ ## 1.7.2: 2024-02-06
10
+
11
+ ### Improvements
12
+
13
+ * arrow: Added support for empty result.
14
+
15
+ * reporter: benchmark-json: Added support for reporting memory leak
16
+ information.
17
+
18
+ * reporter: benchmark-json: Added interface and in/out types to
19
+ benchmark name.
20
+
3
21
  ## 1.7.1: 2024-02-05
4
22
 
5
23
  ### Improvements
@@ -66,21 +66,34 @@ module Grntest
66
66
  end
67
67
 
68
68
  def on_test_leak(worker, result)
69
+ output, @output = @output, $stderr
70
+ begin
71
+ puts
72
+ report_test(worker, result)
73
+ ensure
74
+ @output = output
75
+ end
69
76
  end
70
77
 
71
78
  def on_test_omission(worker, result)
72
79
  end
73
80
 
81
+ def on_test_omission_suppressed(worker, result)
82
+ end
83
+
74
84
  def on_test_no_check(worker, result)
75
85
  end
76
86
 
77
87
  def on_test_finish(worker, result)
78
88
  return if result.benchmarks.empty?
79
- print(",") unless @first_benchmark
80
- puts
81
- benchmarks = result.benchmarks.collect do |benchmark|
82
- name = "#{worker.suite_name}/#{result.test_name}"
83
- <<-JSON.chomp
89
+ result.benchmarks.each do |benchmark|
90
+ print(",") unless @first_benchmark
91
+ @first_benchmark = false
92
+ puts
93
+ name = "#{@tester.interface}: " +
94
+ "#{@tester.input_type}|#{@tester.output_type}: " +
95
+ "#{worker.suite_name}/#{result.test_name}"
96
+ print(<<-JSON.chomp)
84
97
  {
85
98
  "name": #{name.to_json},
86
99
  "run_name": #{benchmark.name.to_json},
@@ -93,8 +106,6 @@ module Grntest
93
106
  }
94
107
  JSON
95
108
  end
96
- print(benchmarks.join(",\n"))
97
- @first_benchmark = false
98
109
  end
99
110
 
100
111
  def on_suite_finish(worker)
@@ -714,9 +714,8 @@ http {
714
714
  Arrow::BufferInputStream.open(buffer) do |input|
715
715
  while input.tell < content.bytesize
716
716
  reader = Arrow::RecordBatchStreamReader.new(input)
717
- schema = reader.schema
718
- record_batches = reader.to_a
719
- table = Arrow::Table.new(schema, record_batches)
717
+ table = reader.read_all
718
+ schema = table.schema
720
719
  unless normalized.empty?
721
720
  normalized << "=" * 40
722
721
  normalized << "\n"
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.7.1"
17
+ VERSION = "1.7.3"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-02-06 00:00:00.000000000 Z
12
+ date: 2024-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diff-lcs