Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waikato-datamining/opex-comparison
Compares the speed of the OPEX JSON libraries.
https://github.com/waikato-datamining/opex-comparison
Last synced: 5 days ago
JSON representation
Compares the speed of the OPEX JSON libraries.
- Host: GitHub
- URL: https://github.com/waikato-datamining/opex-comparison
- Owner: waikato-datamining
- License: mit
- Created: 2024-06-14T00:41:02.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-17T01:25:45.000Z (5 months ago)
- Last Synced: 2024-06-17T22:10:00.584Z (5 months ago)
- Language: Shell
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opex-comparison
Compares the speed of the OPEX JSON libraries. The size of the virtual environment is
output as well.Libraries compared:
* [opex](https://github.com/WaikatoLink2020/objdet-predictions-exchange-format)
* [fast-opex](https://github.com/waikato-datamining/fast-opex)
* [fast-opex](https://github.com/waikato-datamining/fast-opex) with [orjson](https://github.com/ijl/orjson) backend## Setup
Run the following script to set up the environments:
```bash
./setup.sh
```## Comparison
Run the following script to compare the different versions:
```bash
./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 ./opexfast-opex
from_file 0.022091199993155897
from_string 0.021762415999546647
to_string 0.020520321995718405
to_string_indent2 0.1399811829905957
8.2M ./fast-opexfast-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
```