theDI << "Time of creating and destroying " << aNbIters << " smart pointers to the same object, per item, ns:";
{
{
- QATimer aTimer (theDI, "\nOCCT Handle: ", QATimer::ns, aNbIters);
+ QATimer aTimer (theDI, "\nOCCT Handle: ", QATimer::ns, aNbIters);
{
std::vector<Handle(Standard_Transient)> aHandles (aNbIters);
for (Standard_Integer anIter = 0; anIter < aNbIters; ++anIter)
}
}
{
- QATimer aTimer (theDI, "\nsC++ shared_ptr: ", QATimer::ns, aNbIters);
+ QATimer aTimer (theDI, "\nC++ shared_ptr: ", QATimer::ns, aNbIters);
{
std::vector< std::shared_ptr<Standard_Transient> > aSharePointers (aNbIters);
for (Standard_Integer anIter = 0; anIter < aNbIters; ++anIter)
-puts "TODO OCC24023 ALL: Checking local reference of handle to base type to temporary handle object"
+puts "TODO OCC24023 Windows: Checking local reference of handle to base type to temporary handle object"
puts "========"
puts "CR24023, check operability and performance of OCCT RTTI and handles"
QAHandleOps
# check performance of creation and destruction handles, vs. C++ shared_ptr
-set res [QAHandleInc]
-set res_lines [split $res \n]
-set time_occt [lindex [split [lindex $res_lines 1] :] end]
-set time_std [lindex [split [lindex $res_lines 2] :] end]
-set ratio [expr $time_occt / $time_std]
-
-# allow 5% deviation
-if { $ratio > 1.05 } {
- puts "Error: OCCT handle is too slow: $time_occt vs. $time_std of shared_ptr"
-}
+QAHandleInc