Performance Comparison Test: AELF vs Ethereum

aelf’s performance on executing smart contracts is thousands of times faster than that of Ethereum

ælf
ælf
May 12 · 3 min read

1. Test Case and Code

2. Machine Configuration

Test Enviornment:
OS=ubuntu 16.04
QEMU Virtual CPU, 2 CPU, 2 logical and 2 physical cores
CPU MHz: 2194.916; cache size : 16384 KB
aelf Test Environment:BenchmarkDotNet=v0.11.5
.NET Core SDK=2.2.203
[Host] : .NET Core 2.2.4 (CoreCLR 4.6.27521.02, CoreFX 4.6.27521.01), 64bit RyuJIT DEBUG

3. Test Results

3.1 EVM

3.2 AELF

3.2.1 LoopDivAdd10M

public override DoubleValue LoopDivAdd(DivAddTestInput input)
{
var r = input.X;
for (uint i = 0; i < input.N; i++)
{
r /= input.Y;
r += input.K;
}
return new DoubleValue {Value = r};
}
new DivAddTestInput()
{
X = 100,
Y = 300,
K = 500,
N = 10000000
}

3.2.2 LoopExpNop1M

public override Int32Value LoopExpNop(PerformanceTesteInput input)
{
for (uint i = 0; i < input.N; i++)
{
}
return new Int32Value {Value = input.Seed};
}
new PerformanceTesteInput()
{
Exponent = 0,
Seed = _executeResult,
N = 1000000
}

aelf

ælf, the next breakthrough in Blockchain.

Thanks to Mappo.

ælf

Written by

ælf

ælf, the next breakthrough in Blockchain.

aelf

aelf

ælf, the next breakthrough in Blockchain.