Skip to content

Commit

Permalink
chore: perf: change result time format
Browse files Browse the repository at this point in the history
  • Loading branch information
danil committed Mar 30, 2016
1 parent c13ebdc commit 5a221ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/benchmark.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fhir_benchmark = (plv8, query)->
t2 = new Date()
{
description: benchmark.discrition
time: "#{t2 - t1} ms"
time: t2 - t1
}

{operations: benchmarks}
Expand Down
2 changes: 1 addition & 1 deletion test/benchmark_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe 'Benchmarking', ->
)
assert.equal(
!!JSON.parse(benchmark[0].fhir_benchmark).operations[0]
.time.match(/[0-9.]+ [a-z]+/),
.time.toString().match(/[0-9.]+/),
true
)

Expand Down

0 comments on commit 5a221ca

Please sign in to comment.