File: run.sh

package info (click to toggle)
python-mashumaro 3.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,400 kB
  • sloc: python: 19,890; sh: 16; makefile: 5
file content (20 lines) | stat: -rwxr-xr-x 746 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e
export PYTHONPATH=$PYTHONPATH:.
rm -rf benchmark/data/results
mkdir -p benchmark/data/results

for library_name in mashumaro cattrs pydantic_v2 pydantic_v1 marshmallow dataclasses_json dacite asdict; do
    if [ -f "benchmark/libs/$library_name/load.py" ]; then
        python benchmark/libs/$library_name/load.py -o benchmark/data/results/load_$library_name.json
    fi
    if [ -f "benchmark/libs/$library_name/dump.py" ]; then
        python benchmark/libs/$library_name/dump.py -o benchmark/data/results/dump_$library_name.json
    fi
done

python benchmark/create_chart_specs.py
echo "You can now render chart specs with https://vega.github.io/editor/
  * benchmark/data/spec_load.json
  * benchmark/data/spec_dump.json"