On Friday 30 March 2007 13:59, Alek Storm wrote: > I used a simple benchmark to compare the relative speeds of Parrot > with and without the patch, and I was surprised to find that the test > script runs (very roughly) 10% faster *with* the patch. Can someone > confirm this? Running revision 17860; benchmark script attached; run > as: > $ parrot bench.pir 100000 > > Since leo was concerned about memory usage, by running valgrind: > $ valgrind --tool=massif parrot bench.pir 100000 > I found that, over several runs, the spacetime (time * bytes) usage is > slightly better with the patch than without. Can someone confirm this > also?
The results look statistically noisy to me, as of r17872, on x86 Linux. -- c $ time parrot bench.pir 100000 (before) 0.126924 real 0m0.141s user 0m0.136s sys 0m0.000s $ time parrot bench.pir 100000 (after) 0.136295 real 0m0.151s user 0m0.144s sys 0m0.008s $ time parrot bench.pir 1000000 (before) 1.268441 real 0m1.283s user 0m1.260s sys 0m0.012s $ time parrot bench.pir 1000000 (after) 1.265152 real 0m1.279s user 0m1.272s sys 0m0.000s $ time parrot bench.pir 4000000 (before) 4.998641 real 0m5.013s user 0m4.992s sys 0m0.012s $ time parrot bench.pir 4000000 (after) 5.167657 real 0m5.182s user 0m5.004s sys 0m0.012s $ valgrind --tool=massif parrot bench.pir 100000 (before) ==23475== Massif, a space profiler. ==23475== ==23475== Total spacetime: 5,538,772,556 ms.B ==23475== heap: 98.3% ==23475== heap admin: 1.2% ==23475== stack(s): 0.4% $ valgrind --tool=massif parrot bench.pir 100000 (after) ==24621== Massif, a space profiler. ==24621== ==24621== Total spacetime: 5,644,447,560 ms.B ==24621== heap: 98.3% ==24621== heap admin: 1.1% ==24621== stack(s): 0.4% $ valgrind --tool=massif parrot bench.pir 4000000 (before) ==23480== Massif, a space profiler. ==23480== ==23480== Total spacetime: 163,932,225,655 ms.B ==23480== heap: 98.2% ==23480== heap admin: 1.3% ==23480== stack(s): 0.4% $ valgrind --tool=massif parrot bench.pir 4000000 (after) ==24626== Massif, a space profiler. ==24626== ==24626== Total spacetime: 163,975,392,847 ms.B ==24626== heap: 98.2% ==24626== heap admin: 1.3% ==24626== stack(s): 0.4%