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:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user