mirror of
https://github.com/denoland/deno.git
synced 2025-09-13 22:26:20 +00:00
First pass at http benchmark.
This commit is contained in:
parent
62962e71fe
commit
c61a0f2f84
11 changed files with 154 additions and 1 deletions
|
@ -78,11 +78,19 @@ def parse_unit_test_output_test():
|
|||
assert expected == None
|
||||
|
||||
|
||||
def parse_wrk_output_test():
|
||||
print "Testing util.parse_wrk_output_test()..."
|
||||
f = open(os.path.join(util.root_path, "tools/testdata/wrk1.txt"))
|
||||
req_per_sec = util.parse_wrk_output(f.read())
|
||||
assert req_per_sec == 1837
|
||||
|
||||
|
||||
def util_test():
|
||||
pattern_match_test()
|
||||
parse_exit_code_test()
|
||||
shell_quote_win_test()
|
||||
parse_unit_test_output_test()
|
||||
parse_wrk_output_test()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue