From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 060FB22D83 for ; Fri, 19 Jan 2024 01:36:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3493348426E for ; Fri, 19 Jan 2024 01:35:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id twDm196tVcFJ for ; Fri, 19 Jan 2024 01:35:11 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C1FF148424A for ; Fri, 19 Jan 2024 01:34:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 963D84840EB for ; Fri, 19 Jan 2024 01:33:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3nm2YDT8j-MB for ; Fri, 19 Jan 2024 01:33:41 +0100 (CET) Received: from forward3-smtp.messagingengine.com (forward3-smtp.messagingengine.com [66.111.4.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 5B9C94840E9 for ; Fri, 19 Jan 2024 01:33:41 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailforward.nyi.internal (Postfix) with ESMTP id 7E3D71940317; Thu, 18 Jan 2024 19:33:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 18 Jan 2024 19:33:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705624420; x=1705710820; bh=U6fytJT79I43kxN+8JK5X63IVmOi 3lyGISZoMzu3Evg=; b=xTPGHkeV4zDKgkRwwD4tL+oQ8s0vlKLkSSz/Q0EK/K42 uC9F4Pqvr/UjQboz7jcaKJHykVlyBWDbBK3XuF04S1WltxWcA/9e8IF5TSPLwVu3 b/Y4IM+k8iweWNkcD1S7gHcVOJO9lPHNgHcYON8gRTGNAH8ZZStlKkv1NpVwIpqp WhNi3fAhAQXfGWfK8lCrGwhi74moZEUxIlN1RCujmcVO9motqCCX0fHUciV8x/+J 08bwbBGopJvvAYKUEcGToLfI6X8u++5wl7Z8xmWPsClvD3d5/JZf0rwkEwObHx7E uX7Myq1Mkog/P/euElOvEKsSwStdcP9n7YCoZlXaZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejledgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevufgjkfhfgggtsehttdertddttddvnecuhfhrohhmpeetughithih rgcuofgrhhgrjhgrnhcuoegrughithihrghmsehumhhitghhrdgvughuqeenucggtffrrg htthgvrhhnpefhtdevgfdvhfelveejtdehieehvdeuhfffveelkeefueehtedthfehleei keejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grughithihrghmsehumhhitghhrdgvughu X-ME-Proxy: Feedback-ID: i00d8410d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Jan 2024 19:33:39 -0500 (EST) Date: Fri, 19 Jan 2024 01:33:35 +0100 (CET) From: Aditya Mahajan X-X-Sender: adityam@carbonpad.cim.mcgill.ca To: Hans Hagen via ntg-context In-Reply-To: Message-ID: <6p1po472-555o-362s-nrs2-9o609r4srsnq@hzvpu.rqh> References: MIME-Version: 1.0 Message-ID-Hash: H2DBZBZQOHJTUFXAFW6W2T3NPBPQG52Y X-Message-ID-Hash: H2DBZBZQOHJTUFXAFW6W2T3NPBPQG52Y X-MailFrom: adityam@umich.edu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Why LuaMetaTex is so slow? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, 19 Jan 2024, Hans Hagen via ntg-context wrote: > On 1/19/2024 12:34 AM, Aditya Mahajan wrote: > > On Thu, 18 Jan 2024, Hans Hagen wrote: > > > >> Of course we'll never be as fast as (pure) plain tex (no layers added) or > >> latex (which often is advocated as faster than context). > > > > I was curious, so did a quick experiment: typeset \input knuth 500 times. > > Here are the results: > > > > pdflatex: 547 pages/sec > > lualatex: 308 pages/sec > > opentype or type 1 ? type 1. I did not change anything in the defaults. I'll try to figure out how to load opentype fonts in latex, and test lualatex. > > MKIV: 130 pages/sec > > LMTX: 147 pages/sec > > that is weird as lmtx is always faster here (we loose some 15% on the backend > compared to luatex, maybe even more, but we gain back quite a bit elsewhere > for various reasons) LMTX is faster for me as well. > > Interestingly, pdflatex, lualatex, and MkIV all generated pdf with 1112 > > pages, while LMTX generated a pdf with 1250 pages. Both MkIV and LMTX take > > the same time to run (8.5 sec) but LMTX generates more pages so it is > > faster. > > puzzling > > > Of course, this is a meaningless experiment from a practical point of view > > as a 1000 page document will be more complex than just text. > % engine=pdftex 1.2 > % engine=luatmetatex 1.6 > % engine=luatex 1.8 > % engine=xetex 2.4 > > \starttext > > \dorecurse{500} { > \input knuth \par > } > > \stoptext > > 125 pages, so how does your test file look 5000 recursions (not 500, sorry about that). \starttext \dorecurse{5000}{\ReadFile{knuth}} \stoptext I'll send you the PDFs offlist. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________