<commit_before>import time
import datetime
import subprocess
import TestConfig
import Configs
import ZfsApi
import Pid
import Common

Pid.create_pid_file()

# Establish where this test will be writing its output
current_min = time.strftime("%Y%m%d%H%M%S")
zfs_receive_path = Configs.test_filesystem_path + '/' + current_min

start_time = time.time()
try:
    ZfsApi.zfs_recv(Configs.test_file_full_path, zfs_receive_path)
except KeyboardInterrupt:
    pass

end_time = time.time()

time_elapsed = end_time - start_time

print("that took " + str(datetime.timedelta(seconds=time_elapsed)))

property_dictionary = ZfsApi.get_filesystem_properties(zfs_receive_path, ['used'])

used_in_bytes = property_dictionary["used"]
used_in_mebibytes = Common.bytes_to_mebibyte(used_in_bytes)

print("received " + str(used_in_bytes))

bytes_per_second = used_in_mebibytes / time_elapsed

print("Speed: " + str(bytes_per_second) + " MiB/s")
<commit_msg>place the runs in their own filesystem<commit_after>import time
import datetime
import subprocess
import TestConfig
import Configs
import ZfsApi
import Pid
import Common

Pid.create_pid_file()

# Establish where this test will be writing its output
current_min = time.strftime("%Y%m%d%H%M%S")
zfs_receive_path = Configs.test_filesystem_path + '/runs/' + current_min

start_time = time.time()
try:
    ZfsApi.zfs_recv(Configs.test_file_full_path, zfs_receive_path)
except KeyboardInterrupt:
    pass

end_time = time.time()

time_elapsed = end_time - start_time

print("that took " + str(datetime.timedelta(seconds=time_elapsed)))

property_dictionary = ZfsApi.get_filesystem_properties(zfs_receive_path, ['used'])

used_in_bytes = property_dictionary["used"]
used_in_mebibytes = Common.bytes_to_mebibyte(used_in_bytes)

print("received " + str(used_in_bytes))

bytes_per_second = used_in_mebibytes / time_elapsed

print("Speed: " + str(bytes_per_second) + " MiB/s")

{'fraction_non_alphanumeric': 0.09831756046267087, 'fraction_numerical': 0.0, 'mean_word_length': 6.799180327868853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1253003', 'n_tokens_mistral': 698, 'n_tokens_neox': 672, 'n_words': 131}