Sha256: 3273af37c8c08121b518a08f3f58dde863f6c176b9800900400dcfcae0f71b31

Contents?: true

Size: 268 Bytes

Versions: 35

Compression:

Stored size: 268 Bytes

Contents


# A benchmark for testing conversion of strings to values.
system :with_str2value_bench do
    [8].inner :val
    [64].inner :val64

    timed do
        val <= "01010011".to_value
        !10.ns
        val64 <= ("01010011" * 8).to_value
        !10.ns
    end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
HDLRuby-3.6.2 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.6.1 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.6.0 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.5.1 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.5.0 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.4.0 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.3.4 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.3.3 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.3.1 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.3.0 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.2.0 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.1.0 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-3.0.0 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-2.11.12 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-2.11.11 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-2.11.10 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-2.11.9 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-2.11.8 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-2.11.7 lib/HDLRuby/hdr_samples/with_str2value.rb
HDLRuby-2.11.5 lib/HDLRuby/hdr_samples/with_str2value.rb