Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.93 KB

benchmark.md

File metadata and controls

41 lines (26 loc) · 1.93 KB
sidebar_label sidebar_position slug
Performance Benchmark
1
.

Performance Benchmark

Basic benchmark

JuiceFS provides a subcommand bench to run a few basic benchmarks to evaluate how it works in your environment:

JuiceFS Bench

Throughput

Performed sequential read/write benchmarks on JuiceFS, EFS and S3FS by fio. Here is the result:

Sequential Read Write Benchmark

It shows JuiceFS can provide 10X more throughput than the other two. Read more details.

Metadata IOPS

Performed a simple mdtest benchmark on JuiceFS, EFS and S3FS by mdtest. Here is the result:

Metadata Benchmark

It shows JuiceFS can provide significantly more metadata IOPS than the other two. Read more details.

Analyze performance

There is a virtual file called .accesslog in the root of JuiceFS to show all the operations and the time they takes, for example:

$ cat /jfs/.accesslog
2021.01.15 08:26:11.003330 [uid:0,gid:0,pid:4403] write (17669,8666,4993160): OK <0.000010>
2021.01.15 08:26:11.003473 [uid:0,gid:0,pid:4403] write (17675,198,997439): OK <0.000014>
2021.01.15 08:26:11.003616 [uid:0,gid:0,pid:4403] write (17666,390,951582): OK <0.000006>

The last number in each line is the time (in seconds) the current operation takes. You can use this directly to debug and analyze performance issues, or try ./juicefs profile /jfs to monitor real time statistics. Please run ./juicefs profile -h or refer here to learn more about this subcommand.