move operators works

This commit is contained in:
2020-07-30 20:30:24 +03:00
parent 557f2a4d0d
commit 52062e6ccd
3 changed files with 17 additions and 21 deletions

View File

@@ -34,22 +34,18 @@ int main() {
#include "picodeparser.h"
int main() {
//piDebug = false;
piDebug = false;
double min = -1, max = -1, mean = 0;
for (int i = 0; i < 1; ++i) {
for (int i = 0; i < 50; ++i) {
PITimeMeasurer tm;
/*PICodeParser cp;
cp.parseFile("SH_plugin_base.h");*/
PIStringList sl;
sl.reserve(10);
for (int i = 0; i < 10; ++i) {
//PIString s = PIString("1234567890-=").repeated(100);
//sl.push_back(PIString("1234567890-=").repeated(100));
sl << PIString("abc").repeated(i + 1);
}
for (PIString & s : sl) {
s = s.toUpperCase();
piCout << s;
sl.reserve(50000);
for (int i = 0; i < 50000; ++i) {
// PIString s("1234567890-=");
sl.push_back(PIString("1234567890-="));
//sl << PIString("1234567890-=");
}
double ms = tm.elapsed_m();
if (min < 0) min = ms;