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 3939the layout & logic from the original. (Ugh.)
4040
4141"""
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+
4255# The JS variant implements "OrderedCollection", which basically completely
4356# overlaps with ``list``. So we'll cheat. :D
4457class OrderedCollection (list ):
Original file line number Diff line number Diff line change 2121# or visit www.oracle.com if you need additional information or have any
2222# questions.
2323
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+
2442def fibonacci (n ):
2543 if n < 1 :
2644 return 0
Original file line number Diff line number Diff line change 4545# Outer loop added by Alex Jacoby
4646from __future__ import print_function
4747
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+
4861# Task IDs
4962I_IDLE = 1
5063I_WORK = 2
Original file line number Diff line number Diff line change 2121# or visit www.oracle.com if you need additional information or have any
2222# questions.
2323
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+
2437def run ():
2538 number = 600000
2639 primes = list (range (0 , number + 1 ))
Original file line number Diff line number Diff line change 11{
22 "polybench:warmup/pyflate-fast.py" : 3 ,
3- "polybench:warmup/raytracer .py" : 3 ,
3+ "polybench:warmup/raytrace .py" : 3 ,
44 "polybench:interpreter/pyinit.py" : 5 ,
55 "polybench:interpreter/deltablue.py" : 3 ,
66 "polybench:interpreter/fibonacci.py" : 0 ,
You can’t perform that action at this time.
0 commit comments