Skip to content

Commit b72de1e

Browse files
author
Andrija Kolic
committed
Configure benchmarks for peak performance measurements.
1 parent f69e447 commit b72de1e

12 files changed

Lines changed: 76 additions & 218 deletions

File tree

ci/graal/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Jsonnet files should not include this file directly but use ci/common.jsonnet instead."
55
],
66

7-
"mx_version": "7.82.2",
7+
"mx_version": "7.83.0",
88

99
"COMMENT.jdks": "When adding or removing JDKs keep in sync with JDKs in ci/common.jsonnet",
1010
"jdks": {

graalpython/com.oracle.graal.python.benchmarks/python/peak/attribute-access.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

graalpython/com.oracle.graal.python.benchmarks/python/peak/call-method-polymorphic.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

graalpython/com.oracle.graal.python.benchmarks/python/peak/deltablue.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2021, 2026, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# This code is free software; you can redistribute it and/or modify it
@@ -40,18 +40,18 @@
4040
4141
"""
4242
def warmupIterations():
43-
return 10
43+
return 300
4444

4545

4646
def iterations():
47-
return 0
47+
return 1000
4848

4949
# Used in the polybench harness for aggregating the iteration datapoints.
5050
def summary():
5151
return {
5252
"name": "OutlierRemovalAverageSummary",
53-
"lower-threshold": 0.1,
54-
"upper-threshold": 0.4,
53+
"lower-threshold": 0.0,
54+
"upper-threshold": 1.0,
5555
}
5656

5757
# The JS variant implements "OrderedCollection", which basically completely

graalpython/com.oracle.graal.python.benchmarks/python/peak/fibonacci.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2021, 2026, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# This code is free software; you can redistribute it and/or modify it
@@ -22,18 +22,18 @@
2222
# questions.
2323

2424
def warmupIterations():
25-
return 10
25+
return 0
2626

2727

2828
def iterations():
29-
return 0
29+
return 1000
3030

3131

3232
def summary():
3333
return {
3434
"name": "OutlierRemovalAverageSummary",
3535
"lower-threshold": 0,
36-
"upper-threshold": 0.3,
36+
"upper-threshold": 0.2,
3737
}
3838

3939

graalpython/com.oracle.graal.python.benchmarks/python/peak/richards.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2008-2010 Isaac Gouy
22
# Copyright (c) 2013, 2014, Regents of the University of California
3-
# Copyright (c) 2018, 2021, Oracle and/or its affiliates.
3+
# Copyright (c) 2018, 2021, 2026, Oracle and/or its affiliates.
44
# All rights reserved.
55
#
66
# Revised BSD license
@@ -46,17 +46,17 @@
4646
from __future__ import print_function
4747

4848
def warmupIterations():
49-
return 10
49+
return 0
5050

5151

5252
def iterations():
53-
return 0
53+
return 1000
5454

5555
# Used in the polybench harness for aggregating the iteration datapoints.
5656
def summary():
5757
return {
5858
"name": "OutlierRemovalAverageSummary",
59-
"lower-threshold": 0.05,
59+
"lower-threshold": 0.0,
6060
"upper-threshold": 0.2,
6161
}
6262

graalpython/com.oracle.graal.python.benchmarks/python/peak/sieve.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2021, 2026, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# This code is free software; you can redistribute it and/or modify it
@@ -22,18 +22,18 @@
2222
# questions.
2323

2424
def warmupIterations():
25-
return 10
25+
return 700
2626

2727

2828
def iterations():
29-
return 0
29+
return 500
3030

3131

3232
def summary():
3333
return {
3434
"name": "OutlierRemovalAverageSummary",
35-
"lower-threshold": 0.1,
36-
"upper-threshold": 0.4,
35+
"lower-threshold": 0.0,
36+
"upper-threshold": 0.2,
3737
}
3838

3939

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2021, 2026, Oracle and/or its affiliates. All rights reserved.
2+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3+
#
4+
# This code is free software; you can redistribute it and/or modify it
5+
# under the terms of the GNU General Public License version 2 only, as
6+
# published by the Free Software Foundation. Oracle designates this
7+
# particular file as subject to the "Classpath" exception as provided
8+
# by Oracle in the LICENSE file that accompanied this code.
9+
#
10+
# This code is distributed in the hope that it will be useful, but WITHOUT
11+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
# version 2 for more details (a copy is included in the LICENSE file that
14+
# accompanied this code).
15+
#
16+
# You should have received a copy of the GNU General Public License version
17+
# 2 along with this work; if not, write to the Free Software Foundation,
18+
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19+
#
20+
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21+
# or visit www.oracle.com if you need additional information or have any
22+
# questions.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(?:#!.*)?# Copyright \(c\) (20[0-9][0-9], )*(20[0-9][0-9]), Oracle and\/or its affiliates\. All rights reserved\.\s*
2+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER\.\s*
3+
#\s*
4+
# This code is free software; you can redistribute it and\/or modify it\s*
5+
# under the terms of the GNU General Public License version 2 only, as\s*
6+
# published by the Free Software Foundation\.\s+Oracle designates this\s*
7+
# particular file as subject to the "Classpath" exception as provided\s*
8+
# by Oracle in the LICENSE file that accompanied this code\.\s*
9+
#\s*
10+
# This code is distributed in the hope that it will be useful, but WITHOUT\s*
11+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\s*
12+
# FITNESS FOR A PARTICULAR PURPOSE\.\s+See the GNU General Public License\s*
13+
# version 2 for more details \(a copy is included in the LICENSE file that\s*
14+
# accompanied this code\)\.\s*
15+
#\s*
16+
# You should have received a copy of the GNU General Public License version\s*
17+
# 2 along with this work; if not, write to the Free Software Foundation,\s*
18+
# Inc\., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\.\s*
19+
#\s*
20+
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\s*
21+
# or visit www\.oracle\.com if you need additional information or have any\s*
22+
# questions\.\s*
23+
.*

mx.graalpython/copyrights/overrides

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ graalpython/com.oracle.graal.python.benchmarks/python/micro/special-len.py,zippy
6161
graalpython/com.oracle.graal.python.benchmarks/python/warmup/binarytrees3.py,benchmarks.copyright
6262
graalpython/com.oracle.graal.python.benchmarks/python/warmup/gcbench.py,pypy.copyright
6363
graalpython/com.oracle.graal.python.benchmarks/python/warmup/pads-integerpartitions.py,benchmarks.copyright
64+
graalpython/com.oracle.graal.python.benchmarks/python/peak/deltablue.py,gpl2cpe-python.copyright
65+
graalpython/com.oracle.graal.python.benchmarks/python/peak/fibonacci.py,gpl2cpe-python.copyright
66+
graalpython/com.oracle.graal.python.benchmarks/python/peak/richards.py,benchmarks.copyright
67+
graalpython/com.oracle.graal.python.benchmarks/python/peak/sieve.py,gpl2cpe-python.copyright
6468
graalpython/com.oracle.graal.python.cext/expat/ascii.h,expat.copyright
6569
graalpython/com.oracle.graal.python.cext/expat/asciitab.h,expat.copyright
6670
graalpython/com.oracle.graal.python.cext/expat/expat.h,expat.copyright

0 commit comments

Comments
 (0)