-
Notifications
You must be signed in to change notification settings - Fork 48
Add placeholder ordo-benchmark and JMH benchmarks #134
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
.product(name: "JavaKitNetwork", package: "swift-java"), | ||
.product(name: "Benchmark", package: "package-benchmark"), | ||
], | ||
path: "Benchmarks/JavaApiCallBenchmarks", |
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.
Cool structure is looking good now
$(BUILD_DIR)/jextract/ExampleSwiftLibrary/MySwiftLibrary.swiftinterface; \ | ||
swift run jextract-swift \ | ||
--package-name org.swift.swiftkit.generated \ | ||
--swift-module SwiftKitSwift \ | ||
--output-directory ${SAMPLES_DIR}/SwiftKitSampleApp/src/generated/java \ | ||
--output-directory ${SAMPLES_DIR}/SwiftKitSampleApp/build/generated/sources/jextract/main \ |
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.
makes sense!
This all looks excellent, thank you! I only added a small note into the readme how to run the benchmarks :) |
I have now included building (not running) the benchmarks in CI as well so we don't regress them by accident. |
heh compiling swift benchmarks crashes on linux. I'll disable them in CI for now. |
There's only one sample benchmark for each system at the moment, so as to keep the PR scope in check.
There are a couple of known issues:
gradlew jmh
.swift package benchmark
fails with aSIL verification failed: Two variables with different type but same scope!
exception in the compiler. I can attach some logs if that'd be useful.I'm not sure if this PR is too early to merge, but I'd very much appreciate pointers on how to address either the above issues, or anything else that seems unusual in my PR. For instance, my formatter keeps trying to fix indents; if that's too noisy, I can manually remove them for now and open a follow-up PR.
I can confirm that everything passes
act pull_request
, at least, but I needed to add a dependency onjemalloc
in order to build the Swift benchmarking tool.