Init2
This commit is contained in:
parent
a0f0371126
commit
7f3ae182e1
76 changed files with 76901 additions and 0 deletions
4
bench/performance_healpix_mask.txt
Normal file
4
bench/performance_healpix_mask.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
s5 16 22.583
|
||||
s5 32 92.59
|
||||
s5 64 644.
|
||||
s9 256 9334.
|
21
bench/time_estimate.py
Normal file
21
bench/time_estimate.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
import numpy as np
|
||||
|
||||
def compute_time(Nside_query):
|
||||
a = np.genfromtxt("./performance_healpix_mask.txt", dtype=[("type","S3"),("Nside", "i"),("cpu","f")])
|
||||
|
||||
la = np.log10(a['Nside'])
|
||||
lb = np.log10(a['cpu'])
|
||||
|
||||
da = (la - np.average(la))
|
||||
db = (lb - np.average(lb))
|
||||
|
||||
Slope = (da*db).sum()/(da**2).sum()
|
||||
Ofs = np.average(lb) - Slope*np.average(la)
|
||||
|
||||
TimeGot = 10**(np.log10(Nside_query)*Slope+Ofs)
|
||||
|
||||
print "Nside=%d -> Time= %lg hours" % (Nside_query, TimeGot/3600.)
|
||||
|
||||
|
||||
compute_time(512)
|
||||
compute_time(1024)
|
Loading…
Add table
Add a link
Reference in a new issue