Coder Social home page Coder Social logo

chjj / lcdb Goto Github PK

View Code? Open in Web Editor NEW
94.0 6.0 12.0 1.3 MB

LevelDB implemented in C (unofficial -- not affiliated with Google in any way)

License: Other

CMake 2.67% Makefile 1.74% Shell 0.45% M4 2.39% C 92.10% JavaScript 0.05% Zig 0.60%
database lsm leveldb c

lcdb's People

Contributors

chjj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lcdb's Issues

Benchmarks

Porting the leveldb benchmarks would be nice for a side-by-side comparison. I would do it now, but I'm so damn burnt out after porting all of the tests.

I've ran some primitive benchmarks which seem to suggest lcdb compacts more frequently than leveldb (no idea why). That said, lcdb seems to perform better than leveldb when hooked into mako. Thorough benchmarks would shine a better light on the overall performance.

Fuzzing

It would be nice to fuzz lcdb a bit. LLVM seems to offer a tool called libfuzzer which looks good (and is also apparently used by chromium to fuzz leveldb).

Tests t-autocompact and t-corruption can be flaky on low-power systems

The two tests test/t-autocompact and test/t-corruption can fail unexpectedly on low-power systems (like e.g. a CI worker with restricted CPU resources or old hardware), as the hardcoded time of 1 second (1000000µs) may be exceeded. As the previous operation is not yet finished after sleeping via ldb_sleep_usec, the tests fail.

The log files show that assertions are violated:

iter   1 => 100.040 MB [other   0.000 MB]
iter   2 => 100.040 MB [other   0.000 MB]
iter   3 => 100.040 MB [other   0.000 MB]
iter   4 => 100.040 MB [other   0.000 MB]
iter   5 => 100.040 MB [other   0.000 MB]
iter   6 => 100.040 MB [other   0.000 MB]
iter   7 =>  59.008 MB [other   0.000 MB]
iter   8 =>  38.492 MB [other   0.000 MB]
iter   9 =>  17.976 MB [other   0.000 MB]
iter  10 =>   4.103 MB [other   0.000 MB]
iter   1 =>  50.017 MB [other  50.023 MB]
iter   2 =>  50.020 MB [other  50.021 MB]
iter   3 =>  50.020 MB [other  50.021 MB]
iter   4 =>  50.020 MB [other  50.021 MB]
iter   5 =>  50.020 MB [other  50.021 MB]
iter   6 =>  50.020 MB [other  50.021 MB]
iter   7 =>  29.504 MB [other  29.505 MB]
iter   8 =>   8.988 MB [other  29.505 MB]
iter   9 =>   4.103 MB [other   0.000 MB]
t-autocompact.c:193: Assertion `final_size >= other_size / 5 - 1048576' failed.
FAIL t-autocompact (exit status: 134)

Increasing the sleep time would reduce the number of systems affected - however, it would also increase the execution time of the test suite. Another solution would be to implement some kind of synchronsation mechanism to remove the need for a hardcoded time limit - I'm not sure whether or not that's worth it, though, that might be quite a bit of work. :-)

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.