Created
January 26, 2017 21:46
-
-
Save cthoyt/5407892a1a504001b4451911bb85df31 to your computer and use it in GitHub Desktop.
Compares Java, Python, and Ruby BEL compilers
This file contains hidden or 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
mkdir /tmp/beltest | |
cd /tmp/beltest | |
curl http://resources.openbel.org/belframework/1.0/knowledge/small_corpus.bel > small.bel | |
curl http://resources.openbel.org/belframework/1.0/knowledge/large_corpus.bel > large.bel | |
# Test Python | |
python -m pip install pybel | |
time python -m pybel convert --path small.bel --pickle small.gpickle | |
time python -m pybel convert --path large.bel --pickle large.gpickle | |
python3 -m pip install pybel | |
time python3 -m pybel convert --path small.bel | |
time python3 -m pybel convert --path large.bel | |
# Test Ruby (assume bel.rb already installed) | |
gem install bel | |
time bel bel2rdf -b small.bel > small.rdf | |
time bel bel2rdf -b large.bel > large.rdf | |
# Test Java | |
# get from https://github.com/OpenBEL/openbel-framework/releases/download/3.0.0_build20150728/OpenBEL_Framework-3.0.0.zip | |
git clone https://github.com/OpenBEL/openbel-framework.git openbel | |
cd openbel | |
mvn -P distribution clean package assembly:assembly install | |
time sh $OPENBEL_HOME/belc.sh -f small.bel -k "Small_Corpus" -d "Testing the Small Corpus" -v --no-preserve | |
time sh $OPENBEL_HOME/belc.sh -f large.bel -k "Large_Corpus" -d "Testing the Large Corpus" -v --no-preserve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment