-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3315 from AElfProject/v1.2.0-rc
v1.2.0 release candidate
- Loading branch information
Showing
2,049 changed files
with
133,227 additions
and
127,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: csharp | ||
sudo: required | ||
mono: none | ||
dotnet: 3.1.102 | ||
dotnet: 6.0.300 | ||
dist: xenial | ||
os: | ||
- linux | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "contract", "contract", "{651F0F6E-86CF-42D2-9110-5F3EAE5704F0}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{26990847-E0A2-4FCC-8C71-267CA77557CD}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{51CE1A9E-63A0-49C6-B820-C8519C94F389}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="src\AElf.ContractDeployer\AElf.ContractDeployer.targets" /> | ||
<Import Project="AElf.ContractTools.targets" /> | ||
<Import Project="src\AElf.ContractDeployer\AElf.ContractDeployer.targets"/> | ||
<Import Project="AElf.ContractTools.targets"/> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Pro.NBench.xUnit" Version="2.0.0" /> | ||
<PackageReference Include="Pro.NBench.xUnit" Version="2.0.0"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\test\AElf.TestBase\AElf.TestBase.csproj" /> | ||
<ProjectReference Include="..\..\test\AElf.TestBase\AElf.TestBase.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
using Xunit; | ||
|
||
[assembly: CollectionBehavior(DisableTestParallelization = true)] | ||
[assembly: CollectionBehavior(DisableTestParallelization = true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
bench/AElf.Benchmark.PerformanceTestContract/AElf.Benchmark.PerformanceTestContract.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 27 additions & 30 deletions
57
bench/AElf.Benchmark.PerformanceTestContract/PerformanceTestContract.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,40 @@ | ||
using System; | ||
using Google.Protobuf.WellKnownTypes; | ||
|
||
namespace AElf.Benchmark.PerformanceTestContract | ||
namespace AElf.Benchmark.PerformanceTestContract; | ||
|
||
public class PerformanceTestContract : PerformanceTestContractContainer.PerformanceTestContractBase | ||
{ | ||
public class PerformanceTestContract : PerformanceTestContractContainer.PerformanceTestContractBase | ||
public override UInt64Value Fibonacci(UInt64Value input) | ||
{ | ||
public override UInt64Value Fibonacci(UInt64Value input) | ||
{ | ||
var result = CalculateFibonacci(input.Value); | ||
return new UInt64Value {Value = result}; | ||
} | ||
var result = CalculateFibonacci(input.Value); | ||
return new UInt64Value { Value = result }; | ||
} | ||
|
||
private ulong CalculateFibonacci(ulong n) | ||
{ | ||
if (n == 0 || n == 1) | ||
return n; | ||
return CalculateFibonacci(n - 1) + CalculateFibonacci(n - 2); | ||
} | ||
private ulong CalculateFibonacci(ulong n) | ||
{ | ||
if (n == 0 || n == 1) | ||
return n; | ||
return CalculateFibonacci(n - 1) + CalculateFibonacci(n - 2); | ||
} | ||
|
||
public override Int32Value LoopExpNop(PerformanceTesteInput input) | ||
public override Int32Value LoopExpNop(PerformanceTesteInput input) | ||
{ | ||
for (uint i = 0; i < input.N; i++) | ||
{ | ||
for (uint i = 0; i < input.N; i++) | ||
{ | ||
|
||
} | ||
|
||
return new Int32Value {Value = input.Seed}; | ||
} | ||
|
||
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 Int32Value { Value = input.Seed }; | ||
} | ||
|
||
return new DoubleValue {Value = r}; | ||
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 }; | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
bench/AElf.Benchmark.PerformanceTestContract/PerformanceTestContractState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
using AElf.Sdk.CSharp.State; | ||
|
||
namespace AElf.Benchmark.PerformanceTestContract | ||
namespace AElf.Benchmark.PerformanceTestContract; | ||
|
||
public class PerformanceTestContractState : ContractState | ||
{ | ||
public class PerformanceTestContractState: ContractState | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.