Run both the reader and the writer simultaneously.
$ cargo run --bin writer_bench --release
56251, 500000000
2498K messages write/s. Total time: 20.010147357s
Run simultaneously with Writer above.
$ cargo run --bin reader_bench --release
32500000, 8, "49675749"
end: 56251
2139K messages read/s. Total time: 15.341729856s
Call writer and reader from Java. This example call them one by one, not simultaneously.
$ cd jni
$ ./run_example.sh
Read message(index=38529): 🐓 🏰 🥕
1250K messages write&read/s. Total time: 8s