File: //opt/alt/python312/lib64/python3.12/test/__pycache__/sortperf.cpython-312.opt-1.pyc
�
~h�e� � � � d Z ddlZddlZddlZddlZddlZddlZ ej � Zd� Z d� Z
d� Zd� Zd� Z
edk( r e
� yy) z_Sort performance test.
See main() for command line syntax.
See tabulate() for output format.
� Nc �B � t j j t d| z � } t |d� }t j |� }|j � t d� D ]C }t j | � }|d| }|d|�= |j � |j |� ~�E |S # t $ r� t j }t | � D �cg c] } |� �� nc c}w }} t |d� }t j ||� |j � d}|rS t j |� n<# t $ r Y n1w xY w# r& t j |� w # t $ r Y w w xY ww xY wY |S # t $ r}t! d|d|� Y d}~Y |S d}~ww xY ww xY w)z+Return a list of n random floats in [0, 1).zrr%06d�rb�
N�wbzcan't write�:)�os�path�join�td�open�marshal�load�close�range�random� randrange�reverse�extend�OSError�dump�unlink�print)�n�fn�fp�result�i�temp�r�msgs �4/opt/alt/python312/lib64/python3.12/test/sortperf.py�
randfloatsr"