Skip to content

Commit befafa0

Browse files
juwinvirayfacebook-github-bot
authored andcommitted
setup entry for edge hardware on dc perf
Summary: Trying to set up an entry for edge hardware in DC perf so we can start iterating. The only test is sleep which is copied from default. Will start including the benchmarks once they are developed. Following this guide to add the entries https://www.internalfb.com/wiki/Capacity_Engineering/CHiPs/DCPerf/Development_Guide/how-to-add-benchmark/ Differential Revision: D82576323
1 parent de71623 commit befafa0

6 files changed

Lines changed: 45 additions & 2 deletions

File tree

benchpress/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def register_benchmark_suite(name):
7070
register_benchmark_suite("internal")
7171
register_benchmark_suite("wdl_v1")
7272
register_benchmark_suite("v1")
73+
register_benchmark_suite("ehw")
7374

7475
register_benchmark_suite("wdl")
7576
register_benchmark_suite("system")

benchpress/plugins/parsers/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66

77
# pyre-unsafe
88

9-
from benchpress.lib import open_source
10-
119
from .adsim import AdSimParser
1210

1311
from .benchdnn import BenchdnnParser
1412
from .cachebench import CacheBenchParser
13+
from .cdn_bench import CDNBenchParser
1514
from .checkmark import CheckmarkParser
1615
from .chm import ChmParser
1716
from .clang import ClangParser
@@ -108,6 +107,7 @@ def register_parsers(factory):
108107
factory.register("chm", ChmParser)
109108
factory.register("deser", DeserParser)
110109
factory.register("adsim", AdSimParser)
110+
factory.register("cdn_bench", CDNBenchParser)
111111

112112
# if not open_source:
113113
# factory.register("adsim", AdSimParser)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python3
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
#
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
# pyre-unsafe
8+
9+
from benchpress.lib.parser import Parser
10+
11+
12+
class CDNBenchParser(Parser):
13+
"""The Parser returns a dictionary of metrics mapping name → value."""
14+
15+
def parse(self, stdout, stderr, returncode):
16+
return {
17+
"exit_code": returncode,
18+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
#
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
set -Eeuo pipefail
7+
8+
echo "Goodbye, World!"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
#
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
set -Eeuo pipefail
7+
8+
echo "Hello, World!"

packages/cdn_bench/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
#
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
set -Eeuo pipefail
7+
8+
echo "Run, World!"

0 commit comments

Comments
 (0)