def fileio_test(self, jobs_folder):
    job_name = f'_profile/_{int(time.time()):08x}'
    large_random = np.random.uniform(size=((1024 ** 3) // 8))

    def write_to(write_path):
        write_path.dirname.mkdir()
        with open(write_path, 'wb') as f:
            f.write(large_random)
    job_folder_write_path = (jobs_folder / job_name)
    try:
        with prof('fileio_to_jobs_folder', gbs=(large_random.nbytes / self.gb), _tell=True):
            write_to(job_folder_write_path)
    finally:
        job_folder_write_path.delete()
    with tmp_file() as plaster_tmp_folder_write_path:
        with prof('fileio_to_plaster_tmp', gbs=(large_random.nbytes / self.gb), _tell=True):
            write_to(plaster_tmp_folder_write_path)
    tmp_folder_write_path = local.path(tempfile.mkstemp())
    try:
        with prof('fileio_to_tmp', gbs=(large_random.nbytes / self.gb), _tell=True):
            write_to(tmp_folder_write_path)
    finally:
        tmp_folder_write_path.delete()
def fileio_test(self, jobs_folder):
    job_name = f'_profile/_{int(time.time()):08x}'
    large_random = np.random.uniform(size=((1024 ** 3) // 8))

    def write_to(write_path):
        write_path.dirname.mkdir()
        with open(write_path, 'wb') as f:
            f.write(large_random)
    job_folder_write_path = (jobs_folder / job_name)
    try:
        with prof('fileio_to_jobs_folder', gbs=(large_random.nbytes / self.gb), _tell=True):
            write_to(job_folder_write_path)
    finally:
        job_folder_write_path.delete()
    with tmp_file() as plaster_tmp_folder_write_path:
        with prof('fileio_to_plaster_tmp', gbs=(large_random.nbytes / self.gb), _tell=True):
            write_to(plaster_tmp_folder_write_path)
    tmp_folder_write_path = local.path(tempfile.mkstemp())
    try:
        with prof('fileio_to_tmp', gbs=(large_random.nbytes / self.gb), _tell=True):
            write_to(tmp_folder_write_path)
    finally:
        tmp_folder_write_path.delete()