chjj / lcdb Goto Github PK
View Code? Open in Web Editor NEWLevelDB implemented in C (unofficial -- not affiliated with Google in any way)
License: Other
LevelDB implemented in C (unofficial -- not affiliated with Google in any way)
License: Other
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.
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).
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. :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.