ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 55b2f5a was
309be81,
checked in by Aaron Moss <a3moss@…>, 8 years ago
|
Started evaluation benchmarks for paper (CFA version doesn't compile yet)
|
-
Property mode set to
100644
|
File size:
265 bytes
|
Rev | Line | |
---|
[309be81] | 1 | #include <stdlib.h> |
---|
| 2 | #include "bench.h" |
---|
| 3 | #include "c-stack.h" |
---|
| 4 | |
---|
| 5 | int main(int argc, char** argv) { |
---|
| 6 | srand(20171025); |
---|
| 7 | |
---|
| 8 | struct stack s = new_stack(); |
---|
| 9 | |
---|
| 10 | REPEAT_TIMED( "push_int", |
---|
| 11 | int* x = malloc(sizeof(int)); |
---|
| 12 | *x = rand(); |
---|
| 13 | push_stack(&s, x); |
---|
| 14 | ) |
---|
| 15 | |
---|
| 16 | clear_stack(&s); |
---|
| 17 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.