Skip to content

Commit 965c5e8

Browse files
committed
Update performance patterns
1 parent 7028241 commit 965c5e8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cscs-checks/microbenchmarks/cpu/fft/fftw_benchmark.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ class FFTWTest(rfm.RegressionTest):
2121
maintainers = ['AJ']
2222
tags = {'benchmark', 'scs', 'craype'}
2323

24-
@run_before('performance')
25-
def set_performance(self):
26-
self.perf_patterns = {
27-
'fftw_exec_time': sn.extractsingle(
28-
r'execution time:\s+(?P<exec_time>\S+)', self.stdout,
29-
'exec_time', float),
30-
}
24+
@performance_function('s')
25+
def fftw_exec_time(self):
26+
return sn.extractsingle(
27+
r'execution time:\s+(?P<exec_time>\S+)', self.stdout,
28+
'exec_time', float
29+
)
3130

3231
@sanity_function
3332
def found_execution_time(self):

0 commit comments

Comments
 (0)