Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
baseline runs nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
taivop committed Oct 9, 2016
1 parent e3d9e91 commit 42127d6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/py/exp_baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,18 @@

# There should be just one client if concurrency=1, otherwise two clients
concurrency_per_client = ms_concurrencies[i]
if concurrency_per_client > 1:
concurrency_per_client /= 2
if concurrency_per_client == 1:
concurrency_per_client = 1
else:
concurrency_per_client = int(concurrency_per_client / 2)

memaslap_server1.start(concurrency=ms_concurrencies[i], runtime=EXPERIMENT_RUNTIME_STRING,
memaslap_server1.start(concurrency=concurrency_per_client, runtime=EXPERIMENT_RUNTIME_STRING,
stats_freq=STATS_FREQUENCY,
log_filename=log_filename_base.format(1, concurrency_per_client, rep))
log_filename=log_filename_base.format(1, ms_concurrencies[i], rep))
if ms_concurrencies[i] > 1:
memaslap_server2.start(concurrency=ms_concurrencies[i], runtime=EXPERIMENT_RUNTIME_STRING,
memaslap_server2.start(concurrency=concurrency_per_client, runtime=EXPERIMENT_RUNTIME_STRING,
stats_freq=STATS_FREQUENCY,
log_filename=log_filename_base.format(1, concurrency_per_client, rep))
log_filename=log_filename_base.format(1, ms_concurrencies[i], rep))
time.sleep(EXPERIMENT_RUNTIME + 5)
memcached_server.stop()
# endregion
Expand Down

0 comments on commit 42127d6

Please sign in to comment.