the CLI has felt a little bit slow at times. i had chalked it up to bad networking and it hasn't been a big issue. but if there are some easy optimisations which would noticeable improve user experience -- which andrea's timing data makes me think might be possible -- that would be nice!
--a On 1 December 2016 at 11:19, Geoff Macartney < [email protected]> wrote: > hi Andrea, > > it's not something I'd noticed myself. `br` would be a bit slower than > curl but it shouldn't be dramatic. I'll look into it, but it would be > certainly good to hear others' experiences here? > > cheers > Geoff > > > > On Thu, 1 Dec 2016 at 11:04 Andrea Turli <[email protected]> > wrote: > > > Hi team, > > > > I'm comparing br cli performance vs plain curl commands and this is some > of > > the surprising results I'm seeing: > > > > $ time br app myApp entity myEntity sensor > /dev/null > > > > real 0m3.833s > > user 0m0.008s > > sys 0m0.010s > > > > and > > > > $ br login http://brooklyn:8081 user password > > $ time curl -s -u user:password -X GET --header "Accept: > application/json" > > " > > > > http://brookyln:8081/v1/applications/myApp/entities/ > myEntity/sensors/current-state > > " > > > /dev/null > > > > real 0m0.400s > > user 0m0.005s > > sys 0m0.004s > > > > I’d expect some slow down but not that much. > > > > Is it something others are experiencing as well? > > > > Best, > > Andrea > > >
