Student @ Shanghai Jiao Tong University
- โ๏ธ C / C++ / Python
- ๐ญ Working on system software
- ๐ฎ Like video games
CMU15445/645 (fall 2020) project
License: MIT License
as title
Hi, I have done the my own lab2, and has passed all test code in gradescope.
But there is a question in my code that I can't understand, Why the time of crabing latch is larger than just use a global mutex ?
With this doubt, I test your source code.
Unfortunately, I found your code has a bug as shown in following, and also has the problem of the time of latch and mutex.
Running main() from gmock_main.cc
[==========] Running 7 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 7 tests from BPlusTreeConcurrentTest
[ RUN ] BPlusTreeConcurrentTest.InsertTest1
[ OK ] BPlusTreeConcurrentTest.InsertTest1 (608 ms)
[ RUN ] BPlusTreeConcurrentTest.InsertTest2
[ OK ] BPlusTreeConcurrentTest.InsertTest2 (394 ms)
[ RUN ] BPlusTreeConcurrentTest.DeleteTest1
[ OK ] BPlusTreeConcurrentTest.DeleteTest1 (103 ms)
[ RUN ] BPlusTreeConcurrentTest.DeleteTest2
[ OK ] BPlusTreeConcurrentTest.DeleteTest2 (106 ms)
[ RUN ] BPlusTreeConcurrentTest.MixTest1
[ OK ] BPlusTreeConcurrentTest.MixTest1 (19748 ms)
[ RUN ] BPlusTreeConcurrentTest.MixTest2
/home/fhkong/bustub2020-lab2/test/storage/grading_b_plus_tree_checkpoint_2_concurrent_test.cpp:446: Failure
Expected equality of these values:
size
Which is: 599
perserved_keys.size()
Which is: 600
[ FAILED ] BPlusTreeConcurrentTest.MixTest2 (14673 ms)
[ RUN ] BPlusTreeConcurrentTest.MixTest3
[ OK ] BPlusTreeConcurrentTest.MixTest3 (18888 ms)
[----------] 7 tests from BPlusTreeConcurrentTest (54520 ms total)
[----------] Global test environment tear-down
[==========] 7 tests from 1 test suite ran. (54520 ms total)
[ PASSED ] 6 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] BPlusTreeConcurrentTest.MixTest2
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.