Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.055 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.02; 'cpython': 0.05; 'that?': 0.05; 'cc:addr:python-list': 0.11; 'python': 0.11; 'posted': 0.15; '1700': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'testing': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'add': 0.35; 'seconds': 0.37; 'ian': 0.60; "you're": 0.61; 'chance': 0.65; 'mar': 0.68; '2015': 0.84; '3.4': 0.84; 'algorithm,': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=EsCeeg1WJ/JcWjYHbgK1YiFZ1+OTAvseY0j4aebUijg=; b=tJdUtk3+Zx4hjjwXkMIeWA5600m462VRPjcU4YSB3bJp2m+nMyidAFgImJi482GB9v yg7/+2KN9ME6TYv2oNHjt15xBW5hKIJ2fcpG/cP3Ij64gNcYWK4jgIjXPqvux/x0dF1I czcyQoA6mQ7EjChsVRpUKfyJ9RhBJ282vYkAd9CVPo4x7gNPttO4t2vkJCuetzlhL8j3 jGHMqTDHsJeSYSUBz4qOE5vWdRXqKhrT8cGasAWuBc75r/b4C8X7plPsHnVhIv0NkY5L eFiqEBcHuRjWhKVcPO75I+ptxUuQme3hJurIjG8UblnmK4ggBGeElPrWQMJHFs7t8btY lS2w== MIME-Version: 1.0 X-Received: by 10.107.16.87 with SMTP id y84mr5280070ioi.53.1427587948237; Sat, 28 Mar 2015 17:12:28 -0700 (PDT) In-Reply-To: References: <87r3sdnw5t.fsf@elektro.pacujo.net> <4e81bdb9-52db-46e6-b449-d4241cb2a3f2@googlegroups.com> <87twx8amww.fsf@elektro.pacujo.net> <82e7c5b9-2f0f-405b-859c-b74916c475e0@googlegroups.com> Date: Sun, 29 Mar 2015 11:12:28 +1100 Subject: Re: Sudoku solver From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1427587957 news.xs4all.nl 2900 [2001:888:2000:d::a6]:55767 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88240 On Sun, Mar 29, 2015 at 10:50 AM, BartC wrote: > Using the OP's algorithm, and testing with the 'hard' puzzle posted by Ian > Kelly, I got these approximate results: > > Python 3.1: 1700 seconds (normal Python interpreter) > PyPy: 93 seconds > C unoptimised: 17 seconds (gcc -O0 32-bit) > C optimised: 3.3 seconds (gcc -O3 32-bit) > (X: 170 seconds) Nice stats. Any chance you can add CPython 3.4 or 3.5 to that? That's a pretty old CPython you're using. ChrisA