1 AMD Athlon(tm) XP 1259.392 Mhz 2520.58 bogomips
2 ------------------------------------------------------------- Ruby
5 10000000.times { print "stuff","\n" }
11 --------------------------------------------------- Python - range
14 for i in range(1,10000000):
21 -------------------------------------------------- Python - xrange
24 for i in xrange(1,10000000):
31 ------------------------------------------------------------ PHP 5
34 for ( $i=0; $i<10000000; $i++ )
43 -------------------------------------------------- C - gcc - write
46 #define RUNS 10000000UL
67 ------------------------------------------------------------- Perl
71 for ($i=0;$i<10000000;$i++)
80 ----------------------------------------------- C<<1 - gcc - print
96 ---------------------------------------------- C - g++ - std::cout
99 #define RUNS 10000000UL
105 std::cout << "stuff\n";
117 ----------------------------------------------- C<<1 - tcc - print
133 ------------------------------------------------- C - tcc - printf
136 #define RUNS 10000000UL
154 ------------------------------------------------ C<<1 - tcc - echo
160 for_range(i,1,10000000)
171 --------------------------------------------------- C - tcc - puts
174 #define RUNS 10000000UL
192 ------------------------------------------------- C - tcc - fwrite
196 #define RUNS 10000000UL
205 fwrite(s1,l1,1,stdout);
217 -------------------------------------------------- C - tcc - fputs
220 #define RUNS 10000000UL
226 fputs("stuff\n",stdout);
238 ------------------------------------------------ C<<1 - gcc - echo
244 for_range(i,1,10000000)
255 ------------------------------------------------- C - gcc - printf
258 #define RUNS 10000000UL
276 --------------------------------------------------- C - gcc - puts
279 #define RUNS 10000000UL
297 ------------------------------------------------- C - gcc - fwrite
301 #define RUNS 10000000UL
310 fwrite(s1,l1,1,stdout);
322 -------------------------------------------------- C - gcc - fputs
325 #define RUNS 10000000UL
331 fputs("stuff\n",stdout);