How to see execution time for lein tasksCompojure: lein-ring in production?make lein uberjar without source filesIs it possible to call a lein-plugin function from a lein-repl?lein and lein-test-out pluginRunning 'lein test' without compiling ClojureScriptHow do I remove a function from the lein repl?Any way to add dependency to lein project without REPL restart?Load fns into lein replLein console (like sbt)lein run with strange behavior
Why do we need an estimator to be consistent?
How can I show that the speed of light in vacuum is the same in all reference frames?
ADC Calibration - Vdd calculation
Why didn't NASA launch communications relay satellites for the Apollo missions?
Has Iron Man made any suit for underwater combat?
How does mathematics work?
You have no, but can try for yes
ESTA Travel not Authorized. Accepted twice before!
Why are Oscar, India, and X-Ray (O, I, and X) not used as taxiway identifiers?
Pass USB 3.0 connection through D-SUB connector
Why Lie algebras if what we care about in physics are groups?
Group recursively adjacent tuples from a list in Python
"Bootstrapping" an unbounded class of inaccessible cardinals
What should I watch before playing Alien: Isolation?
Longest to Shortest tractates of Yerushalmi by daf
1025th term of the given sequence.
Why was Quirrell said to be in the Black Forest if Voldemort was actually in Albania?
Is there a smart way to pick up Page Design other than Template to Design mapping?
Warlock Eldritch Blast Beam from single free hand?
How do you structure large embedded projects
Does switching on an old games console without a cartridge damage it?
What would be the effects of (relatively) widespread precognition on the stock market?
My current job follows "worst practices". How can I talk about my experience in an interview without giving off red flags?
Is it OK to accept a job opportunity while planning on not taking it?
How to see execution time for lein tasks
Compojure: lein-ring in production?make lein uberjar without source filesIs it possible to call a lein-plugin function from a lein-repl?lein and lein-test-out pluginRunning 'lein test' without compiling ClojureScriptHow do I remove a function from the lein repl?Any way to add dependency to lein project without REPL restart?Load fns into lein replLein console (like sbt)lein run with strange behavior
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Is there a way to see executing time for lein goals.
I want something like
lein test
.....
elapsed time: 00:01:35
lein do clean, test
.....
elapsed time: 00:01:59
clojure leiningen
add a comment |
Is there a way to see executing time for lein goals.
I want something like
lein test
.....
elapsed time: 00:01:35
lein do clean, test
.....
elapsed time: 00:01:59
clojure leiningen
1
*nix hastimecommand, that does exactly that.
– akond
Mar 26 at 13:27
add a comment |
Is there a way to see executing time for lein goals.
I want something like
lein test
.....
elapsed time: 00:01:35
lein do clean, test
.....
elapsed time: 00:01:59
clojure leiningen
Is there a way to see executing time for lein goals.
I want something like
lein test
.....
elapsed time: 00:01:35
lein do clean, test
.....
elapsed time: 00:01:59
clojure leiningen
clojure leiningen
asked Mar 26 at 13:02
Narendra PinnakaNarendra Pinnaka
917 bronze badges
917 bronze badges
1
*nix hastimecommand, that does exactly that.
– akond
Mar 26 at 13:27
add a comment |
1
*nix hastimecommand, that does exactly that.
– akond
Mar 26 at 13:27
1
1
*nix has
time command, that does exactly that.– akond
Mar 26 at 13:27
*nix has
time command, that does exactly that.– akond
Mar 26 at 13:27
add a comment |
2 Answers
2
active
oldest
votes
As akond said, on linux or macOS, just use time:
> time lein uberjar
lein uberjar 4.82s user 0.99s system 124% cpu 4.671 total
I use this all the time (mostly for lein test, etc)
add a comment |
As mentioned, *nix time will provide execution statistics for the entire command.
If you want to drill down and find root cause of a particular performance issue (i.e inefficient test cases) you'll want to create a separate namespace/entry point for profiling with something like tufte. You can sequence individual functions or entire blocks and get runtime statistics to answer the probable underlying question of "why is x so damn slow?"
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357866%2fhow-to-see-execution-time-for-lein-tasks%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
As akond said, on linux or macOS, just use time:
> time lein uberjar
lein uberjar 4.82s user 0.99s system 124% cpu 4.671 total
I use this all the time (mostly for lein test, etc)
add a comment |
As akond said, on linux or macOS, just use time:
> time lein uberjar
lein uberjar 4.82s user 0.99s system 124% cpu 4.671 total
I use this all the time (mostly for lein test, etc)
add a comment |
As akond said, on linux or macOS, just use time:
> time lein uberjar
lein uberjar 4.82s user 0.99s system 124% cpu 4.671 total
I use this all the time (mostly for lein test, etc)
As akond said, on linux or macOS, just use time:
> time lein uberjar
lein uberjar 4.82s user 0.99s system 124% cpu 4.671 total
I use this all the time (mostly for lein test, etc)
edited Mar 26 at 18:58
Nathan Davis
4,22521 silver badges33 bronze badges
4,22521 silver badges33 bronze badges
answered Mar 26 at 15:55
Alan ThompsonAlan Thompson
15.7k2 gold badges26 silver badges36 bronze badges
15.7k2 gold badges26 silver badges36 bronze badges
add a comment |
add a comment |
As mentioned, *nix time will provide execution statistics for the entire command.
If you want to drill down and find root cause of a particular performance issue (i.e inefficient test cases) you'll want to create a separate namespace/entry point for profiling with something like tufte. You can sequence individual functions or entire blocks and get runtime statistics to answer the probable underlying question of "why is x so damn slow?"
add a comment |
As mentioned, *nix time will provide execution statistics for the entire command.
If you want to drill down and find root cause of a particular performance issue (i.e inefficient test cases) you'll want to create a separate namespace/entry point for profiling with something like tufte. You can sequence individual functions or entire blocks and get runtime statistics to answer the probable underlying question of "why is x so damn slow?"
add a comment |
As mentioned, *nix time will provide execution statistics for the entire command.
If you want to drill down and find root cause of a particular performance issue (i.e inefficient test cases) you'll want to create a separate namespace/entry point for profiling with something like tufte. You can sequence individual functions or entire blocks and get runtime statistics to answer the probable underlying question of "why is x so damn slow?"
As mentioned, *nix time will provide execution statistics for the entire command.
If you want to drill down and find root cause of a particular performance issue (i.e inefficient test cases) you'll want to create a separate namespace/entry point for profiling with something like tufte. You can sequence individual functions or entire blocks and get runtime statistics to answer the probable underlying question of "why is x so damn slow?"
answered Mar 27 at 14:21
Nick NicholsNick Nichols
11 silver badge3 bronze badges
11 silver badge3 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357866%2fhow-to-see-execution-time-for-lein-tasks%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
*nix has
timecommand, that does exactly that.– akond
Mar 26 at 13:27