Skip to content

Commit

Permalink
[mycpp/examples] Cleanup examples/benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Nov 26, 2020
1 parent fe4c93a commit c454692
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion mycpp/examples/cast.py → mycpp/examples/test_cast.py
Expand Up @@ -48,7 +48,7 @@ def run_tests():

def run_benchmarks():
# type: () -> None
pass
raise NotImplementedError()


if __name__ == '__main__':
Expand Down
Expand Up @@ -56,9 +56,7 @@ def run_tests():

def run_benchmarks():
# type: () -> None

# No meaningful benchmark here, skip it
log('NO BENCHMARK')
raise NotImplementedError()


if __name__ == '__main__':
Expand Down
7 changes: 1 addition & 6 deletions mycpp/examples/hoist.py → mycpp/examples/test_hoist.py
Expand Up @@ -50,12 +50,7 @@ def run_tests():

def run_benchmarks():
# type: () -> None

# For testing shared_ptr optimization
s = 'foo'
for i in xrange(100000):
s = strfunc(s)
log("len = %d", len(s))
raise NotImplementedError()


if __name__ == '__main__':
Expand Down
4 changes: 1 addition & 3 deletions mycpp/examples/switch_.py → mycpp/examples/test_switch.py
Expand Up @@ -31,9 +31,7 @@ def run_tests():

def run_benchmarks():
# type: () -> None

# No meaningful benchmark here, skip it
log('NO BENCHMARK')
raise NotImplementedError()


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion mycpp/harness.sh
Expand Up @@ -306,7 +306,7 @@ should-skip() {

should-skip-benchmark() {
case $1 in
(hoist|conditional|switch_)
(test_*)
return 0 # nope, nothing interesting here
;;
esac
Expand Down

0 comments on commit c454692

Please sign in to comment.