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;








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










share|improve this question

















  • 1





    *nix has time command, that does exactly that.

    – akond
    Mar 26 at 13:27

















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










share|improve this question

















  • 1





    *nix has time command, that does exactly that.

    – akond
    Mar 26 at 13:27













0












0








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










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 26 at 13:02









Narendra PinnakaNarendra Pinnaka

917 bronze badges




917 bronze badges







  • 1





    *nix has time command, that does exactly that.

    – akond
    Mar 26 at 13:27












  • 1





    *nix has time command, 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












2 Answers
2






active

oldest

votes


















0














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)






share|improve this answer
































    0














    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?"






    share|improve this answer

























      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
      );



      );













      draft saved

      draft discarded


















      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









      0














      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)






      share|improve this answer





























        0














        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)






        share|improve this answer



























          0












          0








          0







          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)






          share|improve this answer















          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)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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























              0














              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?"






              share|improve this answer



























                0














                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?"






                share|improve this answer

























                  0












                  0








                  0







                  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?"






                  share|improve this answer













                  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?"







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 27 at 14:21









                  Nick NicholsNick Nichols

                  11 silver badge3 bronze badges




                  11 silver badge3 bronze badges



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

                      밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

                      1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴