Git Product home page Git Product logo

Comments (6)

ViBiOh avatar ViBiOh commented on September 28, 2024 1

Fibr relies on basics of HTTP for all the things. I've never experienced slow browse or upload.

Upload is progressive with the help of XMLHttpRequest. The counterpart is that it opens a new connections for every uploaded file (with SSL handshake, basic auth, and so on). I'm using a custom multipart reader for upload in order to avoid loading file in memory (for large videos, by example)

Authentication is made with HTTP Basic and an in-memory state, so everything should be fast.

What order of bandwith degradation do you see ?

from fibr.

kcubeterm avatar kcubeterm commented on September 28, 2024

What order of bandwith degradation do you see ?

I expect atleast 3 mb/s, even python http server provide 3 to 5 mb/s, and with ftp I get 11 mb/s download speed, but with fibr I didn't see that speed, fibr gives 1 mb/s.

I have a golang program written by self gives 3.6 mb/s.

from fibr.

ViBiOh avatar ViBiOh commented on September 28, 2024

When files are uploaded, they are directly written to the disk, via an io pipe. There is no memory bufferization other than the 32kb copy.

Check your disk write speed

sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync
rm tempfile

I've checked with my personnal instance with my cellular connection shared with my laptop.

> sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 2.50657 s, 428 MB/s

I have a download speed of 10Mb/s, so the limitation is on the network, not the disk.

> curl -q -4 -o /tmp/100M.iso https://bouygues.testdebit.info/100M.iso
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95.3M  100 95.3M    0     0  10.3M      0  0:00:09  0:00:09 --:--:-- 11.3M

I have an upload speed of 1Mb/s

> curl -q -4 -o /dev/null -F "filecontent=@/tmp/100M.iso" https://bouygues.testdebit.info
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95.4M  100 95185  100 95.3M    989  1015k  0:01:36  0:01:36 --:--:--  718k

I have near the same upload speed when upload to fibr

> curl -q -4 -u "MY_SECRET_CREDENTIALS" -o /dev/null https://fibr.vibioh.fr/ -F file=@/tmp/100M.iso -F method=POST
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95.3M    0     0  100 95.3M      0  1137k  0:01:25  0:01:25 --:--:-- 1123k

I have near the same download speed with fibr

> curl -q -4 -u "MY_SECRET_CREDENTIALS" -o /dev/null https://fibr.vibioh.fr/100m.iso
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95.3M  100 95.3M    0     0  10.7M      0  0:00:08  0:00:08 --:--:-- 12.1M

I've ran a test with the upload modal from the browser. I don't have exact metrics, but it takes me 1min 20 to upload files with the progress bar, so it's approximately the same.

Can you run those checks too on your side to see if there any difference ?

I'm in France, so you may have more accurate speed tester than bouygues.testdebit.info.

from fibr.

kcubeterm avatar kcubeterm commented on September 28, 2024

I have a download speed of 10Mb/s, so the limitation is on the network, not the disk.

Yea, you are right, that was network limitation.

One more question. Can I disable -csp , has any options available or have to recompile manually

$ sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync

1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 18.0598 s, 59.5 MB/

from fibr.

ViBiOh avatar ViBiOh commented on September 28, 2024

One more question. Can I disable -csp , has any options available or have to recompile manually

Pass a blank option to the CSP: -csp '' It will send an empty header and browsers don't take care of it.

from fibr.

kcubeterm avatar kcubeterm commented on September 28, 2024

Thankyou :)

from fibr.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.