We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a simple contrived example:
-module(perf_ex). -compile(export_all). -include_lib("proper/include/proper.hrl"). -record(msg, { a = 0 :: 0..16#ffffffff, b = 0 :: 0..16#f }). -type(msg() :: #msg{}). -spec encode(msg()) -> binary(). encode(#msg{a = A, b = B}) -> <<A:32, B:4>>. -spec decode(binary()) -> msg(). decode(<<A:32, B:4>>) -> #msg{a=A, b=B}. prop_identity() -> ?FORALL(Msg, msg(), Msg =:= decode(encode(Msg))).
And the results:
1> timer:tc(fun() -> proper:quickcheck(perf_ex:prop_identity(), [5, {max_size, 42}]) end). ..... OK: Passed 5 test(s). {8170,true} 2> timer:tc(fun() -> proper:quickcheck(perf_ex:prop_identity(), [5, {max_size, 16#ffffffff}]) end). ..... OK: Passed 5 test(s). {658751072,true}
I haven't been able to determine what's causing the slowdown, but it's significant. Any suggestions?
The text was updated successfully, but these errors were encountered:
91aaec3
Thanks for reporting this. The issue should be fixed now, let me know if it's still giving you trouble.
Sorry, something went wrong.
Add an appropriate performance test for issue #55
3a43ca9
manopapad
No branches or pull requests
Here's a simple contrived example:
And the results:
I haven't been able to determine what's causing the slowdown, but it's significant. Any suggestions?
The text was updated successfully, but these errors were encountered: