1
0
forked from Mirror/wren

Add a benchmark to test the Wren C API.

I've got some ideas on how to tweak the embedding API, but I want to
see what performance impact they have first, so this adds a little
benchmark that just calls a foreign method a ton of times.
This commit is contained in:
Bob Nystrom
2015-12-15 16:02:13 -08:00
parent 873926915f
commit 01e8f9053e
16 changed files with 118 additions and 60 deletions

View File

@ -111,10 +111,6 @@ class Test:
def run(self, app, type):
# Invoke wren and run the test.
test_arg = self.path
if type == "api test":
# Just pass the suite name to API tests.
test_arg = basename(splitext(test_arg)[0])
proc = Popen([app, test_arg], stdin=PIPE, stdout=PIPE, stderr=PIPE)
# If a test takes longer than two seconds, kill it.