-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.1.2 add some feature from VSOP87 add perf test add net6.0 runtime Update README.md
- Loading branch information
1 parent
d7bf308
commit 410bcaa
Showing
33 changed files
with
1,625 additions
and
648 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
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
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
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,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using BenchmarkDotNet.Attributes; | ||
using BenchmarkDotNet.Jobs; | ||
using VSOP2013; | ||
|
||
namespace Demo | ||
{ | ||
[SimpleJob(RuntimeMoniker.Net70)] | ||
[MemoryDiagnoser] | ||
public class PerfTest | ||
{ | ||
private Calculator vsop; | ||
|
||
private DateTime dt; | ||
VSOPTime vTime; | ||
public PerfTest() { vsop = new Calculator(); } | ||
|
||
[GlobalSetup] | ||
public void init() | ||
{ | ||
dt = DateTime.Now.ToUniversalTime(); | ||
dt.ToUniversalTime(); | ||
dt = dt.AddSeconds(-69.184); | ||
vTime =new VSOPTime(dt); | ||
} | ||
|
||
[Benchmark] | ||
public VSOPResult Go() | ||
{ | ||
var ell = vsop.GetPlanetPosition(VSOPBody.JUPITER, vTime); | ||
return ell; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.