Skip to content

Commit

Permalink
chore: fix memory usage benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Mar 20, 2023
1 parent 516c503 commit 7351866
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benchmarks/memory_usage_benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def allocated_by(entry)
x.compare!
end
entries = report.comparison.entries
expect(entries.map(&:label)).to eq %w[oj_hash oj blueprinter ams]
oj1, oj2, *rest = entries.map(&:label)
expect([oj1, oj2]).to contain_exactly(*%w[oj_hash oj])
expect(rest).to eq %w[blueprinter ams]
expect(allocated_by(entries.first) / allocated_by(entries.last)).to be < 0.365
end

Expand Down

0 comments on commit 7351866

Please sign in to comment.