Skip to content

Commit

Permalink
create node test accounts for slow 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeez committed Sep 26, 2020
1 parent 2219050 commit 4a730da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,12 @@ def test_createNode_performance():
timings["createNode"]["cmdx"]["percall"]
)

assert_greater(cmdx_vs_cmds, 0.5) # at most 2x slower than cmds
assert_greater(cmdx_vs_api, 0.20) # at most 5x slower than API 2.0
if cmdx.__maya_version__ == 2017:
assert_greater(cmdx_vs_cmds, 0.4545) # at most 2.2x slower than cmds
assert_greater(cmdx_vs_api, 0.1818) # at most 5.5x slower than API 2.0
else:
assert_greater(cmdx_vs_cmds, 0.5) # at most 2x slower than cmds
assert_greater(cmdx_vs_api, 0.20) # at most 5x slower than API 2.0


@flaky(max_runs=20, min_passes=3)
Expand Down

0 comments on commit 4a730da

Please sign in to comment.