-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[swift-parse-test] Tweak for review #69550
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
Conversation
@@ -178,13 +194,16 @@ perform(const SmallVectorImpl<std::unique_ptr<llvm::MemoryBuffer>> &buffers, | |||
auto cDisplay = | |||
std::chrono::duration_cast<std::chrono::milliseconds>(cDuration).count(); | |||
|
|||
// Throughputs are based on CPU time. | |||
auto byteTPS = totalBytes * duration_t::period::den / cDuration.count(); | |||
auto lineTPS = totalLines * duration_t::period::den / cDuration.count(); | |||
|
|||
llvm::outs() << llvm::format("wall clock time (ms): %8d\n", tDisplay) | |||
<< llvm::format("cpu time (ms): %8d\n", cDisplay) | |||
<< llvm::format("throughput (byte/s): %8d\n", byteTPS) | |||
<< llvm::format("throughput (line/s): %8d\n", lineTPS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't change this (clarifying CPU time based) because I didn't want to make these headers long.
I am not certain at this point. Maybe we can use this as a ASTGen test utility to verify the ASTGen result, or testing
I don't really have strong opinion on this 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@swift-ci Please smoke test |
9984701
to
16f203a
Compare
@swift-ci Please smoke test |
* 'iteration' -> 'iterations' * Comment to clarify cpu time vs wall clock time * Return 'Error' from the executors
16f203a
to
cb5fd7d
Compare
@swift-ci Please smoke test |
@swift-ci Please smoke test Windows |
return llvm::Error::success(); | ||
#else | ||
return llvm::createStringError(llvm::inconvertibleErrorCode(), | ||
"SwiftParser is not supported") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rintaro, this C++ syntax error broke builds that don't use SwiftSyntax:
/home/ubuntu/jenkins/workspace/oss-swift-RA-linux-ubuntu-16.04-android-arm64/swift/lib/DriverTool/swift_parse_test_main.cpp:111:67: error: expected ';' after return statement
"SwiftParser is not supported")
Tweak fore the review on #69470