--- /dev/null
+#!/usr/bin/php5 -q
+<?php
+for ( $i=0; $i<10000000; $i++ )
+{
+ echo "stuff1\n";
+}
+?>
--- /dev/null
+#!/usr/bin/php5 -q
+<?php
+for ( $i=0; $i<10000000; $i++ )
+{
+ echo "stuff1"." "."stuff2"."\n";
+}
+?>
echo "Running..."
time ./print.py > /dev/null
-cat cout.cpp
-echo "Compiling..."
-time g++ -O2 cout.cpp -o cout
+cat echo.php
echo "Running..."
-time ./cout > /dev/null
+time ./echo.php > /dev/null
cat print.pl
echo "Running..."
time ./print.pl > /dev/null
+cat cout.cpp
+echo "Compiling..."
+time g++ -O2 cout.cpp -o cout
+echo "Running..."
+time ./cout > /dev/null
+
cat cll1-print.c
echo "Compiling..."
time gcc -O2 cll1-print.c -o cll1-print
echo "Running..."
time ./print2.py > /dev/null
+cat echo2.php
+echo "Running..."
+time ./echo2.php > /dev/null
+
cat cout2.cpp
echo "Compiling..."
time g++ -O2 cout2.cpp -o cout2
10000000.times { print "stuff","\n" }
Running...
-14.49user 1.56system 0:16.15elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
+14.58user 1.54system 0:16.27elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+457minor)pagefaults 0swaps
#!/usr/bin/python
print "stuff"
Running...
-8.43user 0.19system 0:08.71elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+39996minor)pagefaults 0swaps
+8.28user 0.15system 0:08.61elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+39997minor)pagefaults 0swaps
+#!/usr/bin/php5 -q
+<?php
+for ( $i=0; $i<10000000; $i++ )
+{
+ echo "stuff1\n";
+}
+?>
+Running...
+4.93user 2.01system 0:07.24elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+1282minor)pagefaults 0swaps
+#!/usr/bin/perl
+
+my $i=0;
+for ($i=0;$i<10000000;$i++)
+{
+ print ("stuff");
+}
+
+Running...
+2.56user 0.00system 0:02.73elapsed 93%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+425minor)pagefaults 0swaps
#include <iostream>
#define RUNS 10000000UL
return 0;
}
Compiling...
-0.32user 0.04system 0:00.37elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
+0.34user 0.03system 0:00.38elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+8690minor)pagefaults 0swaps
Running...
-1.01user 0.00system 0:01.02elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+239minor)pagefaults 0swaps
-#!/usr/bin/perl
-
-my $i=0;
-for ($i=0;$i<10000000;$i++)
-{
- print ("stuff");
-}
-
-Running...
-2.52user 0.00system 0:02.53elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+425minor)pagefaults 0swaps
+1.01user 0.00system 0:01.03elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+238minor)pagefaults 0swaps
#include "cll1.h"
program
print("stuff");
}
Compiling...
-0.08user 0.01system 0:00.09elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+4001minor)pagefaults 0swaps
+0.09user 0.00system 0:00.09elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+3999minor)pagefaults 0swaps
Running...
-0.88user 0.00system 0:00.90elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k
+0.84user 0.01system 0:00.93elapsed 91%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+131minor)pagefaults 0swaps
#include <stdio.h>
return 0;
}
Compiling...
-0.05user 0.00system 0:00.06elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+3781minor)pagefaults 0swaps
+0.06user 0.00system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+3780minor)pagefaults 0swaps
Running...
0.61user 0.00system 0:00.62elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+114minor)pagefaults 0swaps
+0inputs+0outputs (0major+115minor)pagefaults 0swaps
#include <stdio.h>
#define RUNS 10000000UL
return 0;
}
Compiling...
-0.05user 0.00system 0:00.06elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+3779minor)pagefaults 0swaps
+0.03user 0.02system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+3778minor)pagefaults 0swaps
Running...
0.62user 0.00system 0:00.63elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+115minor)pagefaults 0swaps
+0inputs+0outputs (0major+114minor)pagefaults 0swaps
#include <stdio.h>
#define RUNS 10000000UL
return 0;
}
Compiling...
-0.05user 0.01system 0:00.06elapsed 103%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+3784minor)pagefaults 0swaps
+0.04user 0.01system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+3787minor)pagefaults 0swaps
Running...
-0.56user 0.00system 0:00.56elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
+0.56user 0.00system 0:00.56elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+115minor)pagefaults 0swaps
10000000.times { print "stuff1"," ","stuff2","\n" }
Running...
-22.69user 1.50system 0:24.43elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+456minor)pagefaults 0swaps
+23.14user 1.62system 0:25.61elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+457minor)pagefaults 0swaps
#!/usr/bin/python
for i in range(1,10000000):
print "stuff1","stuff2"
Running...
-13.56user 0.17system 0:13.77elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+39997minor)pagefaults 0swaps
+13.50user 0.18system 0:13.83elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+39996minor)pagefaults 0swaps
+#!/usr/bin/php5 -q
+<?php
+for ( $i=0; $i<10000000; $i++ )
+{
+ echo "stuff1"." "."stuff2"."\n";
+}
+?>
+Running...
+9.87user 2.20system 0:12.37elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+1282minor)pagefaults 0swaps
#include <iostream>
#define RUNS 10000000UL
return 0;
}
Compiling...
-0.33user 0.03system 0:00.37elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
+0.35user 0.04system 0:00.40elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+8699minor)pagefaults 0swaps
Running...
-6.16user 1.93system 0:08.11elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
+6.22user 1.82system 0:08.07elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+241minor)pagefaults 0swaps
#!/usr/bin/perl
print ("stuff1"," ","stuff2","\n");
}
Running...
-5.68user 0.00system 0:05.71elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
+5.74user 0.01system 0:05.93elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+425minor)pagefaults 0swaps
#include "cll1.h"
print("stuff1","stuff2");
}
Compiling...
-0.08user 0.01system 0:00.10elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
+0.08user 0.01system 0:00.09elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+4000minor)pagefaults 0swaps
Running...
-1.91user 0.00system 0:01.94elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+132minor)pagefaults 0swaps
+1.92user 0.01system 0:01.94elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+131minor)pagefaults 0swaps
#include <stdio.h>
#define RUNS 10000000UL
return 0;
}
Compiling...
-0.03user 0.02system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+3783minor)pagefaults 0swaps
+0.04user 0.02system 0:00.06elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+3781minor)pagefaults 0swaps
Running...
-2.90user 0.00system 0:02.89elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
+2.89user 0.01system 0:02.92elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+121minor)pagefaults 0swaps
#include <stdio.h>
return 0;
}
Compiling...
-0.04user 0.02system 0:00.06elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k
-0inputs+0outputs (0major+3787minor)pagefaults 0swaps
+0.04user 0.02system 0:00.06elapsed 104%CPU (0avgtext+0avgdata 0maxresident)k
+0inputs+0outputs (0major+3788minor)pagefaults 0swaps
Running...
-1.52user 0.00system 0:01.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
+1.50user 0.00system 0:01.51elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+115minor)pagefaults 0swaps