grntest 1.7.1 → 1.7.2

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: 44cf9927ecd7ae571341f3eace1b1c385a7c0bff54580152c49b506fa615392a
4
+ data.tar.gz: e61fa58c6eabab76c080ccb058a1750f9ca1d97c147ceb44b8e1f38a4ee3cf1b
5
5
  SHA512:
6
- metadata.gz: 79e28ea7a29e3b6a2bbed57c80d5f284dbf737e91d9963ff3b7c8063dfb1b850021f65a66a589f182d76aab5b3d6e1ce91d877d0634d76b0f16d3164df8cea35
7
- data.tar.gz: 6d2ed0c3743e99d7ec2219c80618ff5f3959389bb675fe49f747d579bcd413c0fc42aa3e3e61fbff82848b953a8828386eb139ec47089fb9ada556ea9370f6d1
6
+ metadata.gz: 0d1224453444660d89607d63f5993b0c2079d9a5f6550a651aac42bcbce89b4449c18e833023d018a25dca1445147817a3fa00a81595a49972b909007a939b37
7
+ data.tar.gz: 505fbbc841a6ce1fbc59a2cb507145db60f359d78d49b4179b754156734817035ba85fe19bbd9c47ffd0495c16a3d9c9f1b9dd6b3bb3130cec2e14765f12142d
data/doc/text/news.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # News
2
2
 
3
+ ## 1.7.2: 2024-02-06
4
+
5
+ ### Improvements
6
+
7
+ * arrow: Added support for empty result.
8
+
9
+ * reporter: benchmark-json: Added support for reporting memory leak
10
+ information.
11
+
12
+ * reporter: benchmark-json: Added interface and in/out types to
13
+ benchmark name.
14
+
3
15
  ## 1.7.1: 2024-02-05
4
16
 
5
17
  ### Improvements
@@ -66,6 +66,13 @@ 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)
@@ -76,11 +83,14 @@ module Grntest
76
83
 
77
84
  def on_test_finish(worker, result)
78
85
  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
86
+ result.benchmarks.each do |benchmark|
87
+ print(",") unless @first_benchmark
88
+ @first_benchmark = false
89
+ puts
90
+ name = "#{@tester.interface}: " +
91
+ "#{@tester.input_type}|#{@tester.output_type}: " +
92
+ "#{worker.suite_name}/#{result.test_name}"
93
+ print(<<-JSON.chomp)
84
94
  {
85
95
  "name": #{name.to_json},
86
96
  "run_name": #{benchmark.name.to_json},
@@ -93,8 +103,6 @@ module Grntest
93
103
  }
94
104
  JSON
95
105
  end
96
- print(benchmarks.join(",\n"))
97
- @first_benchmark = false
98
106
  end
99
107
 
100
108
  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.2"
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou