Sha256: 6e5a608f8ad744b94202d612f0dfce5e45d9fdccc33a5ec9b801225936aa4f1e

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

class <%= @name.camelize %>Bench < SortedBench

  setup do
    N = 1_000_000
  end

  mark "alternative 1" do
    i = 0

    while (i += 1) <= N
      a = "1".to_sym
    end
  end

  mark "alternative 2" do
    i = 0

    while (i += 1) <= N
      a = :"1"
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lizarb-1.0.4 lib/dev_system/dev/controllers/generators/bench_generator/controller.rb.erb