summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/throughput/ThroughputI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-08-08 13:33:04 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-08-08 13:33:04 +0000
commitdf8cf81989c083af7861b9bec0f05d40d9cd195b (patch)
tree2e0e0444e84444aa2620e55e78e2365554f2010d /cppe/demo/IceE/throughput/ThroughputI.cpp
parentadded missing files. (diff)
downloadice-df8cf81989c083af7861b9bec0f05d40d9cd195b.tar.bz2
ice-df8cf81989c083af7861b9bec0f05d40d9cd195b.tar.xz
ice-df8cf81989c083af7861b9bec0f05d40d9cd195b.zip
Ported throughput to WinCE
Diffstat (limited to 'cppe/demo/IceE/throughput/ThroughputI.cpp')
-rw-r--r--cppe/demo/IceE/throughput/ThroughputI.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cppe/demo/IceE/throughput/ThroughputI.cpp b/cppe/demo/IceE/throughput/ThroughputI.cpp
index c861e4cb420..7baeeca9394 100644
--- a/cppe/demo/IceE/throughput/ThroughputI.cpp
+++ b/cppe/demo/IceE/throughput/ThroughputI.cpp
@@ -12,19 +12,19 @@
using namespace std;
using namespace Demo;
-ThroughputI::ThroughputI() :
- _byteSeq(ByteSeqSize, 0),
- _stringSeq(StringSeqSize, "hello"),
- _structSeq(StringDoubleSeqSize),
- _fixedSeq(FixedSeqSize)
+ThroughputI::ThroughputI(int reduce) :
+ _byteSeq(ByteSeqSize / reduce, 0),
+ _stringSeq(StringSeqSize / reduce, "hello"),
+ _structSeq(StringDoubleSeqSize / reduce),
+ _fixedSeq(FixedSeqSize / reduce)
{
int i;
- for(i = 0; i < StringDoubleSeqSize; ++i)
+ for(i = 0; i < StringDoubleSeqSize / reduce; ++i)
{
_structSeq[i].s = "hello";
_structSeq[i].d = 3.14;
}
- for(i = 0; i < FixedSeqSize; ++i)
+ for(i = 0; i < FixedSeqSize / reduce; ++i)
{
_fixedSeq[i].i = 0;
_fixedSeq[i].j = 0;