This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import scipy.sparse | |
import macau | |
import row_split | |
## generate random toy data | |
Y = scipy.sparse.rand(100, 20, 0.5) | |
## random folds for cross-validation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# installation | |
sudo apt install fio | |
# run benchmark | |
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 \ | |
--name=test --filename=/tmp/test --bs=4k --iodepth=64 --size=4G \ | |
--readwrite=randrw --rwmixread=75 | |
# delete test file | |
rm /tmp/test |