mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-30 14:22:28 -06:00
.benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@15436 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3c1392b986
commit
e779ffd7a6
3 changed files with 17 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ using namespace Upp;
|
|||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
const int N = 200;
|
||||
const int N = 2000;
|
||||
|
||||
Vector<String> data;
|
||||
Buffer<std::string> sdata(N);
|
||||
|
|
@ -19,7 +19,7 @@ CONSOLE_APP_MAIN
|
|||
RDUMP(sizeof(std::string));
|
||||
RDUMP(sizeof(String));
|
||||
|
||||
for(int q = 100000; q--;) {
|
||||
for(int q = 1000; q--;) {
|
||||
{
|
||||
RTIMING("vector<string>::push_back");
|
||||
std::vector<std::string> v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue