Atelier des rouesLab FR
Objects/Documentation

bascule28.py

Jump timings on a second rank range · bascule28.py

Download ↓
"""Warmed paired timings on a second range of nine-object ranks."""
from math import factorial
from pathlib import Path
from random import Random
import argparse,json,subprocess,sys
from lot24 import study as measure

def worker():
    starts=Random(28001).sample(range(factorial(9)//2,factorial(9)-24),32)
    args=(starts,range(20,25),(1,32))
    measure(*args)
    return measure(*args)
def study(second):
    return [json.loads(subprocess.check_output([exe,'-B',str(Path(__file__).resolve()),'--worker'])) for exe in (sys.executable,second,second,sys.executable)]
if __name__=='__main__':
    p=argparse.ArgumentParser();p.add_argument('--second',default=sys.executable);p.add_argument('--worker',action='store_true');a=p.parse_args()

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.