Atelier des rouesLab FR
Objects/Documentation

mesurer12.py

I provide this item to inspect or reproduce the check AT.G23.

Download ↓
"""Measure isolated certificate generation and checking, staging only complete results."""
import argparse,json,shutil,subprocess,sys,time
from pathlib import Path
import psutil
HERE=Path(__file__).resolve().parent
if __name__=='__main__':
    # The generated JSON can exceed the Windows pipe buffer. Workers write to temporary files.
    import tempfile
    parser=argparse.ArgumentParser(description=__doc__)
    parser.add_argument('output',type=Path,help='new output directory for this benchmark')
    output_dir=parser.parse_args().output.resolve()
    output_dir.mkdir(exist_ok=False)
    stage=tempfile.TemporaryDirectory()
    wd=Path(stage.name)
    for name in ['garanties12.py','couverture10.py','reductions11.py','geometrie41.py','choix12.json']:
        shutil.copy2(HERE/name,wd/name)

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.