mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-10 22:04:25 -06:00
.benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@14516 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c0247f57d4
commit
72efb8f27e
8 changed files with 151 additions and 0 deletions
16
benchmarks/VectorInt/VectorInt.cpp
Normal file
16
benchmarks/VectorInt/VectorInt.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define N 1000000
|
||||
#define SZ 100
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
RTIMING("Time");
|
||||
for(int i = 0; i < N; i++) {
|
||||
Vector<int> v;
|
||||
for(int n = 0; n < SZ; n++)
|
||||
v.Add(n);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue