X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Ftime_dennyfliegner.cpp;h=4ed5642b17b9f970e80ac5a6620bfbb2eb8fcb30;hb=63f3e977f92d51ea173382a9b7c4c3b18bda7b8e;hp=dc06936fb95382e746184a6b6609e859a7bb7169;hpb=cca88b51436e4b654d16a4d60cd0d1c66fcf5dd6;p=ginac.git diff --git a/check/time_dennyfliegner.cpp b/check/time_dennyfliegner.cpp index dc06936f..4ed5642b 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-2014 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2018 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);