Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Execution time on VM, Logging level #195

Open
JakubMazur opened this issue Dec 5, 2018 · 2 comments
Open

Execution time on VM, Logging level #195

JakubMazur opened this issue Dec 5, 2018 · 2 comments

Comments

@JakubMazur
Copy link

JakubMazur commented Dec 5, 2018

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.

@ghost
Copy link

ghost commented Jul 11, 2019

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
Copy link

ghost commented Jul 11, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant