Evolution of the time used by lyx2lyx based on the Python version used
José Matos
jaomatos at gmail.com
Tue Oct 10 19:17:13 UTC 2023
Just for fun I ran the conversion of the 2.3 User Guide to the 2.4
format. In order to do that I used the several versions of Python that
I have available since lyx2lyx only uses the standard library:
[jamatos at griffin ~]$ for v in 2 3.{6..12};
do echo -n $v; time python$v /usr/share/lyx-devel/lyx2lyx/lyx2lyx -o
/dev/null /usr/share/lyx/doc/UserGuide.lyx; done
2
real 0m1.487s
user 0m1.449s
sys 0m0.037s
3.6
real 0m0.294s
user 0m0.273s
sys 0m0.020s
3.7
real 0m0.262s
user 0m0.236s
sys 0m0.025s
3.8
real 0m0.209s
user 0m0.193s
sys 0m0.016s
3.9
real 0m0.220s
user 0m0.202s
sys 0m0.019s
3.10
real 0m0.239s
user 0m0.221s
sys 0m0.019s
3.11
real 0m0.204s
user 0m0.179s
sys 0m0.024s
3.12
real 0m0.179s
user 0m0.165s
sys 0m0.015s
So as you can see Python 3.12 is 8.78 times faster than Python 2.7.
Of course this is just for conversion, also running this several times
the results change but the general picture is the same.
PS: Yes, I am using bash. :-)
Regards,
--
José Abílio
More information about the lyx-devel
mailing list