Skip to content

Commit 504cd5b

Browse files
authored
Merge pull request #249 from pythonspeed/188-benchmark-overhead
Update to %-based benchmark results.
2 parents c3af8e6 + 9f5ea93 commit 504cd5b

File tree

5 files changed

+37
-32
lines changed

5 files changed

+37
-32
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"D1mr": 3655149,
3-
"D1mw": 2713965,
4-
"DLmr": 1452624,
5-
"DLmw": 1779154,
6-
"Dr": 229508709,
7-
"Dw": 93311599,
8-
"I1mr": 4106758,
9-
"ILmr": 14565,
10-
"Ir": 866790745,
11-
"Overall": 1328904831
2+
"D1mr": "3771157 (188.06264867688517%)",
3+
"D1mw": "2763734 (1002.7001956474165%)",
4+
"DLmr": "1492746 (2257.3344509639564%)",
5+
"DLmw": "1858942 (1333.7673887649994%)",
6+
"Dr": "231060633 (375.8621692938787%)",
7+
"Dw": "88001037 (338.04076205255154%)",
8+
"I1mr": "3555117 (1291.257363437142%)",
9+
"ILmr": "14685 (224.7663551401869%)",
10+
"Ir": "872039764 (403.39198904097907%)",
11+
"Overall": "1332452656 (406.55387644593173%)"
1212
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"D1mr": 1820859,
3-
"D1mw": 386474,
4-
"DLmr": 60435,
5-
"DLmw": 78194,
6-
"Dr": 77751713,
7-
"Dw": 32292276,
8-
"I1mr": 1495362,
9-
"ILmr": 8373,
10-
"Ir": 257981761,
11-
"Overall": 387246590
2+
"D1mr": "1866984 (413.64545831772375%)",
3+
"D1mw": "393456 (455.7661355950594%)",
4+
"DLmr": "59324 (493.26483261518064%)",
5+
"DLmw": "77459 (220.9427598913281%)",
6+
"Dr": "77161209 (571.2328286082947%)",
7+
"Dw": "30820902 (440.2169730406361%)",
8+
"I1mr": "1638950 (586.5692113122628%)",
9+
"ILmr": "7958 (171.83607149304927%)",
10+
"Ir": "254542209 (491.30873094686683%)",
11+
"Overall": "382464110 (492.83707107089475%)"
1212
}

benchmarks/results/pystone.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"D1mr": 3493431,
3-
"D1mw": 1170982,
4-
"DLmr": 27810,
5-
"DLmw": 55475,
6-
"Dr": 360208809,
7-
"Dw": 152234419,
8-
"I1mr": 8048210,
9-
"ILmr": 8271,
10-
"Ir": 1136235757,
11-
"Overall": 1702276157
2+
"D1mr": "4542966 (144.07376585255872%)",
3+
"D1mw": "1628141 (267.75567903740483%)",
4+
"DLmr": "32802 (331.7507418397626%)",
5+
"DLmw": "65725 (241.46577701248387%)",
6+
"Dr": "367659717 (157.6310977517437%)",
7+
"Dw": "143586175 (159.9837295595579%)",
8+
"I1mr": "8784651 (214.74165578852526%)",
9+
"ILmr": "7924 (170.99086185271457%)",
10+
"Ir": "1160233461 (157.01681262908485%)",
11+
"Overall": "1734495915 (158.00764418609307%)"
1212
}

benchmarks/results/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.5.1.dev10+g128d75e.d20210518
1+
2021.9.2.dev9+gc3af8e6.d20211105

filprofiler/_script.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ def stage_1_benchmark(args: List[str]):
143143
[LD_LINUX, "--preload", library_path("_filpreload"), which("python")] + args
144144
)
145145
# 3. Store the difference.
146-
result = {k: (fil_result[k] - python_result[k]) for k in fil_result}
146+
result = {
147+
k: "{} ({}%)".format(
148+
(fil_result[k] - python_result[k]), fil_result[k] * 100 / python_result[k]
149+
)
150+
for k in fil_result
151+
}
147152
with open(destination, "w+") as f:
148153
json.dump(result, f, sort_keys=True, indent=4)
149154
f.flush()

0 commit comments

Comments
 (0)