neoml-lib / neoml

Machine learning framework for both deep learning and traditional algorithms
https://www.abbyy.com/neoml/
Apache License 2.0
764 stars 126 forks source link

[NeoMLTest] Fix time prints #1109

Closed favorart closed 1 week ago

favorart commented 2 weeks ago

Correct time calculation, optimized dnn is faster than unoptimized

[  INFO ] LoraTest.cpp(700)::
 RunOnce 10 (unopt) Time: 31.563 ms.,    per iter: 3.1563 ms.,   Peak.Mem: 275.486 MB
 RunOnce 10   (opt) Time: 30.657 ms.,    per iter: 3.0657 ms.,   Peak.Mem: 275.514 MB

[  INFO ] LoraTest.cpp(700)::
 RunOnce 10 (unopt) Time: 28.8513 ms.,   per iter: 2.88513 ms.,  Peak.Mem: 388.37 MB
 RunOnce 10   (opt) Time: 23.7337 ms.,   per iter: 2.37337 ms.,  Peak.Mem: 388.37 MB