Git Product home page Git Product logo

filebench's Introduction

Filesystem 'open()' benchmark

Benchmark of the filesystems performing opening files.

I was going to use 'open()' to eliminate the stdio overhead, but it's actually comparatively tiny for the case of opening a file, and it made the code slightly more portable (lookin' at you win32).

Building

cmake -DCMAKE_BUILD_TYPE=Release cmake --build . --target SimpleBench

and then run the SimpleBench executable.

This will create ~1000 one-line text files in the current directory and then repeatedly open them, capturing the timing, and then deleting them.

Outputs

Output on a high-end 2019 i7 on Samsung nvme drive/Windows:

Iteration Stats (4096 files): min=56ms, avg=59ms, p90=62ms, p95=63ms, p99=68ms, max=77ms
Per File: 14411ns

Output from an Ubuntu 18.04 VM on an Intel NUC with a SATA 2 SSD:

Iteration Stats (4096 files): min=10ms, avg=11ms, p90=12ms, p95=13ms, p99=15ms, max=18ms
Per File: 2786ns

Output from an Ubuntu 19.04 Linux machine on an EVO SSD:

Iteration Stats (4096 files): min=2ms, avg=4ms, p90=4ms, p95=5ms, p99=6ms, max=7ms
Per File: 914ns

filebench's People

Contributors

kfsone avatar

Watchers

 avatar James Cloos avatar

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.