replace piForeach* to for(:)
another c++11 try ...
This commit is contained in:
17
main.cpp
17
main.cpp
@@ -34,17 +34,22 @@ int main() {
|
||||
|
||||
#include "picodeparser.h"
|
||||
int main() {
|
||||
piDebug = false;
|
||||
//piDebug = false;
|
||||
double min = -1, max = -1, mean = 0;
|
||||
for (int i = 0; i < 50; ++i) {
|
||||
for (int i = 0; i < 1; ++i) {
|
||||
PITimeMeasurer tm;
|
||||
/*PICodeParser cp;
|
||||
cp.parseFile("SH_plugin_base.h");*/
|
||||
PIStringList sl;
|
||||
for (int i = 0; i < 5000; ++i) {
|
||||
//PIString s("1234567890-=");
|
||||
//sl << s;
|
||||
sl << PIString("1234567890-=");
|
||||
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;
|
||||
}
|
||||
double ms = tm.elapsed_m();
|
||||
if (min < 0) min = ms;
|
||||
|
||||
Reference in New Issue
Block a user