X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_dennyfliegner.cpp;h=ba80585138a16aa3c3a5915a5256c7e0aec1883b;hp=d14e7e5c6054013876552f78616931905518b99f;hb=71fdb941e62f5e4bf131bc40468cfa7a4a5c986a;hpb=c28e61da33905ddc69abf893aaffec98aa30d053 diff --git a/check/time_dennyfliegner.cpp b/check/time_dennyfliegner.cpp index d14e7e5c..ba805851 100644 --- a/check/time_dennyfliegner.cpp +++ b/check/time_dennyfliegner.cpp @@ -7,7 +7,7 @@ * after which e should be just a1^2. */ /* - * GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,15 +66,10 @@ unsigned time_dennyfliegner() cout << "timing commutative expansion and substitution" << flush; - vector sizes; + vector sizes = {100, 200, 400, 800}; vector times; timer breitling; - sizes.push_back(100); - sizes.push_back(200); - sizes.push_back(400); - sizes.push_back(800); - for (vector::iterator i=sizes.begin(); i!=sizes.end(); ++i) { breitling.start(); result += expand_subs(*i);