freecadweb.org performance issues

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

freecadweb.org performance issues

Post by kkremitzki »

Not sure if anyone else has noticed, but for me, the performance of several of the web apps powering the project leave quite a bit to be desired, so I wanted to make a thread to discuss the issue and see if anyone can make suggestions for improvements.

I did some very cursory testing, both of "production" freecadweb.org as well as "staging" staging.freecad.io. The first is located somewhere in Germany and the second is in Italy so both will experience the trans-Atlantic lag from my location. I did forced refreshes with Ctrl+F5 on Firefox Nightly and got the following results:

Prod:
  • Homepage: 838 KB, 2.63s
  • Forum: 1.05 MB, 2.01s
  • Wiki: 586 KB, 7.48s
  • Tracker: 1.12 MB, 8.30s
Staging
  • Homepage: 597 KB, 1.27s
  • Forum: 501 KB, 1.57s
  • Wiki: 485 KB, 3.46s
  • Tracker: 688 KB, 2.42s
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: freecadweb.org performance issues

Post by Kunda1 »

Reminds me of this quote:
Steve Jobs wrote:If it could save a person’s life, could you find a way to save ten seconds off the boot time? If there were five million people using the Mac, and it took ten seconds extra to turn it on every day, that added up to three hundred million or so hours per year people would save, which was the equivalent of at least one hundred lifetimes saved per year.
Just swap out 'boot' for 'load'.
I think it's time to do something about issue #2895 like... find a better host.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: freecadweb.org performance issues

Post by DeepSOIC »

at the moment I'm in CZ, very close to Germany. The forum page full refresh takes about the same: 1.5-2 seconds.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: freecadweb.org performance issues

Post by NormandC »

What tool did you use to get these exact timings Kurt?

Kunda1 wrote: Fri Jan 26, 2018 8:45 pm I think it's time to do something about issue #2895 like... find a better host.
Good luck. jriegel is still the one who pays for it, and he's always been adamant about using a European host, even a German one.

When I had a blog (years ago) I was with a small Montreal web host with outstanding service, basically a one-man company. I'd ask the guy for something and he'd do it the next day at the latest... Updating dependencies would have been done in a cinch.
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: freecadweb.org performance issues

Post by kkremitzki »

NormandC wrote: Sat Jan 27, 2018 3:06 pm What tool did you use to get these exact timings Kurt?
Using Firefox's dev tools. I hit Ctrl+Shift+I to launch them (or F12), go to the Network tab, and then load the page to see the results.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: freecadweb.org performance issues

Post by yorik »

We should pursue this discussion after the release, but it might be time to think again about the web provider issue. Also the freecad.io servers seem stable enough, we could maybe simply switch to them and redirect freecadweb.org...
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: freecadweb.org performance issues

Post by Kunda1 »

yorik wrote: Mon Jan 29, 2018 10:09 pm We should pursue this discussion after the release, but it might be time to think again about the web provider issue. Also the freecad.io servers seem stable enough, we could maybe simply switch to them and redirect freecadweb.org...
+1
I think kurt said he has paid for the freecad.io till march, right? We could consider keeping freecad.io
the webprovider issue main problems are:
+ kurt needs to update everything via FTP :shock: aka he doesn't have shell access (which says a lot about his dev ops skill... to be able to update phpbb, mediawiki, etc... )
+ limitations on using outdated serverside software
+ limitations to running certain tests with travisci (api hooks)
etc..etc..
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: freecadweb.org performance issues

Post by kkremitzki »

I can't recall what thread we discussed the performance improvements seen on www.freecad.io, but for a long time I've been wanting to set up a staging environment for the tracker that shows some of the benefits we could get from moving it off shared hosting. I've finally got that environment created at https://tracker.freecad.io. There seems to be a bug with the header still but otherwise it should be working OK.

For anyone interested, please give it a shot and let me know what you think about its performance. It seems faster to me.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: freecadweb.org performance issues

Post by chrisb »

I have the feeling it loads significantly faster here in germany.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: freecadweb.org performance issues

Post by kkremitzki »

chrisb wrote: Mon Feb 04, 2019 7:07 am I have the feeling it loads significantly faster here in germany.
For the record both servers are in Germany, freecadweb.org in Nuremberg and freecad.io in Frankfurt.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Post Reply