mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@14421 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
945a40c24f
commit
c6c2439cf3
13 changed files with 62 additions and 6 deletions
|
|
@ -10,7 +10,12 @@ CONSOLE_APP_MAIN
|
|||
|
||||
SeedRandom();
|
||||
|
||||
for(int ii = 0; ii < 200; ii++) {
|
||||
#ifdef CPU_ARM
|
||||
for(int ii = 0; ii < 10; ii++)
|
||||
#else
|
||||
for(int ii = 0; ii < 200; ii++)
|
||||
#endif
|
||||
{
|
||||
DUMP(ii);
|
||||
int N = Random(20000000);
|
||||
int mod = 6 * Random(50000) + 1;
|
||||
|
|
|
|||
|
|
@ -65,6 +65,9 @@ int RndSize()
|
|||
|
||||
void HeapTest(int cnt, int N, bool chk)
|
||||
{
|
||||
#ifdef CPU_ARM
|
||||
N = N / 20;
|
||||
#endif
|
||||
int mask = cnt - 1;
|
||||
count = cnt;
|
||||
memset(ptr, 0, sizeof(ptr));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,11 @@
|
|||
|
||||
using namespace Upp;
|
||||
|
||||
#ifdef CPU_ARM
|
||||
#define N 5000
|
||||
#else
|
||||
#define N 100000
|
||||
#endif
|
||||
|
||||
#define LLOG(x) // LOG(x)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
#ifdef CPU_ARM
|
||||
#define N 1000 * 5
|
||||
#else
|
||||
#define N 1000 * 100
|
||||
#endif
|
||||
|
||||
#define THREADS 5
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@ using namespace Upp;
|
|||
#define N 20
|
||||
#endif
|
||||
|
||||
#ifdef CPU_ARM
|
||||
#undef N
|
||||
#define N 1
|
||||
#endif
|
||||
|
||||
template <class C1, class C2>
|
||||
void Compare(C1& a, C2& b)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -274,6 +274,10 @@ void CarpetBombing()
|
|||
int Q = 20;
|
||||
int COUNT = 10000000;
|
||||
|
||||
#ifdef CPU_ARM
|
||||
COUNT /= 20;
|
||||
#endif
|
||||
|
||||
for(int i = 0; i < COUNT; i++)
|
||||
{
|
||||
if(i % 100000 == 0)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,12 @@ CONSOLE_APP_MAIN
|
|||
StdLogSetup(LOG_COUT|LOG_FILE);
|
||||
SeedRandom(0);
|
||||
PeakMemoryProfile();
|
||||
for(int i = 0; i < 100000000; i++) {
|
||||
#ifdef CPU_ARM
|
||||
for(int i = 0; i < 5000000; i++)
|
||||
#else
|
||||
for(int i = 0; i < 100000000; i++)
|
||||
#endif
|
||||
{
|
||||
if(i % 10000 == 0)
|
||||
DLOG(i);
|
||||
int ii = Random(1000);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,12 @@ CONSOLE_APP_MAIN
|
|||
InVector<int> iv;
|
||||
InArray<int> av;
|
||||
|
||||
for(int i = 0; i < 10000; i++) {
|
||||
#ifdef CPU_ARM
|
||||
for(int i = 0; i < 500; i++)
|
||||
#else
|
||||
for(int i = 0; i < 10000; i++)
|
||||
#endif
|
||||
{
|
||||
if(v.GetCount() > 100000) {
|
||||
int pos = Random(v.GetCount() + 1);
|
||||
int count = Random(v.GetCount() - pos);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,12 @@ CONSOLE_APP_MAIN
|
|||
LOG("FindAdd passed");
|
||||
SortedIndex<int> si;
|
||||
int count = 0;
|
||||
for(int i = 0; i < 1000000; i++) {
|
||||
#ifdef CPU_ARM
|
||||
for(int i = 0; i < 100000; i++)
|
||||
#else
|
||||
for(int i = 0; i < 1000000; i++)
|
||||
#endif
|
||||
{
|
||||
if(i % 1000 == 0)
|
||||
LOG(i);
|
||||
if(si.GetCount() > 1000 && Random(1000) == 0) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,11 @@ using namespace Upp;
|
|||
CONSOLE_APP_MAIN
|
||||
{
|
||||
StdLogSetup(LOG_FILE|LOG_COUT);
|
||||
#ifdef CPU_64
|
||||
const int64 sz = (int64)2 * 1000 * 1000 * 1000;
|
||||
#else
|
||||
const int64 sz = (int64)1000 * 1000 * 1000;
|
||||
#endif
|
||||
String path = GetHomeDirFile("test.bin");
|
||||
{
|
||||
Buffer<byte> big(sz);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,11 @@ using namespace Upp;
|
|||
#define N 5
|
||||
#endif
|
||||
|
||||
#ifdef CPU_ARM
|
||||
#define STEPS 40000 * N
|
||||
#else
|
||||
#define STEPS 400000 * N
|
||||
#endif
|
||||
|
||||
namespace Upp {
|
||||
typedef wchar *HT;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,11 @@
|
|||
|
||||
using namespace Upp;
|
||||
|
||||
#ifdef CPU_ARM
|
||||
#define N 2000000
|
||||
#else
|
||||
#define N 10000000
|
||||
#endif
|
||||
|
||||
int RandomChar()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,11 @@
|
|||
|
||||
using namespace Upp;
|
||||
|
||||
#ifdef CPU_ARM
|
||||
#define N 1000000
|
||||
#else
|
||||
#define N 10000000
|
||||
#endif
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue