Skip to content

Commit cceb3a3

Browse files
committed
Thanks to @rschoene for adjusting the benchmark.
1 parent b902899 commit cceb3a3

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

benchmark/benchmark.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
import benchmark_helper
77
import pickle
88

9-
bench = benchmark_helper.BenchmarkEnv(repetitions=11)
9+
bench = benchmark_helper.BenchmarkEnv(repetitions=51)
1010
tests = ["test_1.py", "test_2.py"]
1111
results = {}
1212

13+
reps_x={}
14+
reps_x["test_1.py"]=["1000000", "2000000", "3000000", "4000000", "5000000"]
15+
reps_x["test_2.py"]=["100000", "200000", "300000", "400000", "500000"]
16+
17+
1318
for test in tests:
1419
results[test] = {"profile": {}, "trace": {}, "dummy": {}, "None": {}}
1520
for instrumenter in results[test]:
@@ -23,7 +28,7 @@
2328
print("#########")
2429
print("{}: {}".format(test, scorep_settings))
2530
print("#########")
26-
for reps in ["1000", "10000", "100000", "1000000", "10000000"]:
31+
for reps in reps_x[test]:
2732
times = bench.call(
2833
test,
2934
[reps],

benchmark/benchmark_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def call(self, script="", ops=[], enable_scorep=True, scorep_settings=[]):
4040
runtimes = []
4141
for i in range(self.repetitions):
4242
begin = time.time()
43+
print (arguments)
4344
out = subprocess.run(
4445
arguments,
4546
env=self.env,

benchmark/run.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@
55
#SBATCH -A p_readex
66
#SBATCH -N 1
77
#SBATCH --ntasks-per-node=1
8-
#SBATCH -c 24
8+
#SBATCH -c 1
99
#SBATCH --comment=no_monitoring
1010
#SBATCH --job-name benchmark_python
1111

12+
module load Python/3.6.4-intel-2018a
13+
module unload intel
14+
module load intel
1215

13-
module load Python/3.6.6-foss-2019a
16+
export PATH=/scratch/rschoene/scorep-6-inst/bin:$PATH
1417

15-
module use /home/gocht/modules
16-
module load scorep/scorep-6.0-python3.6.6-foss-2019a
17-
# Score-P 6.0 build with
18-
# ../configure --prefix=/home/gocht/sw/scorep/scorep-6.0-python3.6.6-foss-2019a --enable-shared
19-
# scorep_binding_python git sha: 8d35a668b0a59480e4e7fd9f43ae50949d807241
20-
# installed in virtual environment
18+
. ~/scorep_binding_python/test/bin/activate
2119

22-
. ~/virtenv/Python-3.6.6-foss-2019a/bin/activate
23-
24-
srun taskset -c 0 python benchmark.py
20+
srun python benchmark.py

0 commit comments

Comments
 (0)