Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 709c89e

Browse files
authored
Adding X10 WordSeg variants to PerfZero interface file. (#594)
1 parent 8141444 commit 709c89e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Benchmarks/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@ def sentence_14(self):
5959
result = run_swift_wordseg_benchmark(name=self.benchmark_name, sentence_length='14', backend='eager')
6060
self.report_benchmark(**result)
6161

62+
def sentence_4_x10(self):
63+
"""Runner-callable benchmark entry point for WordSeg sentence-length 4 benchmark on X10."""
64+
result = run_swift_wordseg_benchmark(name=self.benchmark_name, sentence_length='4', backend='x10')
65+
self.report_benchmark(**result)
66+
67+
def sentence_8_x10(self):
68+
"""Runner-callable benchmark entry point for WordSeg sentence-length 8 benchmark on X10."""
69+
result = run_swift_wordseg_benchmark(name=self.benchmark_name, sentence_length='8', backend='x10')
70+
self.report_benchmark(**result)
71+
72+
def sentence_14_x10(self):
73+
"""Runner-callable benchmark entry point for WordSeg sentence-length 14 benchmark on X10."""
74+
result = run_swift_wordseg_benchmark(name=self.benchmark_name, sentence_length='14', backend='x10')
75+
self.report_benchmark(**result)
76+
6277
def training(self):
6378
"""Runner-callable benchmark entry point for eager training benchmark."""
6479
result = run_swift_benchmark(name=self.benchmark_name, variety='training', backend='eager')

0 commit comments

Comments
 (0)