« first day (1113 days earlier)      last day (1381 days later) » 

12:46 PM
@Dennis Please add LuaJIT and resty (github.com/openresty/resty-cli) for running Lua programs. Both are different environments than Lua.
 
 
4 hours later…
4:31 PM
@Dennis That should work. The global script installs LDC to ~/dlang, and I also tested the script inside an Ubuntu VM.
Thanks!!
 
 
4 hours later…
8:55 PM
unsigned long rdpmc_actual_cycles()
{
unsigned a, d, c;
c = (1<<30)+1;
__asm__ volatile("rdpmc" : "=a" (a), "=d" (d) : "c" (c));
return ((unsigned long)a) | (((unsigned long)d) << 32);;
}
for short-lived programs, you could read the cycle counter
unsigned long is as least 8billion big, so at least 8 billion cycles
 

« first day (1113 days earlier)      last day (1381 days later) »