Skip to content

Commit

Permalink
- Removed hard coded thread limit
Browse files Browse the repository at this point in the history
- Adjusted the benchmark for a realalistic high populated server test
  • Loading branch information
Arkensor committed Feb 14, 2018
1 parent f6fe98e commit 7ce3f7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ diag_log "A3LOG: Benchmark starting in 5 seconds ...";

uiSleep 5;

g_nCallingThreads = 1000; //Simulating n requests from different sources like remoteexec on your server which all run in parallel
g_nCallsEach = 10; //How many calls does each of the threads do for the simulation
g_nCallingThreads = 254; //Simulating n requests from different sources like remoteexec on your server which all run in parallel
g_nCallsEach = 3; //How many calls does each of the threads do for the simulation

g_oResults = [];

[] spawn
{
_time = diag_tickTime;
private _time = diag_tickTime;

waitUntil { ( count g_oResults ) >= ( g_nCallingThreads * g_nCallsEach ) };

Expand Down
2 changes: 1 addition & 1 deletion src/Configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* Define the maximum amount of threads that will be created
* If not defined, there will be a thread for each cpu core
*/
#define _EXTENSION_MAX_THREADS 4
//#define _EXTENSION_MAX_THREADS 4

/**
* Do you want to print something to the console? [Windows only]
Expand Down

0 comments on commit 7ce3f7f

Please sign in to comment.