source: benchmark/creation/node_cor.js @ 2316525

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 2316525 was 2316525, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

update benchmarks for concurrency paper

  • Property mode set to 100644
File size: 471 bytes
Line 
1var times = 50000000
2var argc = process.argv.length // node, path
3if ( argc > 3 ) process.exit( 1 )
4if ( argc == 3 ) times = Number( process.argv[2] )
5
6function * coroutine() {}
7var hrstart = process.hrtime()
8for ( var i = 0; i < times; i += 1 ) {
9        cor = coroutine()
10}
11hrend = process.hrtime( hrstart )
12var dur = (1000000000 * hrend[0] + hrend[1]) / times
13console.log( dur )
14
15// Local Variables: //
16// tab-width: 4 //
17// compile-command: "node node_cor.js" //
18// End: //
Note: See TracBrowser for help on using the repository browser.