- longneck@mofa ~ $ cat test.c
- #include <stdio.h>
- int main()
- {
- const int max = 50 * 1000 * 1000;
- int i;
- for(i = 0; i < max; i++)
- if(1 == 1) {
- i;
- }
- return 0;
- }
- longneck@mofa ~ $ time ./test
- real 0m0.220s
- user 0m0.216s
- sys 0m0.000s
- longneck@mofa ~ $ time node test.js
- start
- end
- real 0m0.296s
- user 0m0.284s
- sys 0m0.020s
- longneck@mofa ~ $
Stikked
