diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-11-17 18:56:17 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-11-17 18:56:17 -0500 |
commit | c4d9fdefa0a4fec2ed1059a3b85a77914f68c39e (patch) | |
tree | 0b0ddf181f1d367daf3b7b637e05ecfeb241941a /libdimension/bench | |
parent | b3641516fb858dc003eb47095f8ae25fd352b4e0 (diff) | |
download | dimension-c4d9fdefa0a4fec2ed1059a3b85a77914f68c39e.tar.xz |
Add a non-cached case to the PR-tree benchmark.
Diffstat (limited to 'libdimension/bench')
-rw-r--r-- | libdimension/bench/prtree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimension/bench/prtree.c b/libdimension/bench/prtree.c index 6f0908a..b168890 100644 --- a/libdimension/bench/prtree.c +++ b/libdimension/bench/prtree.c @@ -106,6 +106,11 @@ main(void) }); printf("dmnsn_prtree_intersection(): %ld\n", sandglass.grains); + sandglass_bench_fine(&sandglass, { + dmnsn_prtree_intersection(tree, ray, &intersection, false); + }); + printf("dmnsn_prtree_intersection(nocache): %ld\n", sandglass.grains); + /* dmnsn_prtree_inside() */ sandglass_bench_fine(&sandglass, { dmnsn_prtree_inside(tree, dmnsn_zero); |