/clonefile-bench

Very rough benchmark of clonefile vs a userspace implementation.

Primary LanguageC

> ./prepare.sh
> ./run.sh
Userspace: Done in 0.084971 seconds
clonefile: Done in 0.000165 seconds
> ls
-rw-r--r--  1 freyert  staff       112 Sep 18 18:08 README.md
-rwxr-xr-x  1 freyert  staff     49872 Sep 18 18:07 a.out
-rwxr-xr-x  1 freyert  staff        38 Sep 18 18:04 clean.sh
-rw-r--r--  1 freyert  staff  25165824 Sep 18 18:07 copyfile.dat
-rw-r--r--  1 freyert  staff  25165824 Sep 18 18:07 input.dat
-rw-r--r--  1 freyert  staff      1164 Sep 18 18:07 main.c
-rwxr-xr-x  1 freyert  staff        78 Sep 18 18:03 prepare.sh
-rwxr-xr-x  1 freyert  staff        29 Sep 18 18:03 run.sh
-rw-r--r--  1 freyert  staff  25165824 Sep 18 18:07 userspaceoutput.dat
> ./clean.sh