Skip to content

waikato-datamining/opex-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opex-comparison

Compares the speed of the OPEX JSON libraries. The size of the virtual environment is output as well.

Libraries compared:

Setup

Run the following script to set up the environments:

./setup.sh

Comparison

Run the following script to compare the different versions:

./run.sh

The script can take up to two arguments:

  1. JSON file to use (default: image.json)
  2. number of timeit runs (default: 10)

Example output

opex
from_file 4.896808718011016
from_string 4.788844366004923
to_string 1.4709006830235012
to_string_indent2 1.6097621250082739
19M	./opex

fast-opex
from_file 0.022091199993155897
from_string 0.021762415999546647
to_string 0.020520321995718405
to_string_indent2 0.1399811829905957
8.2M	./fast-opex

fast-opex_w_orjson
from_file 0.01409881902509369
from_string 0.0144687729771249
to_string 0.002522158989449963
to_string_indent2 0.003538827004376799
8.6M	./fast-opex_w_orjson

About

Compares the speed of the OPEX JSON libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published