New issue
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
Benchmarking #69
Comments
With #68 addition is almost 2x faster than it was in v0.4 julia> using SoftPosit
julia> A,B = Posit16.(rand(1000,1000)),Posit16.(rand(1000,1000));
julia> using BenchmarkTools
julia> @btime +($A,$B);
15.684 ms (2 allocations: 1.91 MiB) compared to julia> @btime +($A,$B);
25.477 ms (2 allocations: 1.91 MiB) |
Completely in-place, to remove memory allocations and GC from the game:
vs
Timings for me are closer, but definitely better anyway (maximum time on |
Yeah, I mean one could define |
This is to summarize the performance of SoftPosit.jl measured via the conversion to and from Posit16 to and from Float32
*upcoming release which will include #68, the new 2022 posit standard and type-flexible conversions such that all
PositN(::FloatN)
conversion use a single function (with multiple-dispatch). Tested viaThe text was updated successfully, but these errors were encountered: