source: benchmark/ctxswitch/kos_fibre.cpp@ 69c5c00

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 69c5c00 was b4107c8, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

update existing benchmarks for changes to bench.h, add new benchmarks in new programming languages

  • Property mode set to 100644
File size: 268 bytes
RevLine 
[6810fcb]1#include <libfibre/fibre.h>
2
3#include "bench.h"
4
[b4107c8]5int main( int argc, char * argv[] ) {
6 BENCH_START()
[6810fcb]7 BENCH(
[b4107c8]8 for (size_t i = 0; i < times; i++) {
[6810fcb]9 Fibre::yield();
10 },
11 result
12 )
[b4107c8]13 printf( "%g\n", result );
[dc33b5b]14}
[b4107c8]15
16// Local Variables: //
17// tab-width: 4 //
18// End: //
Note: See TracBrowser for help on using the repository browser.