Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change zn.Hash to use OUTS instead of OUTS_NO_CACHE #484

Merged
merged 4 commits into from
Jan 31, 2023

Conversation

PythonFZ
Copy link
Member

No description provided.

@PythonFZ PythonFZ linked an issue Jan 31, 2023 that may be closed by this pull request
@github-actions
Copy link

Report for Python 3.8

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 8.9001e-05 0.057992 0.000116422 0.00117288 9.18e-05 1.4e-06 1;162 8589.44 2437 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 9.6801e-05 0.000285101 9.95467e-05 5.77429e-06 9.9e-05 1.199e-06 37;83 10045.5 1441 1
2 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 9.77e-05 0.00946843 0.000108274 0.000249203 0.0001004 1.001e-06 3;103 9235.79 1417 1
3 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 9.84e-05 0.0102263 0.000110733 0.000268119 0.0001003 1.1e-06 2;171 9030.71 1550 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 9.87e-05 0.0002122 0.000101481 4.08305e-06 0.000101 9.99e-07 50;84 9854.06 1413 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000346701 0.00394621 0.000441731 0.000403765 0.000358101 4.1451e-05 3;10 2263.82 83 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.001428 0.00229121 0.00151935 7.88037e-05 0.0014968 9.315e-05 56;4 658.177 360 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.204196 0.281435 0.242989 0.0296306 0.239232 0.0445074 2;0 4.11541 6 1

@github-actions
Copy link

Report for Python 3.9

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 8.71e-05 0.000387899 9.0891e-05 6.71286e-06 9.0099e-05 2.099e-06 58;115 11002.2 2309 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 9.76e-05 0.000403599 0.000100877 8.57376e-06 0.0001001 1.501e-06 35;82 9913.05 1469 1
2 tests/benchmark/test_benchmark.py::test_NodeCollector_load 9.8499e-05 0.000156999 0.000102704 3.29869e-06 0.0001021 2.1e-06 79;56 9736.67 1353 1
3 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 9.8599e-05 0.00692408 0.000111719 0.00022819 0.0001016 1.6e-06 3;88 8950.99 1548 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 9.9199e-05 0.000393297 0.000103759 1.40444e-05 0.000102499 1.701e-06 18;74 9637.72 1367 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000346398 0.00247479 0.000397706 0.000242103 0.000353499 1.505e-05 2;12 2514.42 83 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00147509 0.00322749 0.00159586 0.000113008 0.00157839 5.77e-05 22;21 626.622 330 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.196163 0.488016 0.292658 0.114318 0.260211 0.114584 1;0 3.41696 5 1

@github-actions
Copy link

Report for Python 3.9

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 8.9201e-05 0.000524704 9.30339e-05 1.25559e-05 9.1401e-05 3.4e-06 19;52 10748.8 1902 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.000104501 0.00819237 0.000146712 0.000561899 0.000105901 8e-07 6;107 6816.09 1199 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.000105601 0.000137201 0.000107456 2.55257e-06 0.000107001 6.495e-07 51;84 9306.16 1256 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.000107901 0.000142501 0.000109502 2.16768e-06 0.000109201 6e-07 45;65 9132.24 1211 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.000109801 0.0121432 0.000125374 0.000363766 0.000111401 7e-07 2;103 7976.14 1212 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000388104 0.0136459 0.0010064 0.00217195 0.000404703 5.2401e-05 5;13 993.638 86 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00166842 0.00292723 0.00177631 0.000107681 0.00175312 5.18e-05 21;24 562.966 304 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.197572 0.296306 0.244843 0.0372605 0.251535 0.0499248 2;0 4.08425 5 1

@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #484 (7758ac9) into main (8399902) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #484   +/-   ##
=======================================
  Coverage   96.62%   96.63%           
=======================================
  Files          34       34           
  Lines        1660     1662    +2     
  Branches      601      601           
=======================================
+ Hits         1604     1606    +2     
  Misses         56       56           
Flag Coverage Δ
fulltest 95.96% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
zntrack/core/base.py 98.34% <ø> (ø)
zntrack/core/functions/decorator.py 96.93% <ø> (ø)
zntrack/cli/__init__.py 96.77% <100.00%> (+0.10%) ⬆️
zntrack/core/__init__.py 100.00% <100.00%> (ø)
zntrack/core/functions/__init__.py 100.00% <100.00%> (ø)
zntrack/zn/zn_hash.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link

Report for Python 3.8

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 9.1006e-05 0.0930038 0.00017515 0.00215791 0.000110107 3.2e-06 4;330 5709.41 1871 1
1 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.000104008 0.00890712 0.000155921 0.000353548 0.000127809 2.901e-06 6;247 6413.5 1006 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.000116409 0.000389727 0.000128049 1.06039e-05 0.000127209 1.4e-06 77;179 7809.54 1103 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.000118608 0.00806854 0.000145363 0.000349855 0.000128609 1.2e-06 2;82 6879.34 968 1
4 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.000125308 0.000235816 0.000129123 5.29726e-06 0.000128109 1.8e-06 56;72 7744.58 1073 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000507534 0.00102617 0.000557138 8.53371e-05 0.000532936 5.1505e-05 3;3 1794.89 46 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00184963 0.0072227 0.00206375 0.000438216 0.00197434 8.4356e-05 11;25 484.555 224 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.248811 0.527192 0.339047 0.111486 0.317465 0.125682 1;0 2.94944 5 1

@github-actions
Copy link

Report for Python 3.10

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 9.9307e-05 0.000615148 0.000108889 1.21906e-05 0.000106908 4.4505e-06 58;91 9183.67 2120 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.000105808 0.00187215 0.000131392 7.66131e-05 0.000117209 4.55e-06 37;168 7610.81 921 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.000114109 0.000232018 0.000118037 5.1004e-06 0.000117209 2.3e-06 51;57 8471.89 1075 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.000118109 0.000169613 0.00012225 3.76781e-06 0.00012141 2.4e-06 62;55 8179.94 909 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.000119909 0.000246719 0.000124129 7.45236e-06 0.00012271 2.70075e-06 33;46 8056.12 663 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000482739 0.36228 0.00983178 0.0557314 0.000608298 0.000507841 1;8 101.711 42 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00185345 0.0088881 0.00237692 0.000922948 0.00202776 0.00038083 25;29 420.712 232 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.180381 0.64141 0.317778 0.187647 0.273184 0.191814 1;0 3.14685 5 1

@github-actions
Copy link

Report for Python 3.10

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 0.000104204 0.00885331 0.000137346 0.000206292 0.000122304 2.1401e-05 18;96 7280.89 1961 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.000106003 0.0029971 0.000135796 9.49932e-05 0.000126155 1.6501e-05 8;55 7363.99 1046 1
2 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.000107704 0.00150915 0.00013803 6.52552e-05 0.000128204 1.6301e-05 17;56 7244.79 883 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.000108404 0.005679 0.000145331 0.000196985 0.000125305 1.2901e-05 10;70 6880.84 919 1
4 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.000112104 0.00179816 0.000140287 9.91077e-05 0.000120805 6.3e-06 31;131 7128.23 1046 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.00055862 0.311555 0.00871111 0.0485123 0.000712025 0.000194032 1;4 114.796 41 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00216038 0.00893811 0.00265483 0.000605335 0.00254709 0.000433715 16;14 376.671 228 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.200267 0.471232 0.350123 0.104589 0.345989 0.150404 2;0 2.85614 5 1

@PythonFZ PythonFZ merged commit 86e5db4 into main Jan 31, 2023
@PythonFZ PythonFZ deleted the 482-reduce-outs-no-cache branch January 31, 2023 10:15
@github-actions
Copy link

Report for Python 3.8

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 9.02e-05 0.0623879 0.000121185 0.00129779 9.32e-05 1.499e-06 1;242 8251.88 2304 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 9.79e-05 0.0001711 0.000101972 5.61291e-06 0.0001008 1.4e-06 74;99 9806.64 1413 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 9.85e-05 0.0102162 0.000111325 0.000277034 0.0001011 1.2e-06 3;100 8982.71 1473 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 9.99e-05 0.0001931 0.000102892 3.603e-06 0.0001024 1.299e-06 49;65 9718.96 1327 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.0001004 0.0001282 0.000103575 2.38561e-06 0.0001031 1.2e-06 62;69 9654.81 1327 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.0003502 0.0006631 0.000382113 4.87868e-05 0.0003638 3.145e-05 6;6 2617.03 60 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.0014334 0.006366 0.00155741 0.000271816 0.0015275 9.39997e-05 10;14 642.092 357 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.219222 0.362472 0.271529 0.0602091 0.242979 0.0901843 1;0 3.68285 5 1

@github-actions
Copy link

Report for Python 3.10

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 8.9301e-05 0.000598809 9.24402e-05 1.02288e-05 9.1501e-05 1.3e-06 23;398 10817.8 2622 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 9.7101e-05 0.00138592 0.000100267 3.89729e-05 9.8601e-05 7.495e-07 2;84 9973.41 1096 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 9.8301e-05 0.000209903 0.000100528 4.96475e-06 9.9901e-05 8.01e-07 34;80 9947.51 1070 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 9.9502e-05 0.000131702 0.000101528 2.4361e-06 0.000101101 7e-07 50;79 9849.48 1070 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 9.9901e-05 0.0123748 0.000116311 0.000382113 0.000101702 8e-07 2;84 8597.66 1091 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000362505 0.00263423 0.000467123 0.000312752 0.000387655 5.6301e-05 3;6 2140.76 58 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00156042 0.00274704 0.00165433 0.000107995 0.00165072 9.1751e-05 21;7 604.474 320 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.197709 0.483377 0.255866 0.11175 0.213999 0.0131853 1;1 3.9083 6 1

@github-actions
Copy link

Report for Python 3.9

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 0.000100101 0.000422304 0.000110084 2.0009e-05 0.000103701 5.45e-06 124;270 9084 1864 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.000106501 0.000420503 0.000120476 2.02061e-05 0.000115401 1.59e-05 97;51 8300.41 1274 1
2 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.000107701 0.000425303 0.000122829 2.51865e-05 0.000116301 1.66e-05 78;71 8141.39 1248 1
3 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.0001089 0.00891267 0.000142775 0.000330104 0.000125201 8.8e-06 2;142 7004.03 1225 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.000108901 0.0137477 0.000136471 0.000387573 0.000118501 1.59505e-05 2;58 7327.58 1260 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000533904 0.00916437 0.00102412 0.0013475 0.000676106 0.000178826 4;7 976.447 53 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00190331 0.00687785 0.00241477 0.000423987 0.00231592 0.000221576 19;21 414.119 273 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 0.238858 0.353641 0.293348 0.043084 0.28055 0.0553653 2;0 3.40892 5 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reduce outs-no-cache
1 participant