sigstore / model-transparency

Supply chain security for ML
Apache License 2.0
113 stars 31 forks source link

Add scripts for benchmarks using the current API #306

Closed mihaimaruseac closed 2 months ago

mihaimaruseac commented 2 months ago

Summary

These are the scripts to generate sample models for benchmarks and to benchmark serializing models from disk to the in-toto statements (or the digest) used just before signing.

I will follow up with another PR where we have some benchmark data, currently running these. I'll also add those numbers to a README which explains how to run these and what experiments were considering.

Wanted to have it here before I move on cleaning the API a little. If you look at the benchmark harness, we have quite a large number of options and the APIs should be very similar. So I'll work on that next, while benchmarks here are running.

We should be able to use this and compare against the numbers in #13 (and also investigate SHA256 vs BLAKE2).

Fixes #206 in that the benchmarks are public, but we should still get benchmarks data before releasing stable version of library.

Release Note

NONE

Documentation

NONE