summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cpque_benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/cpque_benchmark.cpp')
-rw-r--r--benchmarks/cpque_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/cpque_benchmark.cpp b/benchmarks/cpque_benchmark.cpp
index 2b6445c5..5f7dd364 100644
--- a/benchmarks/cpque_benchmark.cpp
+++ b/benchmarks/cpque_benchmark.cpp
@@ -2,7 +2,7 @@
#include <time.h>
#include <stc/crandom.h>
-#define i_tag x
+#define i_tag f
#define i_val float
#define i_cmp -c_default_compare
#include <stc/cpque.h>
@@ -18,7 +18,7 @@ int main()
rng = stc64_init(seed);
clock_t start = clock();
c_forrange (i, int, N)
- cvec_f_push_back(&pq, (float) stc64_randf(&rng)*100000);
+ cpque_f_push_back(&pq, (float) stc64_randf(&rng)*100000);
cpque_f_make_heap(&pq);
printf("Built priority queue: %f secs\n", (clock() - start) / (float) CLOCKS_PER_SEC);