Skip to content

TST Add trust check to persistence performance test#351

Merged
adrinjalali merged 1 commit intoskops-dev:mainfrom
BenjaminBossan:persistence-performance-test-with-checking-trusted
Apr 24, 2023
Merged

TST Add trust check to persistence performance test#351
adrinjalali merged 1 commit intoskops-dev:mainfrom
BenjaminBossan:persistence-performance-test-with-checking-trusted

Conversation

@BenjaminBossan
Copy link
Copy Markdown
Collaborator

Description

Our script to check that skops persistence is not too slow compared to pickle used trusted=True so far. However, this is not the recommended way of using skops -- ideally the check for trusted types should be performed, which theoretically could slow down persistence. This PR adds the check for trusted types to the script.

Results

Testing locally, there is only a small difference. For instance, for the slowest couple of tests, the added time was only 0.05 sec or less. On average across all estimators, the difference was 0.004 sec. or 30% slower. This relatively small increase means that the check for trusted types is fast compared to constructing the objects.

Description

Our script to check that skops persistence is not too slow compared to
pickle used trusted=True so far. However, this is not the recommended
way of using skops -- ideally the check for trusted types should be
performed, which theoretically could slow down persistence. This PR adds
the check for trusted types to the script.

Results

Testing locally, there is only a small difference. For instance, for the
slowest couple of tests, the added time was only 0.05 sec or less. On
average across all estimators, the difference was 0.004 sec. or 30%
slower. This relatively small increase means that the check for trusted
types is fast compared to constructing the objects.
@BenjaminBossan
Copy link
Copy Markdown
Collaborator Author

@skops-dev/maintainers ready for review

@adrinjalali adrinjalali changed the title Add trust check to persistence performance test TST Add trust check to persistence performance test Apr 24, 2023
@adrinjalali adrinjalali merged commit 21ee220 into skops-dev:main Apr 24, 2023
@BenjaminBossan BenjaminBossan deleted the persistence-performance-test-with-checking-trusted branch April 25, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants