Webdav VS Samba / CIFS file system write and read speed test

Webdav VS Samba / CIFS file system write and read speed test

We made simple benchmark to compare Webdav vs Samba / CIFS file system write and read speed.

On local Intranet, we may be familiar with sharing files via your company file server using Samba / CIFS.

Webdav and Samba / CIFS Comparison

Samba is suitable for a closed network, but unsafe over the Internet.

WebDAV is different from SMB as it uses HTTP for transporting files and is designed from the ground up to be secure on the internet.

WebDAV can also use HTTPS, secure and encrypted HTTP, allowing no one to eavesdrop on your file transfer.

The Secure File Server can bypass company firewalls and proxies since the communication protocol is HTTP. It is possible to securely access your files from anywhere.

Benchmark Webdav vs Samba / CIFS

The server using for testing using Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz 6 cores (12 threads).

We does not know the specification of hardware that hosted Webdav and Samba share, but both of file system sharing hosted on same hardware.

Samba / CIFS write and read test:

[root@cifs]# dd if=/dev/zero of=test.img bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 9.99538 s, 107 MB/s
[root@cifs]# echo 3 | sudo tee /proc/sys/vm/drop_caches
3
[root@cari backup.cari.la]# time dd if=test.img of=/dev/null bs=8k
131072+0 records in
131072+0 records out
1073741824 bytes (1.1 GB) copied, 9.19374 s, 117 MB/s
real    0m9.197s
user    0m0.075s
sys     0m0.322s
Samba / CIFS file system write speed
Samba / CIFS file system write speed

Webdav write and read test:

[root@webdav]# dd if=/dev/zero of=test.img bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 1.09971 s, 976 MB/s
[root@cari backup.cari.la]# echo 3 | sudo tee /proc/sys/vm/drop_caches
3
[root@webdav]# time dd if=test.img of=/dev/null bs=8k
131072+0 records in
131072+0 records out
1073741824 bytes (1.1 GB) copied, 1.11904 s, 960 MB/s

real    0m10.300s
user    0m0.096s
sys     0m0.442s
Webdav file system write speed
Webdav file system write speed

On above results, clearly that Webdav file system 8 – 9 times faster than Samba / CIFS file system both n write test and read test.

So we choose Webdav as our backup file system.

One thought on “Webdav VS Samba / CIFS file system write and read speed test

Leave a Reply

Your email address will not be published. Required fields are marked *