From b79e24100de16d028eda72faad91d0d5d053ca96 Mon Sep 17 00:00:00 2001 From: Ondrej Certik Date: Thu, 14 Aug 2008 02:02:27 +0200 Subject: [PATCH] More benchmarks added. Signed-off-by: Ondrej Certik --- benchmarks.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/benchmarks.py b/benchmarks.py index 972480e..ed9b402 100755 --- a/benchmarks.py +++ b/benchmarks.py @@ -59,6 +59,11 @@ def bench_expand3(): e = (x+z+y)**20 * (z+x)**9 e = e.expand() +def bench_expand3(): + "e=((x**x+y**y+z**z)**10 * (x**y+y**z+z**x)**10); e.expand()" + e = ((x**x+y**y+z**z)**10 * (x**y+y**z+z**x)**10) + e = e.expand() + def add1(): "Add(x,,y), 2000x" i = 2000 @@ -94,12 +99,12 @@ def sum2(): benchmarks = [ bench_e2e_1, bench_e2e_2, - #bench_e2e_3, + bench_e2e_3, + bench_e2e_4, # too slow: - #bench_e2e_4, #bench_e2e_5, bench_expand1, - #bench_expand2, + bench_expand2, bench_expand3, add1, mul1, -- 2.11.4.GIT