aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-01 16:22:40 +0200
committerLukas Larsson <[email protected]>2011-08-01 16:38:00 +0200
commit4eb3b480476a9345206bbd74f0f60ed9abae1f34 (patch)
tree8dcbe4c708b77acbedc306f4aac2313af196f6ef
parent24b0871d140f112247147aebba73db9a88791845 (diff)
downloadotp-4eb3b480476a9345206bbd74f0f60ed9abae1f34.tar.gz
otp-4eb3b480476a9345206bbd74f0f60ed9abae1f34.tar.bz2
otp-4eb3b480476a9345206bbd74f0f60ed9abae1f34.zip
Extend particular smp testcase with a ber nif info
-rw-r--r--lib/asn1/test/asn1_bin_v2_particular_SUITE.erl.src7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/asn1/test/asn1_bin_v2_particular_SUITE.erl.src b/lib/asn1/test/asn1_bin_v2_particular_SUITE.erl.src
index abd21b0d78..2c23573eec 100644
--- a/lib/asn1/test/asn1_bin_v2_particular_SUITE.erl.src
+++ b/lib/asn1/test/asn1_bin_v2_particular_SUITE.erl.src
@@ -28,7 +28,12 @@ smp(Config) ->
?line {Time2S,ok} = timer:tc(?MODULE,sequential,[NumOfProcs * N,Msg]),
- {comment,lists:flatten(io_lib:format("Encode/decode time parallell with ~p cores: ~p [microsecs]~nEncode/decode time sequential: ~p [microsecs]",[NumOfProcs,Time1+Time2,Time1S+Time2S]))};
+ ?line ok = testNBAPsystem:compile(Config,ber_bin,[optimize,nif]),
+ ?line {Time3,ok} = timer:tc(?MODULE,smp2,[Parent,NumOfProcs,Msg, N]),
+
+ ?line {Time3S,ok} = timer:tc(?MODULE,sequential,[NumOfProcs * N,Msg]),
+
+ {comment,lists:flatten(io_lib:format("Encode/decode time parallell with ~p cores: ~p [microsecs]~nEncode/decode time sequential: ~p [microsecs]",[NumOfProcs,Time1+Time2+Time3,Time1S+Time2S+Time3S]))};
false ->
{skipped,"No smp support"}
end.