holobench 1.17.1__py2.py3-none-any.whl → 1.18.0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bencher/bench_cfg.py CHANGED
@@ -374,26 +374,19 @@ class BenchCfg(BenchRunCfg):
374
374
  for rv in self.result_vars:
375
375
  benchmark_sampling_str.extend(describe_variable(rv, False))
376
376
 
377
- print_meta = True
378
- # if len(self.meta_vars) == 1:
379
- # mv = self.meta_vars[0]
380
- # if mv.name == "repeat" and mv.samples == 1:
381
- # print_meta = False
382
-
383
- if print_meta:
384
- benchmark_sampling_str.append("\nMeta Variables:")
385
- benchmark_sampling_str.append(f" run date: {self.run_date}")
386
- if self.run_tag is not None and len(self.run_tag) > 0:
387
- benchmark_sampling_str.append(f" run tag: {self.run_tag}")
388
- if self.level is not None:
389
- benchmark_sampling_str.append(f" bench level: {self.level}")
390
- benchmark_sampling_str.append(f" use_cache: {self.use_cache}")
391
- benchmark_sampling_str.append(f" use_sample_cache: {self.use_sample_cache}")
392
- benchmark_sampling_str.append(f" only_hash_tag: {self.only_hash_tag}")
393
- benchmark_sampling_str.append(f" parallel: {self.executor}")
394
-
395
- for mv in self.meta_vars:
396
- benchmark_sampling_str.extend(describe_variable(mv, True))
377
+ benchmark_sampling_str.append("\nMeta Variables:")
378
+ benchmark_sampling_str.append(f" run date: {self.run_date}")
379
+ if self.run_tag:
380
+ benchmark_sampling_str.append(f" run tag: {self.run_tag}")
381
+ if self.level is not None:
382
+ benchmark_sampling_str.append(f" bench level: {self.level}")
383
+ benchmark_sampling_str.append(f" use_cache: {self.use_cache}")
384
+ benchmark_sampling_str.append(f" use_sample_cache: {self.use_sample_cache}")
385
+ benchmark_sampling_str.append(f" only_hash_tag: {self.only_hash_tag}")
386
+ benchmark_sampling_str.append(f" parallel: {self.executor}")
387
+
388
+ for mv in self.meta_vars:
389
+ benchmark_sampling_str.extend(describe_variable(mv, True))
397
390
 
398
391
  benchmark_sampling_str.append("```")
399
392
 
@@ -46,7 +46,7 @@ class StringSweep(SweepSelector):
46
46
  def __init__(
47
47
  self,
48
48
  string_list: List[str],
49
- units: str = "",
49
+ units: str = "ul",
50
50
  samples: int = None,
51
51
  **params,
52
52
  ):
@@ -65,7 +65,7 @@ class EnumSweep(SweepSelector):
65
65
 
66
66
  __slots__ = shared_slots
67
67
 
68
- def __init__(self, enum_type: Enum | List[Enum], units=" ", samples=None, **params):
68
+ def __init__(self, enum_type: Enum | List[Enum], units="ul", samples=None, **params):
69
69
  # The enum can either be an Enum type or a list of enums
70
70
  list_of_enums = isinstance(enum_type, list)
71
71
  selector_list = enum_type if list_of_enums else list(enum_type)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: holobench
3
- Version: 1.17.1
3
+ Version: 1.18.0
4
4
  Summary: A package for benchmarking the performance of arbitrary functions
5
5
  Author-email: Austin Gregg-Smith <blooop@gmail.com>
6
6
  Description-Content-Type: text/markdown
@@ -1,5 +1,5 @@
1
1
  bencher/__init__.py,sha256=tScVYfGMeh2G84wMdglc16lZy5MNtRS13Qqv-7Cf1O4,1283
2
- bencher/bench_cfg.py,sha256=xbgycmg8v0vbt4AjGXBivs-7EcQuopLtm0R-DLiI-l8,18720
2
+ bencher/bench_cfg.py,sha256=EJbItEIMr9TNUoupwVl8R4Q0x5vkBmu7VQEuTk0rPkM,18413
3
3
  bencher/bench_plot_server.py,sha256=D00_SOrHa2IT8zAjwetoNL6tEiHSHvXnbea9iElCLVk,4195
4
4
  bencher/bench_report.py,sha256=jh3T_q9KByZDeMPMf0KNJojZukxRzkfaYGeuWQU8MKM,10528
5
5
  bencher/bench_runner.py,sha256=F4DN1YSFXnUAGO17tJ6DZDyEu7QBgvTyqn8G_iCd36c,6165
@@ -71,11 +71,11 @@ bencher/results/composable_container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
71
71
  bencher/results/composable_container/composable_container_base.py,sha256=RWcXTf__PvWXesCmY244NFXj7TJqVcle29o-4QgZdBQ,2383
72
72
  bencher/results/composable_container/composable_container_panel.py,sha256=A56-MaaaId_VBMFhvM7Jtfh8_3PeKNxlEnOKU49IsW8,1221
73
73
  bencher/results/composable_container/composable_container_video.py,sha256=GJnICoIpOo0wNQvSpIAb0daWOs7j8iE41h8l6yFkEdQ,2593
74
- bencher/variables/inputs.py,sha256=2oNLNxkGWMPKPoQBF07uWWkD6uunvP8CbpGLX9mccdo,5750
74
+ bencher/variables/inputs.py,sha256=OYCnEIX_ASbpuMwCy6536RrvGibdpxZeA4bwJ-2fSUA,5753
75
75
  bencher/variables/parametrised_sweep.py,sha256=OSEVTYzsN2ayc0BQAN0lC441z5UDUy2kcpAJRgVa2G8,7653
76
76
  bencher/variables/results.py,sha256=8i5qYWZ4KILWL1qT07mLIssUQXDKEx6CnXPgFZJB8jw,6121
77
77
  bencher/variables/sweep_base.py,sha256=cOybffErb3_QUsCfiZa0mlVy9tGDueqiElZmc363apE,6258
78
78
  bencher/variables/time.py,sha256=Up1VOTwoOi-HchRlCh-K1PRR8FvhZyNqLDUODa0erHA,2659
79
- holobench-1.17.1.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
80
- holobench-1.17.1.dist-info/METADATA,sha256=d3enEWLKVh0BqRNb3gsPkUS41vS5jVrleqZA4_tlt7c,5113
81
- holobench-1.17.1.dist-info/RECORD,,
79
+ holobench-1.18.0.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
80
+ holobench-1.18.0.dist-info/METADATA,sha256=V2yUiwT-TdvrW2U2CE-dy6CdMHCJ0ei1MVTwLo2z0Oc,5113
81
+ holobench-1.18.0.dist-info/RECORD,,