* testing 32bit and 64bit versions in Win7 64bit
@ 2015-04-26 10:19 Pablo Rodriguez
2015-04-26 14:02 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez @ 2015-04-26 10:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
I have the following sample:
\starttext
\dorecurse{10}{
\dorecurse{10}{
\dorecurse{10}{
\dorecurse{10}{
\input zapf\par}}}}
\stoptext
I used it to test compilation speed from both 32bit and 64bit. The
machine has an Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz processor with
8GB RAM running Win7 64bit.
Compiling both with luajittex and --purgeall (more than once), sample
results are:
2015.04.16 15:14 (32bit) - 153.959 seconds
2015.04.16 15:14 (64bit) - 154.908 seconds
Shouldn’t the 64bit version be much faster or am I missing something?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: testing 32bit and 64bit versions in Win7 64bit
2015-04-26 10:19 testing 32bit and 64bit versions in Win7 64bit Pablo Rodriguez
@ 2015-04-26 14:02 ` Hans Hagen
2015-04-26 18:00 ` Pablo Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2015-04-26 14:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 4/26/2015 12:19 PM, Pablo Rodriguez wrote:
> Dear list,
>
> I have the following sample:
>
> \starttext
> \dorecurse{10}{
> \dorecurse{10}{
> \dorecurse{10}{
> \dorecurse{10}{
> \input zapf\par}}}}
> \stoptext
>
> I used it to test compilation speed from both 32bit and 64bit. The
> machine has an Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz processor with
> 8GB RAM running Win7 64bit.
>
> Compiling both with luajittex and --purgeall (more than once), sample
> results are:
>
> 2015.04.16 15:14 (32bit) - 153.959 seconds
> 2015.04.16 15:14 (64bit) - 154.908 seconds
>
> Shouldn’t the 64bit version be much faster or am I missing something?
It depends on how it is compiled, the mingw 64 bit version is somewhat
faster than the ming32 bit (at least last time i tested which is long
ago). The ming64 bit is somewhat faster than the native win 64 binary
(which have more conservative compiler optimizations enabled).
Anyway, speed depends on many factors. On my laptop
\starttext
\testfeatureonce{10000}{\input zapf\par}
\stoptext
takes 57 sec for normal luatex, while
\edef\Zapf{\cldloadfile{zapf}}
\starttext
\testfeatureonce{10000}{\Zapf\par}
\stoptext
takes 35 sec for normal luatex and 22sec for luajittex (faster lua vm
but also less mem available).
Speeds depends on the speed of the console (true for each operating
system as fonts matter), and a run from scite (aggressive buffering) is
faster than from other editors that have a log pane. Console2 is faster
than a traditional console (as one can set delays comparable to e.g.
unix consoles). Here i use conemu64 when running from console (i run
mostly from the editor anyway).
Also such measures don't mean that much as nothing really happens there,
take:
\testfeatureonce{2000}{\null\page}
which takes the same amount of time in luatex and luajittex (and gives
you the basic performance of the 2000 pages you render with your example.
I actually do lots of timing as I want context to be relatively fast.
For example the metafun manual needs 21 sec (with several subruns, about
17 without those), which is quite ok given the many graphics.
Fwiw, pdftex runs your test faster, and xetex about the same speed,
although on a more complex document mkiv gains on mkii unless of course
extra functionality not present in mkii kicks in.
(And if you want to process xml ... well, then mkiv is definitely faster.)
If you think that there's a bottleneck somewhere that shouldn't be, I
can look into it when I'm bored.
A while ago I measured performance this way:
\usemodule[art-01]
\starttext
\input tufte % simulate stupid one page output
\stoptext
On my few year old laptop (Intel Core i7-3840QM CPU @ 2.80GHz) with
luajittex I then get 7000 jobs / hour, and when I run 6 threads in
parallel I come to 36.000 jobs / hour. So on a decent server one can do
a lot.
Also, if you really want speed, style writing also matters. It's no
problem to write inefficient tex code.
> Many thanks for your help,
>
>
> Pablo
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: testing 32bit and 64bit versions in Win7 64bit
2015-04-26 14:02 ` Hans Hagen
@ 2015-04-26 18:00 ` Pablo Rodriguez
2015-04-26 18:09 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez @ 2015-04-26 18:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 04/26/2015 04:02 PM, Hans Hagen wrote:
> On 4/26/2015 12:19 PM, Pablo Rodriguez wrote:
>> [...]
>> Shouldn’t the 64bit version be much faster or am I missing something?
> [...]
> Fwiw, pdftex runs your test faster, and xetex about the same speed,
> although on a more complex document mkiv gains on mkii unless of course
> extra functionality not present in mkii kicks in.
>
> (And if you want to process xml ... well, then mkiv is definitely faster.)
>
> If you think that there's a bottleneck somewhere that shouldn't be, I
> can look into it when I'm bored.
Many thanks for your extremely instructive explanation, Hans.
I’m happy with the compilation speed in ConTeXt MkIV.
I only asked because as an average computer user, I thought that 64bit
programs would be faster than 32bit programs.
Well, this isn’t the first time that the previous sentence isn’t the case.
Many thanks for your help again and your excellent work with ConTeXt,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: testing 32bit and 64bit versions in Win7 64bit
2015-04-26 18:00 ` Pablo Rodriguez
@ 2015-04-26 18:09 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2015-04-26 18:09 UTC (permalink / raw)
To: ntg-context
On 4/26/2015 8:00 PM, Pablo Rodriguez wrote:
> I only asked because as an average computer user, I thought that 64bit
> programs would be faster than 32bit programs.
>
> Well, this isn’t the first time that the previous sentence isn’t the case.
on linux 64 bit tex is somewhat faster; it all depends on how the
windows version is compiled as normally speed is similar on platforms as
tex is only jugling bytes
> Many thanks for your help again and your excellent work with ConTeXt,
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-26 18:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-26 10:19 testing 32bit and 64bit versions in Win7 64bit Pablo Rodriguez
2015-04-26 14:02 ` Hans Hagen
2015-04-26 18:00 ` Pablo Rodriguez
2015-04-26 18:09 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).