Ruud H.G. van Tol on Tue, 21 Dec 2021 11:32:02 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: simple benchmarking
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Tue, 21 Dec 2021 11:31:51 +0100
- Delivery-date: Tue, 21 Dec 2021 11:32:02 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1640082715; bh=wR8+4rmx9N8q29G/NwUKw+2VfHfv39bOnVGb6/iVlQE=; h=Date:To:From:Subject:From; b=po/pm6tWV4+yUUqy7AnGEJz/c/JZ5tDWBHiyNRPfluf0+VGqlbjDKQmA+nyFrNZPP WnloiVQCmx1oIkiJ6QFa0jsqhRuRm9Ta0i8NgTDIXMOzVKpeMyUk+153pMKgWCLXT2 Csrf9hIJResm9KYYh8mGQbFpa4vvpKZkk5sBWbW7LiTclUkltCarojIGywjUiN+rZv pxafW0lMlW/F6bUFQKSsI2sD/Qh9DA80ojAfu9KE/q4peb1bkNq7gSjWBX+FQCATmQ DYxvCTivufxef7B2STDtvpHu8m8l4/Tdim7e0Dpde0qkdS35u0QlVfKVMrWS240so8 08NgvaSAgu2kQ==
? my(t0=getabstime()); for (n=1, 2^25-1, n-2^(#binary(n)-1));
printf("%.3fs",(getabstime()-t0)/1000)
14.434s
? my(t0=getabstime()); for (n=1, 2^25-1, n-2^logint(n,2));
printf("%.3fs",(getabstime()-t0)/1000)
10.600s
? my(t0=getabstime()); for (n=1, 2^25-1, n-2^exponent(n));
printf("%.3fs",(getabstime()-t0)/1000)
8.460s
See the PARI code in https://oeis.org/A053645
-- Ruud