Sha256: b21a873929bca425aedfc7112e0b4ac7621e7a71b0696feddabd1e07374f74d7
Contents?: true
Size: 603 Bytes
Versions: 9
Compression:
Stored size: 603 Bytes
Contents
# A benchmark for testing the terminate statement. system :with_terminate do [8].constant cst0: 127 constant cst1: _b1 [8].inner sig0: _b10000000 inner sig1: _b1 [8].inner :sig2 [8].inner count: 0 timed do !20.ns 100.times do count <= count + 1 !20.ns end end timed do !10.ns sig2 <= cst0 + cst1 sig0 <= sig0 + sig1 !10.ns sig2 <= sig2 + sig1 !10.ns terminate sig0 <= sig0 + sig0 !10.ns sig0 <= sig0 + sig0 !10.ns end end
Version data entries
9 entries across 9 versions & 1 rubygems