1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Thanatos:tmp $ cat foo.cpp
#include <iostream>

int main (void) {
  for (int i = 0; i < 1000000; i++)
    std::cout << "HELLO" << std::endl;
}
Thanatos:tmp $ g++ -o foo foo.cpp
Thanatos:tmp $ time ./foo > /dev/null

real	0m1.184s
user	0m0.479s
sys	0m0.690s
Thanatos:tmp $ cat bar.cpp
#include <iostream>
using namespace std;

int main (void) {
  for (int i = 0; i < 1000000; i++)
    cout << "HELLO" << endl;
}
Thanatos:tmp $ g++ -o bar bar.cpp
Thanatos:tmp $ time ./bar > /dev/null

real	0m1.194s
user	0m0.479s
sys	0m0.695s
Thanatos:tmp $