Skip to content
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

[Bug]: Experiencing slowness with bal run command #41496

Closed
lochana-chathura opened this issue Oct 10, 2023 · 1 comment · Fixed by #41659
Closed

[Bug]: Experiencing slowness with bal run command #41496

lochana-chathura opened this issue Oct 10, 2023 · 1 comment · Fixed by #41659
Assignees
Labels
Priority/High Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug

Comments

@lochana-chathura
Copy link
Member

lochana-chathura commented Oct 10, 2023

Description

$subject.

try bal run and bal run --offline for a simple hello world program.

import ballerina/io;
public function main() {
    io:println("Hello world!");
}

bal run command:

lochanaj@lochanaj-2 BLearn % time bal run test.bal
Compiling source
        test.bal

Running executable

Hello world!
bal run test.bal  3.15s user 0.25s system 38% cpu 8.854 total
lochanaj@lochanaj-2 BLearn % time bal run --offline test.bal 
Compiling source
        test.bal

Running executable

Hello world!
bal run --offline test.bal  1.89s user 0.14s system 186% cpu 1.088 total

bal build command:

lochanaj@lochanaj-2 BLearn % time bal build test.bal
Compiling source
        test.bal

Generating executable
        test.jar
bal build test.bal  2.96s user 0.24s system 62% cpu 5.128 total
lochanaj@lochanaj-2 BLearn % time bal build --offline test.bal
Compiling source
        test.bal

Generating executable
        test.jar
bal build --offline test.bal  2.21s user 0.18s system 192% cpu 1.247 total

Related issues: #40024

Steps to Reproduce

No response

Affected Version(s)

Experienced with 2201.8.0, 2201.8.1, 2201.7.1. Did not test on the other versions.

OS, DB, other environment details and versions

MacOS Monterey

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Copy link

github-actions bot commented Nov 9, 2023

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority/High Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug
Projects
None yet
2 participants