tessellatedsphere_recperf
ΒΆ
Recurrence version of tessellation. Performance.
''' Recurrence version of tessellation. Performance.
'''
import time
from irfpy.util import tessellatedsphere
def run(ndim):
t0 = time.time()
tn = tessellatedsphere.RecurrentTessellatedUnitSphere(ndim=ndim)
t1 = time.time()
tn.createLinkList()
t2 = time.time()
print('ndim={:d}, __init__: {:f} s, linklist: {:f} s'.format(ndim, t1 - t0, t2 - t1))
def main():
run(0)
run(1)
run(2)
run(3)
run(4)
run(5)
run(6)
# run(7)
# run(8)
if __name__ == "__main__":
main()