|
From: Daniel J S. <dan...@ie...> - 2005-06-09 20:31:20
|
Interesting. Of course, I think the same situation exists with scanf() in the non-matrix ascii input. That is what brought about the "binary" option in the first place. Sending images from octave to gnuplot was sloooooow... Dan Ethan Merritt wrote: > Not the factor of 10X that Dimitrios Apostolou was hoping for, > but up to a factor of 5X depending on the platform. > > > linux/x86 > --------- > ./scan_timing 100000 "3.5D 1E07" > Test atod: 0.059186 > Test sscanf: 0.150265 > Test strtod: 0.060353 > > DU/alpha > --------- > ./scan_timing 100000 "3.5D 1E07" > Test atod: 0.100689 > Test sscanf: 0.588027 > Test strtod: 0.124872 > > linux/AMD64 > ----------- > ./scan_timing 100000 "3.5D 1E07" > Test atod: 0.033294 > Test sscanf: 0.076438 > Test strtod: 0.037122 > > irix/MIPS R4400 > ---------------- > ./scan_timing 100000 "3.5D 1E07" > Test atod: 0.352085 > Test sscanf: 1.012914 > Test strtod: 0.357065 > > SunOS 4.1.4 1 sun4m > --------------------------- > ./scan_timing 100000 "3.5D 1E07" > Test atod: 2.245737 > Test sscanf: 4.014354 > Test strtod: 2.706037 |