more timing

This commit is contained in:
jan 2018-03-09 17:15:30 -08:00
commit b14c5e8770
2 changed files with 8 additions and 4 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
__pycache__/
*.pyc
*.lprof
*.prof

View file

@ -251,8 +251,8 @@ def test_tet_tet_timing():
if (t+1) % 1000 == 0: if (t+1) % 1000 == 0:
t_each = (perf_counter() - t0) / (t + 1) t_each = (perf_counter() - t0) / (t + 1)
logger.info(f'time per split for {t+1} splits: {t_each}') logger.info(f'time per split/reduce for {t+1} splits: {t_each}')
logger.info(f'done timing, time per split: {(perf_counter() - t0) / NUM_TRIALS}') logger.info(f'done timing, time per split/reduce: {(perf_counter() - t0) / NUM_TRIALS}')
def test_split_nonconvex(): def test_split_nonconvex():
@ -625,8 +625,8 @@ if __name__ == '__main__':
logger.info('voxelization') logger.info('voxelization')
test_voxelization() test_voxelization()
#logger.info('test_tet_tet_timing') logger.info('test_tet_tet_timing')
#test_tet_tet_timing() test_tet_tet_timing()
logger.info('time_split') logger.info('time_split')
time_split() time_split()