Marathon icon indicating copy to clipboard operation
Marathon copied to clipboard

Execution time on VM, Logging level

Open JakubMazur opened this issue 6 years ago • 2 comments

I'm using bitrise.io as a build server and they create new VM every time build is happening. I need to execute marathon script every time before build. The issue I'm having is execution time taking a lot of time, so I made as simple as possible shell script:

echo "import Foundation; print(\"Hello World\")" > helloWorld.swift
marathon run helloWorld.swift --verbose

And it's taking over 3 minutes to run there. I'm trying to debug this with --verbose with an assistance of bitrise support team member to see what's taking the most time there, but it's logging everything at once when the scripts end execution. Any solutions for more detail logging and identifying what causing this extend execution time?

In case if installation time does matter (It shouldn't I guess) I'm installing Marathon via SPM like:

git clone https://github.com/JohnSundell/Marathon.git
cd Marathon
swift build -c release -Xswiftc -static-stdlib
cp -f .build/release/Marathon /usr/local/bin/marathon

And this installation script finishes there with reasonable time.

I had suspisions for hidden installation and copying files that causing the issues, but running the script twice actually double the time of execution.

JakubMazur avatar Dec 05 '18 18:12 JakubMazur

It may not be necessary to link the standard library anymore. I suppose the README should be updated.

https://github.com/JohnSundell/Marathon/pull/202/files

ghost avatar Jul 11 '19 09:07 ghost

Just realised this issue is several months old...sorry

ghost avatar Jul 11 '19 09:07 ghost