From b14c5e877083ac24036fdf9b0d1e8d33fb8a9c00 Mon Sep 17 00:00:00 2001 From: jan Date: Fri, 9 Mar 2018 17:15:30 -0800 Subject: [PATCH] more timing --- .gitignore | 4 ++++ tpy_r3d.py | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae0c892 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +__pycache__/ +*.pyc +*.lprof +*.prof diff --git a/tpy_r3d.py b/tpy_r3d.py index 41fc086..8c17a91 100644 --- a/tpy_r3d.py +++ b/tpy_r3d.py @@ -251,8 +251,8 @@ def test_tet_tet_timing(): if (t+1) % 1000 == 0: t_each = (perf_counter() - t0) / (t + 1) - logger.info(f'time per split for {t+1} splits: {t_each}') - logger.info(f'done timing, time per split: {(perf_counter() - t0) / NUM_TRIALS}') + logger.info(f'time per split/reduce for {t+1} splits: {t_each}') + logger.info(f'done timing, time per split/reduce: {(perf_counter() - t0) / NUM_TRIALS}') def test_split_nonconvex(): @@ -625,8 +625,8 @@ if __name__ == '__main__': logger.info('voxelization') test_voxelization() - #logger.info('test_tet_tet_timing') - #test_tet_tet_timing() + logger.info('test_tet_tet_timing') + test_tet_tet_timing() logger.info('time_split') time_split()