File tree Expand file tree Collapse file tree 5 files changed +58
-1
lines changed Expand file tree Collapse file tree 5 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 39
39
the layout & logic from the original. (Ugh.)
40
40
41
41
"""
42
+ # Used in the polybench harness as the default number of iterations for
43
+ # this benchmark.
44
+ def iterations ():
45
+ return 60
46
+
47
+ # Used in the polybench harness for aggregating the iteration datapoints.
48
+ def summary ():
49
+ return {
50
+ "name" : "OutlierRemovalAverageSummary" ,
51
+ "lower-threshold" : 0.1 ,
52
+ "upper-threshold" : 0.4 ,
53
+ }
54
+
42
55
# The JS variant implements "OrderedCollection", which basically completely
43
56
# overlaps with ``list``. So we'll cheat. :D
44
57
class OrderedCollection (list ):
Original file line number Diff line number Diff line change 21
21
# or visit www.oracle.com if you need additional information or have any
22
22
# questions.
23
23
24
+ # Used in the polybench harness as the default number of warmup iterations
25
+ # for this benchmark.
26
+ def warmupIterations ():
27
+ return 10
28
+
29
+ # Used in the polybench harness as the default number of iterations for
30
+ # this benchmark.
31
+ def iterations ():
32
+ return 30
33
+
34
+ # Used in the polybench harness for aggregating the iteration datapoints.
35
+ def summary ():
36
+ return {
37
+ "name" : "OutlierRemovalAverageSummary" ,
38
+ "lower-threshold" : 0 ,
39
+ "upper-threshold" : 0.3 ,
40
+ }
41
+
24
42
def fibonacci (n ):
25
43
if n < 1 :
26
44
return 0
Original file line number Diff line number Diff line change 45
45
# Outer loop added by Alex Jacoby
46
46
from __future__ import print_function
47
47
48
+ # Used in the polybench harness as the default number of iterations for
49
+ # this benchmark.
50
+ def iterations ():
51
+ return 60
52
+
53
+ # Used in the polybench harness for aggregating the iteration datapoints.
54
+ def summary ():
55
+ return {
56
+ "name" : "OutlierRemovalAverageSummary" ,
57
+ "lower-threshold" : 0.05 ,
58
+ "upper-threshold" : 0.2 ,
59
+ }
60
+
48
61
# Task IDs
49
62
I_IDLE = 1
50
63
I_WORK = 2
Original file line number Diff line number Diff line change 21
21
# or visit www.oracle.com if you need additional information or have any
22
22
# questions.
23
23
24
+ # Used in the polybench harness as the default number of iterations for
25
+ # this benchmark.
26
+ def iterations ():
27
+ return 90
28
+
29
+ # Used in the polybench harness for aggregating the iteration datapoints.
30
+ def summary ():
31
+ return {
32
+ "name" : "OutlierRemovalAverageSummary" ,
33
+ "lower-threshold" : 0.1 ,
34
+ "upper-threshold" : 0.4 ,
35
+ }
36
+
24
37
def run ():
25
38
number = 600000
26
39
primes = list (range (0 , number + 1 ))
Original file line number Diff line number Diff line change 1
1
{
2
2
"polybench:warmup/pyflate-fast.py" : 3 ,
3
- "polybench:warmup/raytracer .py" : 3 ,
3
+ "polybench:warmup/raytrace .py" : 3 ,
4
4
"polybench:interpreter/pyinit.py" : 5 ,
5
5
"polybench:interpreter/deltablue.py" : 3 ,
6
6
"polybench:interpreter/fibonacci.py" : 0 ,
You can’t perform that action at this time.
0 commit comments