Browse Source

ManyFunctions performance test: replace xor with correct exp operator

cl-refactor
Paweł Bylica 10 years ago
parent
commit
d9ebbfde48
  1. 424
      test/ManyFunctions.sol
  2. 4
      test/ManyFunctionsGenerator.py
  3. 2
      test/vmPerformanceTestFiller.json

424
test/ManyFunctions.sol

File diff suppressed because it is too large

4
test/ManyFunctionsGenerator.py

@ -7,14 +7,14 @@ i = 1
template = """
function right{0}(uint seed) returns (uint) {{
var r = nextRand(seed);
if (r >= 2^{2})
if (r >= 2**{2})
return right{1}(r);
return left{1}(r);
}}
function left{0}(uint seed) returns (uint) {{
var r = nextRand(nextRand(seed));
if (r >= 2^{2})
if (r >= 2**{2})
return left{1}(r);
return right{1}(r);
}}

2
test/vmPerformanceTestFiller.json

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save