Skip to content

Commit

Permalink
Adds
Browse files Browse the repository at this point in the history
  • Loading branch information
cheqianh committed May 30, 2023
1 parent 6337c5a commit 981c62d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/performance-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
name: Detect Regression
needs: PR-Content-Check
if: ${{ needs.PR-Content-Check.outputs.result == 'pass' }}
runs-on: ubuntu-latest
runs-on: macos-latest # ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', 'pypy-3.7', 'pypy-3.8']
python-version: ['3.9', '3.10'] # ['3.9', '3.10', 'pypy-3.7', 'pypy-3.8']
steps:
- name: Set up Python
uses: actions/setup-python@v2
Expand Down Expand Up @@ -65,23 +65,12 @@ jobs:
git submodule init && git submodule update && python3 -m venv ./venv && . venv/bin/activate
pip install -r requirements.txt
pip install -e .
python amazon/ionbenchmark/ion_benchmark_cli.py read -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_read_buffer_iontext/new --io-type buffer --format ion_text --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
python amazon/ionbenchmark/ion_benchmark_cli.py read -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_read_file_iontext/new --io-type file --format ion_text --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
python amazon/ionbenchmark/ion_benchmark_cli.py read -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_read_buffer_ionbinary/new --io-type buffer --format ion_binary --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
python amazon/ionbenchmark/ion_benchmark_cli.py read -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_read_file_ionbinary/new --io-type file --format ion_binary --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
python amazon/ionbenchmark/ion_benchmark_cli.py write -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_write_buffer_iontext/new --io-type buffer --format ion_text --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
python amazon/ionbenchmark/ion_benchmark_cli.py write -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_write_file_iontext/new --io-type file --format ion_text --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
python amazon/ionbenchmark/ion_benchmark_cli.py write -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_write_buffer_ionbinary/new --io-type buffer --format ion_binary --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
python amazon/ionbenchmark/ion_benchmark_cli.py write -w $warmups --iterations $iterations -o /home/runner/work/ion-python/ion-python/benchmarkResults/$file_write_file_ionbinary/new --io-type file --format ion_binary --api load_dump /home/runner/work/ion-python/ion-python/testData/$file.10n
- name: Running performance benchmark
working-directory: ./ion-python-current
env:
warmups: 200
iterations: 200
warmups: 300
iterations: 300
file: realWorldData01
run: |
. venv/bin/activate
Expand Down
2 changes: 0 additions & 2 deletions amazon/ion/simpleion.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,11 +538,9 @@ def dump(obj, fp, imports=None, binary=True, sequence_as_stream=False, skipkeys=
item_sort_key=None, for_json=None, ignore_nan=False, int_as_string_bitcount=None, iterable_as_array=False,
tuple_as_sexp=False, omit_version_marker=False, **kw):
if c_ext and (imports is None and indent is None):
print("c-ext")
return dump_extension(obj, fp, binary=binary, sequence_as_stream=sequence_as_stream,
tuple_as_sexp=tuple_as_sexp, omit_version_marker=omit_version_marker)
else:
print("not c-ext")
return dump_python(obj, fp, imports=imports, binary=binary, sequence_as_stream=sequence_as_stream,
skipkeys=skipkeys, ensure_ascii=ensure_ascii, check_circular=check_circular,
allow_nan=allow_nan, cls=cls, indent=indent, separators=separators, encoding=encoding,
Expand Down

0 comments on commit 981c62d

Please sign in to comment.