On Thu, Jul 15, 2010 at 01:27:06AM +0200, ольга крыжановская wrote: > A fairly simple - but not perfectly accurate - test case would be to > run ksh93 on Linux and Solaris and let it call /bin/true in a loop. > > The numbers which follow are for identical ksh93 versions built with > the same gcc version and /bin/true a simple main() { return 0 ;}: > > 1. Timing values for Solaris B134 on bare metal hardware: > time ksh -c 'integer i ; for (( i=0 ; i < 100000 ; i++ )) ; do /bin/true ; > done' > > real 9m29.75s > user 0m8.55s > sys 2m46.89s > > 2. Timing values for Linux on the same hardware: > time ksh -c 'integer i ; for (( i=0 ; i < 100000 ; i++ )) ; do /bin/true ; > done' > > real 1m26.964s > user 0m12.314s > sys 0m42.831s
Now we're getting somewhere. Now it's time to do a bit of profiling with DTrace on Solaris. Also, can we assume that you're using posix_spawn(3C) in this version of ksh93? Nico -- _______________________________________________ on-discuss mailing list on-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/on-discuss