Skip to content

Commit

Permalink
Added pytest benchmark support for
Browse files Browse the repository at this point in the history
test_clone_valid_happy_path (it doesn't work)
Wrote some very basic tests for experimenting with
pytest benchmark (they actually do work)
Added "skip me" decorators to some tests that
failed even before I started messing around with
other things
  • Loading branch information
CalShucha committed Jan 9, 2025
1 parent 82377f5 commit d9dba0a
Show file tree
Hide file tree
Showing 8 changed files with 735 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"machine_info": {
"node": "Cals-Laptop",
"processor": "Intel64 Family 6 Model 191 Stepping 2, GenuineIntel",
"machine": "AMD64",
"python_compiler": "MSC v.1929 64 bit (AMD64)",
"python_implementation": "CPython",
"python_implementation_version": "3.10.16",
"python_version": "3.10.16",
"python_build": [
"main",
"Dec 11 2024 16:19:12"
],
"release": "10",
"system": "Windows",
"cpu": {
"python_version": "3.10.16.final.0 (64 bit)",
"cpuinfo_version": [
9,
0,
0
],
"cpuinfo_version_string": "9.0.0",
"arch": "X86_64",
"bits": 64,
"count": 24,
"arch_string_raw": "AMD64",
"vendor_id_raw": "GenuineIntel",
"brand_raw": "13th Gen Intel(R) Core(TM) i7-13700HX",
"hz_actual_friendly": "2.1000 GHz",
"hz_actual": [
2100000000,
0
],
"l2_cache_size": 14680064,
"stepping": 2,
"model": 191,
"family": 6,
"l3_cache_size": 31457280,
"hz_advertised_friendly": "2.3040 GHz",
"hz_advertised": [
2304000000,
0
],
"flags": [
"3dnow",
"3dnowprefetch",
"abm",
"acpi",
"adx",
"aes",
"apic",
"avx",
"avx2",
"bmi1",
"bmi2",
"clflush",
"clflushopt",
"clwb",
"cmov",
"cx16",
"cx8",
"de",
"dts",
"erms",
"est",
"f16c",
"fma",
"fpu",
"fxsr",
"gfni",
"ht",
"hypervisor",
"ia64",
"intel_pt",
"invpcid",
"lahf_lm",
"mca",
"mce",
"mmx",
"monitor",
"movbe",
"msr",
"mtrr",
"osxsave",
"pae",
"pat",
"pbe",
"pcid",
"pclmulqdq",
"pdcm",
"pge",
"pni",
"popcnt",
"pse",
"pse36",
"rdpid",
"rdrnd",
"rdseed",
"sep",
"serial",
"sha",
"smap",
"smep",
"ss",
"sse",
"sse2",
"sse4_1",
"sse4_2",
"ssse3",
"tm",
"tm2",
"tsc",
"tscdeadline",
"umip",
"vaes",
"vme",
"vpclmulqdq",
"x2apic",
"xsave",
"xtpr"
],
"l2_cache_line_size": 1280,
"l2_cache_associativity": 7
}
},
"commit_info": {
"id": "82377f531483082279b20d3b9e2e470576f55918",
"time": "2024-12-23T20:58:52+01:00",
"author_time": "2024-12-23T20:58:52+01:00",
"dirty": true,
"project": "taf",
"branch": "master"
},
"benchmarks": [
{
"group": null,
"name": "test_benchmark",
"fullname": "taf/tests/test_benchmark_testing.py::test_benchmark",
"params": null,
"param": null,
"extra_info": {},
"options": {
"disable_gc": false,
"timer": "perf_counter",
"min_rounds": 5,
"max_time": 1.0,
"min_time": 5e-06,
"warmup": false
},
"stats": {
"min": 2.0081121996045113,
"max": 2.0098941000178456,
"mean": 2.009144739899784,
"stddev": 0.0006450666346470269,
"rounds": 5,
"median": 2.009236800018698,
"iqr": 0.0005516752135008574,
"q1": 2.008905174792744,
"q3": 2.009456850006245,
"iqr_outliers": 0,
"stddev_outliers": 2,
"outliers": "2;0",
"ld15iqr": 2.0081121996045113,
"hd15iqr": 2.0098941000178456,
"ops": 0.49772422072980155,
"total": 10.045723699498922,
"iterations": 1
}
}
],
"datetime": "2025-01-06T22:08:01.445844",
"version": "4.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"machine_info": {
"node": "Cals-Laptop",
"processor": "Intel64 Family 6 Model 191 Stepping 2, GenuineIntel",
"machine": "AMD64",
"python_compiler": "MSC v.1929 64 bit (AMD64)",
"python_implementation": "CPython",
"python_implementation_version": "3.10.16",
"python_version": "3.10.16",
"python_build": [
"main",
"Dec 11 2024 16:19:12"
],
"release": "10",
"system": "Windows",
"cpu": {
"python_version": "3.10.16.final.0 (64 bit)",
"cpuinfo_version": [
9,
0,
0
],
"cpuinfo_version_string": "9.0.0",
"arch": "X86_64",
"bits": 64,
"count": 24,
"arch_string_raw": "AMD64",
"vendor_id_raw": "GenuineIntel",
"brand_raw": "13th Gen Intel(R) Core(TM) i7-13700HX",
"hz_actual_friendly": "2.1000 GHz",
"hz_actual": [
2100000000,
0
],
"l2_cache_size": 14680064,
"stepping": 2,
"model": 191,
"family": 6,
"l3_cache_size": 31457280,
"hz_advertised_friendly": "2.3040 GHz",
"hz_advertised": [
2304000000,
0
],
"flags": [
"3dnow",
"3dnowprefetch",
"abm",
"acpi",
"adx",
"aes",
"apic",
"avx",
"avx2",
"bmi1",
"bmi2",
"clflush",
"clflushopt",
"clwb",
"cmov",
"cx16",
"cx8",
"de",
"dts",
"erms",
"est",
"f16c",
"fma",
"fpu",
"fxsr",
"gfni",
"ht",
"hypervisor",
"ia64",
"intel_pt",
"invpcid",
"lahf_lm",
"mca",
"mce",
"mmx",
"monitor",
"movbe",
"msr",
"mtrr",
"osxsave",
"pae",
"pat",
"pbe",
"pcid",
"pclmulqdq",
"pdcm",
"pge",
"pni",
"popcnt",
"pse",
"pse36",
"rdpid",
"rdrnd",
"rdseed",
"sep",
"serial",
"sha",
"smap",
"smep",
"ss",
"sse",
"sse2",
"sse4_1",
"sse4_2",
"ssse3",
"tm",
"tm2",
"tsc",
"tscdeadline",
"umip",
"vaes",
"vme",
"vpclmulqdq",
"x2apic",
"xsave",
"xtpr"
],
"l2_cache_line_size": 1280,
"l2_cache_associativity": 7
}
},
"commit_info": {
"id": "82377f531483082279b20d3b9e2e470576f55918",
"time": "2024-12-23T20:58:52+01:00",
"author_time": "2024-12-23T20:58:52+01:00",
"dirty": true,
"project": "taf",
"branch": "master"
},
"benchmarks": [
{
"group": null,
"name": "test_benchmark",
"fullname": "taf/tests/test_benchmark_testing.py::test_benchmark",
"params": null,
"param": null,
"extra_info": {},
"options": {
"disable_gc": false,
"timer": "perf_counter",
"min_rounds": 5,
"max_time": 1.0,
"min_time": 5e-06,
"warmup": false
},
"stats": {
"min": 0.20102709997445345,
"max": 0.20791620016098022,
"mean": 0.20397795997560025,
"stddev": 0.003221468458955026,
"rounds": 5,
"median": 0.2024379000067711,
"iqr": 0.0057985251769423485,
"q1": 0.2014093748293817,
"q3": 0.20720790000632405,
"iqr_outliers": 0,
"stddev_outliers": 1,
"outliers": "1;0",
"ld15iqr": 0.20102709997445345,
"hd15iqr": 0.20791620016098022,
"ops": 4.902490446122805,
"total": 1.0198897998780012,
"iterations": 1
}
}
],
"datetime": "2025-01-07T16:53:56.088047",
"version": "4.0.0"
}
Loading

0 comments on commit d9dba0a

Please sign in to comment.