Sha256: e4431b0bfe0ea6525ccf58cecc7b16ab5dcf294ca2514e4f34274e9d8def7c94

Contents?: true

Size: 282 Bytes

Versions: 30

Compression:

Stored size: 282 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative 'setup'

puts "regular: #{Country.memsize} bytes"
puts "compact: #{Compact::Country.memsize} bytes"

diff = (Compact::Country.memsize - Country.memsize).to_f / Country.memsize
puts "diff: #{(diff * 100).round(2)}%"

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
frozen_record-0.27.4 benchmark/memory-usage
frozen_record-0.27.3 benchmark/memory-usage
frozen_record-0.27.2 benchmark/memory-usage
frozen_record-0.27.1 benchmark/memory-usage
frozen_record-0.27.0 benchmark/memory-usage
frozen_record-0.26.2 benchmark/memory-usage
frozen_record-0.26.1 benchmark/memory-usage
frozen_record-0.26.0 benchmark/memory-usage
frozen_record-0.25.5 benchmark/memory-usage
frozen_record-0.25.4 benchmark/memory-usage
frozen_record-0.25.3 benchmark/memory-usage
frozen_record-0.25.2 benchmark/memory-usage
frozen_record-0.25.1 benchmark/memory-usage
frozen_record-0.25.0 benchmark/memory-usage
frozen_record-0.24.1 benchmark/memory-usage
frozen_record-0.23.0 benchmark/memory-usage
frozen_record-0.22.2 benchmark/memory-usage
frozen_record-0.22.1 benchmark/memory-usage
frozen_record-0.22.0 benchmark/memory-usage
frozen_record-0.21.1 benchmark/memory-usage