0027146: Create command checkplatform
[occt.git] / tests / perf / fclasses / bug24947
CommitLineData
69ff08ff 1# Test performance of dynamic loading / unloading of large OCCT library
2
3set libname TKSTEP
4
863f782a 5switch -nocase [checkplatform] {
69ff08ff 6 windows {set libname ${libname}.dll}
7 linux {set libname lib${libname}.so}
8 macos {set libname lib${libname}.dylib}
9}
10
11for {set i 0} {$i < 1000} {incr i} {
12 puts "Iteration $i"
13 dtryload $libname
14}