mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
10 years ago
57 changed files with 1895 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
/* |
|||
* Basic array read performance |
|||
*/ |
|||
|
|||
function test() { |
|||
var arr = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]; |
|||
var i; |
|||
var ign; |
|||
|
|||
for (i = 0; i < 1e8; i++) { |
|||
ign = arr[7]; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,8 @@ |
|||
function test() |
|||
local arr = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } |
|||
for i=1,1e8 do |
|||
local ign = arr[8] |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,11 @@ |
|||
sub test { |
|||
my @arr = ( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ); |
|||
my $i; |
|||
my $ign; |
|||
|
|||
for ($i = 0; $i < 1e8; $i++) { |
|||
$ign = $arr[7]; |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,8 @@ |
|||
def test(): |
|||
arr = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]; |
|||
i = 0 |
|||
while i < 1e8: |
|||
ign = arr[7] |
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,10 @@ |
|||
def test() |
|||
arr = Array[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] |
|||
i = 0 |
|||
while i < 1e8 do |
|||
ign = arr[7] |
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,18 @@ |
|||
/* |
|||
* Basic array write performance |
|||
*/ |
|||
|
|||
function test() { |
|||
var arr = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]; |
|||
var i; |
|||
|
|||
for (i = 0; i < 1e8; i++) { |
|||
arr[7] = 234; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,8 @@ |
|||
function test() |
|||
local arr = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } |
|||
for i=1,1e8 do |
|||
arr[8] = 234 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,11 @@ |
|||
sub test { |
|||
my @arr = ( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ); |
|||
my $i; |
|||
my $ign; |
|||
|
|||
for ($i = 0; $i < 1e8; $i++) { |
|||
$arr[7] = 234; |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,8 @@ |
|||
def test(): |
|||
arr = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]; |
|||
i = 0 |
|||
while i < 1e8: |
|||
arr[7] = 234 |
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,10 @@ |
|||
def test() |
|||
arr = Array[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] |
|||
i = 0 |
|||
while i < 1e8 do |
|||
arr[7] = 234 |
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,23 @@ |
|||
function test() { |
|||
var x, y, z; |
|||
var i, n; |
|||
|
|||
x = 0xdeadbeef; |
|||
y = 0xcafed00d; |
|||
|
|||
for (i = 0, n = 1e7; i < n; i++) { |
|||
z = x & y; |
|||
z = x | y; |
|||
z = x ^ y; |
|||
z = x << y; |
|||
z = x >> y; |
|||
z = x >>> y; |
|||
z = ~x; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,21 @@ |
|||
/* |
|||
* Basic function call performance. |
|||
* |
|||
* Focuses on the cases where "fast returns" are possible. |
|||
*/ |
|||
|
|||
function test() { |
|||
var i; |
|||
|
|||
function f() { return; } |
|||
|
|||
for (i = 0; i < 1e8; i++) { |
|||
f(); |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,11 @@ |
|||
function test() |
|||
local function f() |
|||
return |
|||
end |
|||
|
|||
for i=1,1e8 do |
|||
f() |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,12 @@ |
|||
sub test { |
|||
my $i; |
|||
|
|||
sub f { return; } |
|||
|
|||
$i = 0; |
|||
for ($i = 0; $i < 1e8; $i++) { |
|||
f(); |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,10 @@ |
|||
def test(): |
|||
def f(): |
|||
return |
|||
|
|||
i = 0 |
|||
while i < 1e8: |
|||
f() |
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,11 @@ |
|||
def test() |
|||
def f() return end |
|||
|
|||
i = 0 |
|||
while i < 1e8 do |
|||
f() |
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,12 @@ |
|||
function test() { |
|||
var i; |
|||
|
|||
for (i = 0; i < 1e8; i++) { |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,6 @@ |
|||
local function test() |
|||
local i = 0 |
|||
while i < 1e8 do i = i + 1 end |
|||
--for i=1,1e8 do end |
|||
end |
|||
test() |
@ -0,0 +1,8 @@ |
|||
sub test { |
|||
my $i; |
|||
|
|||
for ($i = 0; $i < 1e8; $i++) { |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,6 @@ |
|||
def test(): |
|||
i = 0 |
|||
while i < 1e8: |
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,8 @@ |
|||
def test() |
|||
i = 0 |
|||
while i < 1e8 do |
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,13 @@ |
|||
/* |
|||
* Fibonacci test, exercises call handling and recursion |
|||
*/ |
|||
|
|||
function fib(n) { |
|||
return n <= 1 ? n : fib(n - 2) + fib(n - 1); |
|||
} |
|||
|
|||
try { |
|||
print(fib(35)); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,9 @@ |
|||
function fib(n) |
|||
if n <= 1 then |
|||
return n |
|||
else |
|||
return fib(n - 2) + fib(n - 1) |
|||
end |
|||
end |
|||
|
|||
print(fib(35)) |
@ -0,0 +1,9 @@ |
|||
sub fib { |
|||
my $n = shift; |
|||
if ($n <= 1) { |
|||
return $n; |
|||
} else { |
|||
return fib($n - 2) + fib($n - 1); |
|||
} |
|||
} |
|||
print fib(35) . "\n"; |
@ -0,0 +1,7 @@ |
|||
def fib(n): |
|||
if n <= 1: |
|||
return n |
|||
else: |
|||
return fib(n - 2) + fib(n - 1) |
|||
|
|||
print(fib(35)) |
@ -0,0 +1,9 @@ |
|||
def fib(n) |
|||
if n <= 1 then |
|||
return n |
|||
else |
|||
return fib(n - 2) + fib(n - 1) |
|||
end |
|||
end |
|||
|
|||
print(fib(35).to_s + "\n") |
@ -0,0 +1,3 @@ |
|||
// Hello world test for memory testing
|
|||
|
|||
print('Hello world!'); |
@ -0,0 +1,3 @@ |
|||
-- Hello world test for memory testing. |
|||
|
|||
print('hello world!') |
@ -0,0 +1 @@ |
|||
print("Hello world!\n"); |
@ -0,0 +1 @@ |
|||
print('Hello world!') |
@ -0,0 +1 @@ |
|||
print("Hello world!\n"); |
@ -0,0 +1,26 @@ |
|||
function test() { |
|||
var tmp1 = []; |
|||
var tmp2 = []; |
|||
var i, n; |
|||
|
|||
print('build'); |
|||
for (i = 0; i < 1024; i++) { |
|||
tmp1.push(Math.floor(Math.random() * 16).toString(16)) |
|||
} |
|||
tmp1 = tmp1.join(''); |
|||
for (i = 0; i < 1024; i++) { |
|||
tmp2.push(tmp1); |
|||
} |
|||
tmp2 = tmp2.join(''); |
|||
|
|||
print('run'); |
|||
for (i = 0; i < 10000; i++) { |
|||
Duktape.dec('hex', tmp2); |
|||
} |
|||
} |
|||
|
|||
if (typeof Duktape === 'object') { |
|||
test(); |
|||
} else { |
|||
// Ignore on e.g. Rhino
|
|||
} |
@ -0,0 +1,21 @@ |
|||
import math |
|||
import random |
|||
|
|||
def test(): |
|||
tmp1 = [] |
|||
tmp2 = [] |
|||
|
|||
print('build') |
|||
for i in xrange(1024): |
|||
tmp1.append('%x' % math.floor(random.random() * 16)) |
|||
tmp1 = ''.join(tmp1) |
|||
for i in xrange(1024): |
|||
tmp2.append(tmp1) |
|||
tmp2 = ''.join(tmp2) |
|||
|
|||
#print(len(tmp2)) |
|||
print('run') |
|||
for i in xrange(10000): |
|||
ign = tmp2.decode('hex') |
|||
|
|||
test() |
@ -0,0 +1,30 @@ |
|||
function build() { |
|||
var obj = {}; |
|||
|
|||
obj.key1 = 'foo'; |
|||
obj.key2 = 'bar'; |
|||
obj.key3 = 'quux'; |
|||
obj.key4 = 'baz'; |
|||
obj.key5 = 'quuux'; |
|||
obj.key6 = [ 'foo', 'bar', 'quux', 'baz', 'quuux' ]; |
|||
obj.key7 = [ undefined, null, true, 123.456, 1e200, {}, {}, {} ]; |
|||
|
|||
return obj; |
|||
} |
|||
|
|||
function test() { |
|||
var obj; |
|||
var i; |
|||
var ignore; |
|||
|
|||
obj = build(); |
|||
for (i = 0; i < 1e5; i++) { |
|||
ignore = JSON.stringify(obj); |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,22 @@ |
|||
import json |
|||
|
|||
def build(): |
|||
obj = {} |
|||
obj['key1'] = 'foo' |
|||
obj['key2'] = 'bar' |
|||
obj['key3'] = 'quux' |
|||
obj['key4'] = 'baz' |
|||
obj['key5'] = 'quuux' |
|||
obj['key6'] = [ 'foo', 'bar', 'quux', 'baz', 'quuux' ] |
|||
obj['key7'] = [ None, None, True, 123.456, 1e200, {}, {}, {} ] |
|||
|
|||
return obj |
|||
|
|||
def test(): |
|||
obj = build() |
|||
i = 0 |
|||
while i < 1e5: |
|||
ignore = json.dumps(obj) |
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,37 @@ |
|||
function rndAscii(len) { |
|||
var res = []; |
|||
var i; |
|||
for (i = 0; i < len; i++) { |
|||
if (Math.random() < 0.08) { |
|||
res.push(String.fromCharCode(Math.floor(Math.random() * 128))); |
|||
} else { |
|||
res.push(String.fromCharCode(Math.floor(Math.random() * 0x5f) + 0x20)); |
|||
} |
|||
} |
|||
return res.join(''); |
|||
} |
|||
|
|||
function test() { |
|||
var sz = 1; |
|||
|
|||
for (var i = 0; i <= 20; i++) { |
|||
var s = rndAscii(sz); |
|||
var obj = { key: s }; |
|||
var start = Date.now(); |
|||
var ign = JSON.stringify(obj); |
|||
//print(ign);
|
|||
var end = Date.now(); |
|||
var diff = end - start; |
|||
print(sz, start, end, diff, |
|||
diff * 1000 / sz, // microseconds/byte
|
|||
(sz / (1024 * 1024)) / (diff / 1000) // megabytes/second
|
|||
); |
|||
sz *= 2; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,19 @@ |
|||
/* |
|||
* Basic property read performance |
|||
*/ |
|||
|
|||
function test() { |
|||
var obj = { xxx1: 1, xxx2: 2, xxx3: 3, xxx4: 4, foo: 123 }; |
|||
var i; |
|||
var ign; |
|||
|
|||
for (i = 0; i < 1e8; i++) { |
|||
ign = obj.foo; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,8 @@ |
|||
function test() |
|||
local obj = { xxx1 = 1, xxx2 = 2, xxx3 = 3, xxx4 = 4, foo = 123 } |
|||
for i=1,1e8 do |
|||
local ign = obj.foo |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,11 @@ |
|||
sub test { |
|||
my %obj = ( 'xxx1' => 1, 'xxx2' => 2, 'xxx3' => 3, 'xxx4' => 4, 'foo' => 123 ); |
|||
my $i; |
|||
my $ign; |
|||
|
|||
for ($i = 0; $i < 1e8; $i++) { |
|||
$ign = $obj{'foo'}; |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,8 @@ |
|||
def test(): |
|||
obj = { 'xxx1': 1, 'xxx2': 2, 'xxx3': 3, 'xxx4': 4, 'foo': 123 } |
|||
i = 0 |
|||
while i < 1e8: |
|||
ign = obj['foo'] |
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,11 @@ |
|||
def test() |
|||
obj = Hash["xxx1" => 1, "xxx2" => 2, "xxx3" => 3, "xxx4" => 4, "foo" => 123]; |
|||
|
|||
i = 0 |
|||
while i < 1e8 do |
|||
ign = obj['foo'] |
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,18 @@ |
|||
/* |
|||
* Basic property write performance |
|||
*/ |
|||
|
|||
function test() { |
|||
var obj = { xxx1: 1, xxx2: 2, xxx3: 3, xxx4: 4, foo: 123 }; |
|||
var i; |
|||
|
|||
for (i = 0; i < 1e8; i++) { |
|||
obj.foo = 234; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,8 @@ |
|||
function test() |
|||
local obj = { xxx1 = 1, xxx2 = 2, xxx3 = 3, xxx4 = 4, foo = 123 } |
|||
for i=1,1e8 do |
|||
obj.foo = 234 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,10 @@ |
|||
sub test { |
|||
my %obj = ( 'xxx1' => 1, 'xxx2' => 2, 'xxx3' => 3, 'xxx4' => 4, 'foo' => 123 ); |
|||
my $i; |
|||
|
|||
for ($i = 0; $i < 1e8; $i++) { |
|||
$obj{'foo'} = 234; |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,8 @@ |
|||
def test(): |
|||
obj = { 'xxx1': 1, 'xxx2': 2, 'xxx3': 4, 'xxx4': 4, 'foo': 123 } |
|||
i = 0 |
|||
while i < 1e8: |
|||
obj['foo'] = 234 |
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,11 @@ |
|||
def test() |
|||
obj = Hash["xxx1" => 1, "xxx2" => 2, "xxx3" => 3, "xxx4" => 4, "foo" => 123]; |
|||
|
|||
i = 0 |
|||
while i < 1e8 do |
|||
obj['foo'] = 234 |
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,139 @@ |
|||
/* |
|||
* Test bytecode register assignments with object values. Involves only |
|||
* a dispatch and a tval copy for a heap-allocated tval. |
|||
*/ |
|||
|
|||
function test() { |
|||
var a, b, c, d; |
|||
var i; |
|||
|
|||
a = {}; b = {}; c = {}; d = {}; |
|||
|
|||
for (i = 0; i < 1e6; i++) { |
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,132 @@ |
|||
function test() |
|||
local a, b, c, d, i; |
|||
|
|||
a = {} |
|||
b = {} |
|||
c = {} |
|||
d = {} |
|||
|
|||
for i=1,1e6 do |
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,130 @@ |
|||
sub test { |
|||
my $a, $b, $c, $d; |
|||
my $i; |
|||
|
|||
$a = (); $b = (); $c = (); $d = (); |
|||
|
|||
for ($i = 0; $i < 1e6; $i++) { |
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,131 @@ |
|||
def test(): |
|||
a = {} |
|||
b = {} |
|||
c = {} |
|||
d = {} |
|||
|
|||
i = 0 |
|||
while i < 1e6: |
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,130 @@ |
|||
def test() |
|||
a = Hash[]; b = Hash[]; c = Hash[]; d = Hash[] |
|||
|
|||
i = 0 |
|||
while i < 1e6 do |
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,139 @@ |
|||
/* |
|||
* Test bytecode register assignments with plain values. Involves only |
|||
* a dispatch and a tval copy for a non-heap-allocated tval. |
|||
*/ |
|||
|
|||
function test() { |
|||
var a, b, c, d; |
|||
var i; |
|||
|
|||
a = 1; b = 2; c = 3; d = 4; |
|||
|
|||
for (i = 0; i < 1e6; i++) { |
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
|
|||
// 100
|
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b; |
|||
} |
|||
} |
|||
|
|||
try { |
|||
test(); |
|||
} catch (e) { |
|||
print(e.stack || e); |
|||
} |
@ -0,0 +1,132 @@ |
|||
function test() |
|||
local a, b, c, d, i; |
|||
|
|||
a = 1 |
|||
b = 2 |
|||
c = 3 |
|||
d = 4 |
|||
|
|||
for i=1,1e6 do |
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
-- 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
end |
|||
end |
|||
|
|||
test() |
@ -0,0 +1,130 @@ |
|||
sub test { |
|||
my $a, $b, $c, $d; |
|||
my $i; |
|||
|
|||
$a = 1; $b = 2; $c = 3; $d = 4; |
|||
|
|||
for ($i = 0; $i < 1e6; $i++) { |
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
|
|||
# 100 |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
$a = $a; $a = $b; $a = $c; $a = $d; $b = $a; $b = $b; $b = $c; $b = $d; $c = $a; $c = $b; |
|||
} |
|||
} |
|||
|
|||
test(); |
@ -0,0 +1,131 @@ |
|||
def test(): |
|||
a = 1 |
|||
b = 2 |
|||
c = 3 |
|||
d = 4 |
|||
|
|||
i = 0 |
|||
while i < 1e6: |
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
i += 1 |
|||
|
|||
test() |
@ -0,0 +1,130 @@ |
|||
def test() |
|||
a = 1; b = 2; c = 3; d = 4 |
|||
|
|||
i = 0 |
|||
while i < 1e6 do |
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
# 100 |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
a = a; a = b; a = c; a = d; b = a; b = b; b = c; b = d; c = a; c = b |
|||
|
|||
i += 1 |
|||
end |
|||
end |
|||
|
|||
test() |
Loading…
Reference in new issue