summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-11-17 18:56:17 -0500
committerTavian Barnes <tavianator@gmail.com>2011-11-17 18:56:17 -0500
commitc4d9fdefa0a4fec2ed1059a3b85a77914f68c39e (patch)
tree0b0ddf181f1d367daf3b7b637e05ecfeb241941a /libdimension
parentb3641516fb858dc003eb47095f8ae25fd352b4e0 (diff)
downloaddimension-c4d9fdefa0a4fec2ed1059a3b85a77914f68c39e.tar.xz
Add a non-cached case to the PR-tree benchmark.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/bench/prtree.c5
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);