summaryrefslogtreecommitdiffhomepage
path: root/examples/queue.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-12-21 21:53:42 +0100
committerTyge Løvset <[email protected]>2020-12-21 21:53:42 +0100
commit5a444c90db6372749cbdc629ec999871cd20af72 (patch)
tree125e0d54bcb7318d14195e849a4a919ef047bfed /examples/queue.c
parent1bdf83262a125a40efc2b07cacec0825254fcfd2 (diff)
downloadSTC-modified-5a444c90db6372749cbdc629ec999871cd20af72.tar.gz
STC-modified-5a444c90db6372749cbdc629ec999871cd20af72.zip
Added another benchmark.
Diffstat (limited to 'examples/queue.c')
-rw-r--r--examples/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/queue.c b/examples/queue.c
index f4847ebd..d1eae6bc 100644
--- a/examples/queue.c
+++ b/examples/queue.c
@@ -3,7 +3,7 @@
#include <stc/cdeq.h>
#include <stdio.h>
-#if 1
+#if 0
using_clist(i, int);
using_cqueue(i, clist_i);
#else
@@ -21,7 +21,7 @@ int main() {
// Push ten million random numbers onto the queue.
c_forrange (n)
- cqueue_i_push(&queue, crand_uniform_fast(&rng, &dist));
+ cqueue_i_push(&queue, crand_uniform(&rng, &dist));
// Push or pop on the queue ten million times
printf("%d\n", n);