Open Trzyipolkostkicukru opened 3 years ago
Also reproduced on macOS: https://github.com/apple/swift-collections/issues/345#issuecomment-1925098634
This can happen when the average duration measured happens to be zero. The fix ought to be straightforward.
Example code from README.md crashes on linux. The message I'm getting after installing swift-backtrace is "Swift runtime failure: Double value cannot be converted to Int because it is either infinite or NaN"
Project files without the ".build" directory ThisIsBenchmark.zip (if I included .build it would be too big for github)
Information
Checklist
main
branch of this package.Steps to Reproduce
Replace this paragraph with an explanation of how to reproduce the incorrect behavior. Include a simple code example, if possible.
swift run -c release ThisIsBenchmark run out
in terminalExpected behavior
package is compiled, and example benchmark is executed
Actual behavior
package is compiled with a "remark: Incremental compilation has been disabled: it is not compatible with whole module optimization", but crashes at runtime. Without the backtrace package the error doesn't say anything, but with the backtrace package it looks like this: