Skip to content

Commit

Permalink
Unified
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Apr 4, 2024
1 parent c57d0e6 commit 7177d39
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

abstract class AbstractCreateMany
{
protected static final int START_INDEX = 0;
protected static final int PARTICIPANTS = 10_000;
protected static final BasicAuthClientCredentials CREDENTIALS = new BasicAuthClientCredentials (CSecurity.USER_ADMINISTRATOR_EMAIL,
CSecurity.USER_ADMINISTRATOR_PASSWORD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import com.helger.smpclient.peppol.utils.W3CEndpointReferenceHelper;
import com.helger.web.scope.mgr.WebScoped;
import com.helger.web.scope.mock.WebScopeTestRule;
import com.helger.xsds.peppol.id1.ProcessIdentifierType;
import com.helger.xsds.peppol.smp1.EndpointType;
import com.helger.xsds.peppol.smp1.ObjectFactory;
import com.helger.xsds.peppol.smp1.ProcessListType;
Expand Down Expand Up @@ -96,11 +97,15 @@ public static void main (final String [] args) throws Throwable
{
final PeppolDocumentTypeIdentifier aDT = aEDT.getAsDocumentTypeIdentifier ();
final String sDT = aDT.getURIEncoded ();
final SimpleProcessIdentifier aProcID = new SimpleProcessIdentifier ("",
EPredefinedProcessIdentifier.BIS3_BILLING.getAsProcessIdentifier ()
.getValue ());
final ProcessIdentifierType aProcID;
if (true)
aProcID = EPredefinedProcessIdentifier.BIS3_BILLING.getAsProcessIdentifier ();
else
aProcID = new SimpleProcessIdentifier ("",
EPredefinedProcessIdentifier.BIS3_BILLING.getAsProcessIdentifier ()
.getValue ());

for (int i = 0; i < PARTICIPANTS; ++i)
for (int i = START_INDEX; i < START_INDEX + PARTICIPANTS; ++i)
{
final StopWatch aSW = StopWatch.createdStarted ();
final PeppolParticipantIdentifier aPI = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9999:test-philip-" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static void main (final String [] args) throws Throwable
{
final ObjectFactory aObjFactory = new ObjectFactory ();
final StopWatch aSWOverall = StopWatch.createdStarted ();
for (int i = 0; i < PARTICIPANTS; ++i)
for (int i = START_INDEX; i < START_INDEX + PARTICIPANTS; ++i)
{
final StopWatch aSW = StopWatch.createdStarted ();
final PeppolParticipantIdentifier aPI = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9999:test-philip-" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void main (final String [] args) throws Throwable
try
{
final StopWatch aSWOverall = StopWatch.createdStarted ();
for (int i = 0; i < PARTICIPANTS; ++i)
for (int i = START_INDEX; i < START_INDEX + PARTICIPANTS; ++i)
{
final StopWatch aSW = StopWatch.createdStarted ();
final PeppolParticipantIdentifier aPI = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9999:test-philip-" +
Expand Down

0 comments on commit 7177d39

Please sign in to comment.