Skip to content

Commit

Permalink
benchmark-json-reporter: fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 5, 2024
1 parent 1fd310d commit 73c7271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/grntest/reporters/benchmark-json-reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def initialize(tester)
def on_start(result)
puts(<<-JSON)
{
"context": {"
"context": {
"date": #{Time.now.iso8601.to_json},
"host_name": #{Socket.gethostname.to_json},
"executable": #{@tester.testee.to_json},
Expand Down Expand Up @@ -89,7 +89,7 @@ def on_test_finish(worker, result)
"real_time": #{benchmark.real_elapsed_time},
"cpu_time": #{benchmark.cpu_elapsed_time},
"time_unit": "s",
"items_per_second": #{benchmark.items_per_second},
"items_per_second": #{benchmark.items_per_second}
}
JSON
end
Expand Down

0 comments on commit 73c7271

Please sign in to comment.