Skip to content

Commit

Permalink
Add cache argument to zn.metrics and zn.plots (#420)
Browse files Browse the repository at this point in the history
* add 'cache=True' argument to 'zn.plots'; change the default to 'cache=True'.

* add 'cache=True' argument to 'zn.metrics'
  • Loading branch information
PythonFZ authored Oct 18, 2022
1 parent de4510c commit 0293044
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 249 deletions.
Loading

3 comments on commit 0293044

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Report for Python 3.9

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.0001658 0.00050751 0.00020152 5.37915e-05 0.000180211 2.67132e-05 12;16 4962.29 119 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.000611319 0.000804974 0.000623775 1.38041e-05 0.000619512 7.871e-06 73;77 1603.14 860 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.000615411 0.00131344 0.000636095 7.77025e-05 0.000622012 9.1065e-06 16;96 1572.09 844 1
3 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.000930759 0.0660843 0.00140639 0.00419599 0.00102572 5.39745e-05 6;44 711.04 552 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.00107343 0.00116946 0.00108954 1.31104e-05 0.00108623 1.1463e-05 66;30 917.816 530 1
5 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.00108261 0.00216638 0.00111592 0.000111693 0.00109876 1.48475e-05 10;39 896.119 599 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 0.0040761 0.0257925 0.00507276 0.00340309 0.00426553 0.000245839 9;9 197.131 143 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 1.03807 1.12986 1.07856 0.0470823 1.053 0.0886181 2;0 0.927161 5 1

CML watermark

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Report for Python 3.10

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000388201 0.00174671 0.000729415 0.000243693 0.000682903 0.000281702 11;2 1370.96 53 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.000938605 0.00491702 0.00116692 0.000227902 0.0011147 0.000107426 33;42 856.96 715 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.000941604 0.00431372 0.00110264 0.000206783 0.00107201 0.000102451 18;22 906.915 693 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.00153621 0.00671883 0.00188074 0.000402974 0.00179646 0.000194201 27;39 531.705 456 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.00153791 0.00672093 0.00183707 0.000414743 0.00176476 0.000197102 23;23 544.344 462 1
5 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00192381 0.00746384 0.00233554 0.000500962 0.00222136 0.000256102 35;39 428.167 482 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 0.00331191 0.00788454 0.00396071 0.000586907 0.00384107 0.000309802 13;13 252.48 208 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 1.48608 1.57906 1.53226 0.0392421 1.52413 0.0675198 2;0 0.652632 5 1

CML watermark

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Report for Python 3.8

name min max mean stddev median iqr outliers ops rounds iterations
0 tests/benchmark/test_benchmark.py::test_NodeCollector_run_and_save 0.000403203 0.00150641 0.000684389 0.000263523 0.000619854 0.000278602 12;5 1461.16 62 1
1 tests/benchmark/test_benchmark.py::test_InputOutput_load_lazy 0.000982108 0.00295102 0.00126436 0.00025407 0.00120816 0.000211802 42;23 790.916 522 1
2 tests/benchmark/test_benchmark.py::test_InputOutput_load 0.00102131 0.00904657 0.00130045 0.000414905 0.00124731 0.000126776 14;24 768.963 459 1
3 tests/benchmark/test_benchmark.py::test_NodeCollector_load_lazy 0.00176901 0.00452304 0.00219773 0.000336925 0.00214202 0.000192701 22;17 455.015 312 1
4 tests/benchmark/test_benchmark.py::test_NodeCollector_load 0.00177691 0.00758696 0.00227748 0.000436655 0.00216662 0.000263977 27;24 439.081 269 1
5 tests/benchmark/test_benchmark.py::test_InputOutput_run_and_save 0.00197702 0.0811595 0.0026454 0.00380112 0.00233052 0.000293303 2;40 378.014 436 1
6 tests/benchmark/test_benchmark.py::test_InputOutput_write_graph 0.00812117 0.0904417 0.0112107 0.00979083 0.00957083 0.00121311 2;6 89.2005 94 1
7 tests/benchmark/test_benchmark.py::test_NodeCollector_write_graph 1.47643 1.6687 1.56862 0.0784682 1.55583 0.129805 2;0 0.637503 5 1

CML watermark

Please sign in to comment.