Add Kotlin script for running benchmarks on iOS#5563
Conversation
…ce separateProcess flag for running benchmarks in separate process
| */ | ||
| expect fun saveBenchmarkStats(name: String, stats: BenchmarkStats) | ||
|
|
||
| expect val isIosTarget: Boolean |
There was a problem hiding this comment.
Not sure it's a good variable name for the common code. Could you please elaborate why we need to print stats only for iOS platform?
There was a problem hiding this comment.
Desktop/macos store stats on disk directly. Web sends stats via server.
For iOS we can't store stats on disk, because the disk is the device disk that is write protected. The easiest way is to send it to console and parse on the running host side (from the script). This way we uninfy interface with other platforms.
Not sure it's a good variable name for the common code
We may introduce target instead, but currently only iOS specific logic is required.
|
|
||
| fun runReal() = Config.isModeEnabled(Mode.REAL) | ||
|
|
||
| fun runBenchmarks() { |
There was a problem hiding this comment.
Let's add this option to prevent screen from dimming:
| fun runBenchmarks() { | |
| UIApplication.sharedApplication.setIdleTimerDisabled(true) |
Add
run_ios_benchmarks.main.ktsscript for running benchmarks on iOS:compare_benchmarks.main.ktsfor iOS targetRelease Notes
N/A