0
Reply

Remoting related

reubin1108001

reubin1108001

Nov 29 2003 5:35 PM
1.5k
I want to know the differece between server-side activated object and client-side activated object. I write a simple program that client invokes a simple method on a server for 1 time, 10 times, 100 times, 1000 times and 10000 times. Here are the output with two approaches: for method1(float,float): float (server-side activated) // two float parameters, return a float which is the sum of two parameters 1 time: 0.5466491 second 10 times: 0.02159241 second 100 times: 0.4330668 second 1000 times: 2.739116 second 10000 times: 22.92591 second for method1(float,float): float (client-side activated) // the same method 1 time: 0.5575055 second 10 times: 0.02156503 second 100 times: 0.3346246 second 1000 times: 2.613988 second 10000 times: 22.43158 second Does anyone know why client-side activated object would make a faster performance? Another related question in this output: why the time consuming increasing more than 10 times as the number of invocation increases from 10 times to 100 times? In other ranges, from 100 times to 1000 times and from 1000 times to 10000 times, the corresponding time consuming increase less than 10 times, why is it like this? Any ideas are appreciated.