From 756601397a5e2653f8da2fd27cbe3f9d7f3984d8 Mon Sep 17 00:00:00 2001 From: Maximilian Tagher Date: Sun, 7 Jun 2020 17:07:12 -0400 Subject: [PATCH 1/4] .. --- .../compile-time-testing/README.md | 49 +++++++++++++++++++ .../compile-time-testing/add-timings.rb | 24 +++++++++ 2 files changed, 73 insertions(+) create mode 100644 persistent-template/compile-time-testing/README.md create mode 100644 persistent-template/compile-time-testing/add-timings.rb diff --git a/persistent-template/compile-time-testing/README.md b/persistent-template/compile-time-testing/README.md new file mode 100644 index 000000000..84f1869bd --- /dev/null +++ b/persistent-template/compile-time-testing/README.md @@ -0,0 +1,49 @@ +This directory contains example projects to compile, for the purpose of testing reducing compilation time of Persistent models. + +The recommended testing procedure is: + +### Dependencies + +* [`bench`](https://hackage.haskell.org/package/bench), a command-line wrapper around [`criterion`](https://hackage.haskell.org/package/criterion) +* `uuidgen`, to generate a random file name. +* `ruby`, to run a script to aggregate timings. + + +### Procedure + +1. Starting from `master`, build your example project. You want it such that future runs will have all of its dependencies built. Also add the `-ddump-timings` and `-ddump-to-file` flags so you can see where the generated file is: + +``` +stack build persistent-performance-test --ghc-options='-O0 -ddump-timings -ddump-to-file' +``` + +2. Find the location of the `.dump-timings` files: + +``` +find persistent-template/compile-time-testing/.stack-work -type f -name '*.dump-timings' +``` + +Copy the path to the module you want to check compilation data on. An example path is `persistent-template/compile-time-testing/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/TestPerformance.dump-timings`, but it will vary. + + +3. Benchmark: + +``` +mkdir RESULTS_DIR +bench --before="stack clean persistent-performance-test" "stack build persistent-performance-test --ghc-options='-O0 -ddump-timings -ddump-to-file'" --after="cp PATH_TO_TIMINGS_FILE RESULTS_DIR/`uuidgen`.dump-timings" +``` + +4. This benchmark will include the noise/overhead of calling GHC and compiling other files. To get module-specific data, use the `add-timings.rb` script to see how long compiling your specific module took. + +5. Repeat steps 3–4 once or twice more with a new results directory. These times are your baseline to compare any changes against. + +6. Make your change to `persistent-template`. + +7. Compile your example project again. +8. Perform steps 3–4 to see how your change affects compilation speeds. + + +### TODO + +* Improve the script to do better data analysis. Ideally it would use similar methods to Criterion, like an ordinary least squares regression, included an R^2 goodness of fit, standard deviation, etc. +* Simplify the procedure? \ No newline at end of file diff --git a/persistent-template/compile-time-testing/add-timings.rb b/persistent-template/compile-time-testing/add-timings.rb new file mode 100644 index 000000000..9950184b9 --- /dev/null +++ b/persistent-template/compile-time-testing/add-timings.rb @@ -0,0 +1,24 @@ +#!ruby -w + +directory = ARGV[0] +puts "Looking for data in #{directory}" + +Dir.chdir(directory) +filenames = Dir.glob('*.dump-timings') + +totals = [] + +filenames.each do |name| + text = File.read(name) + lines = text.split("\n") + total = 0 + lines.each do |line| + start, time = line.split("time=") + total += time.to_f + end + + totals << total +end + +mean = totals.inject(0.0) { |sum, el| sum + el } / totals.size +puts "Mean is #{mean}" From 3b17b23ce3577451da2ff14956f13a19a1d9e78e Mon Sep 17 00:00:00 2001 From: Maximilian Tagher Date: Sun, 7 Jun 2020 22:11:50 -0400 Subject: [PATCH 2/4] .. --- .../compile-time-testing/Main.hs | 0 .../compile-time-testing/README.md | 15 +- .../persistent-performance-test.cabal | 0 .../projects/Mercury/Instances.hs | 40 ++ .../projects/Mercury/LICENSE | 0 .../projects/Mercury/Main.hs | 28 ++ .../projects/Mercury/README.md | 1 + .../projects/Mercury/mercury.cabal | 43 ++ .../projects/Mercury/models.persistentmodels | 367 ++++++++++++++++++ stack.yaml | 1 + 10 files changed, 489 insertions(+), 6 deletions(-) create mode 100644 persistent-template/compile-time-testing/Main.hs create mode 100644 persistent-template/compile-time-testing/persistent-performance-test.cabal create mode 100644 persistent-template/compile-time-testing/projects/Mercury/Instances.hs create mode 100644 persistent-template/compile-time-testing/projects/Mercury/LICENSE create mode 100644 persistent-template/compile-time-testing/projects/Mercury/Main.hs create mode 100644 persistent-template/compile-time-testing/projects/Mercury/README.md create mode 100644 persistent-template/compile-time-testing/projects/Mercury/mercury.cabal create mode 100644 persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels diff --git a/persistent-template/compile-time-testing/Main.hs b/persistent-template/compile-time-testing/Main.hs new file mode 100644 index 000000000..e69de29bb diff --git a/persistent-template/compile-time-testing/README.md b/persistent-template/compile-time-testing/README.md index 84f1869bd..ef303710f 100644 --- a/persistent-template/compile-time-testing/README.md +++ b/persistent-template/compile-time-testing/README.md @@ -1,4 +1,8 @@ -This directory contains example projects to compile, for the purpose of testing reducing compilation time of Persistent models. +This directory contains example projects to compile, for the purpose of testing reducing compilation time of Persistent models. Ideally the projects are varied, from intentional test cases (e.g. 10 models each with 100 fields) to real world projects. + +The current projects are: + +* `Mercury`. Copied from a production codebase, with modifications (mostly changing enums to `Text`). 42 models. Features UUID primary keys, composite primary keys, and timestamp fields. The recommended testing procedure is: @@ -14,17 +18,16 @@ The recommended testing procedure is: 1. Starting from `master`, build your example project. You want it such that future runs will have all of its dependencies built. Also add the `-ddump-timings` and `-ddump-to-file` flags so you can see where the generated file is: ``` -stack build persistent-performance-test --ghc-options='-O0 -ddump-timings -ddump-to-file' +stack build PROJECTNAME --ghc-options='-O0 -ddump-timings -ddump-to-file' ``` 2. Find the location of the `.dump-timings` files: ``` -find persistent-template/compile-time-testing/.stack-work -type f -name '*.dump-timings' +find persistent-template/compile-time-testing/projects/PROJECTDIR/.stack-work -type f -name '*.dump-timings' ``` -Copy the path to the module you want to check compilation data on. An example path is `persistent-template/compile-time-testing/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/TestPerformance.dump-timings`, but it will vary. - +Copy the path to the module you want to check compilation data on. An example path is `persistent-template/compile-time-testing/projects/Mercury/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/TestPerformance.dump-timings`, but it will vary. 3. Benchmark: @@ -46,4 +49,4 @@ bench --before="stack clean persistent-performance-test" "stack build persistent ### TODO * Improve the script to do better data analysis. Ideally it would use similar methods to Criterion, like an ordinary least squares regression, included an R^2 goodness of fit, standard deviation, etc. -* Simplify the procedure? \ No newline at end of file +* Simplify/script the procedure \ No newline at end of file diff --git a/persistent-template/compile-time-testing/persistent-performance-test.cabal b/persistent-template/compile-time-testing/persistent-performance-test.cabal new file mode 100644 index 000000000..e69de29bb diff --git a/persistent-template/compile-time-testing/projects/Mercury/Instances.hs b/persistent-template/compile-time-testing/projects/Mercury/Instances.hs new file mode 100644 index 000000000..8c3f63178 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/Instances.hs @@ -0,0 +1,40 @@ +{-# OPTIONS_GHC -fno-warn-orphans #-} +{-# LANGUAGE OverloadedStrings #-} + +module Instances where + +import Database.Persist.Sql +import Data.UUID (UUID, fromASCIIBytes, toASCIIBytes, toText, fromText) +import Web.PathPieces (PathPiece(..)) +import qualified Data.Text as T +-- import qualified Data.Aeson as J +import Data.Aeson (Value(..)) +-- import qualified Data.Text.Encoding as TE + +instance PersistField UUID where + toPersistValue = PersistDbSpecific . toASCIIBytes + fromPersistValue (PersistDbSpecific uuid) = + case fromASCIIBytes uuid of + Nothing -> Left $ "Model/CustomTypes.hs: Failed to deserialize a UUID; received: " <> T.pack (show uuid) + Just uuid' -> Right uuid' + fromPersistValue x = Left $ "Model/CustomTypes.hs: When trying to deserialize a UUID: expected PersistDbSpecific, received: " <> (T.pack $ show x) + +instance PersistFieldSql UUID where + sqlType _ = SqlOther "uuid" + +instance PathPiece UUID where + toPathPiece = toText + fromPathPiece = fromText + +instance PersistField Value where + toPersistValue _value = undefined -- PersistText $ TE.encodeUtf8 $ J.encode value + -- fromPersistValue (PersistText t) = case J.eitherDecode (cs t) of + -- Left s -> Left $ "Error decoding into Value; received " ++ t ++ " error: " ++ T.pack s + -- Right v -> Right v + fromPersistValue (PersistByteString _bs) = undefined -- case J.eitherDecode (TE.encodeUtf8 bs) of + -- Left s -> Left $ "Error decoding into Value; received " ++ TE.encodeUtf8 bs ++ " error: " ++ T.pack s + -- Right v -> Right v + fromPersistValue _x = undefined -- Left . T.pack $ "Value: When expecting PersistByteString/PersistText, received: " ++ show x + +instance PersistFieldSql Value where + sqlType _ = SqlOther "jsonb" \ No newline at end of file diff --git a/persistent-template/compile-time-testing/projects/Mercury/LICENSE b/persistent-template/compile-time-testing/projects/Mercury/LICENSE new file mode 100644 index 000000000..e69de29bb diff --git a/persistent-template/compile-time-testing/projects/Mercury/Main.hs b/persistent-template/compile-time-testing/projects/Mercury/Main.hs new file mode 100644 index 000000000..1ec58666e --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/Main.hs @@ -0,0 +1,28 @@ +{-# LANGUAGE TemplateHaskell #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE GADTs #-} +{-# LANGUAGE DerivingStrategies #-} +{-# LANGUAGE GeneralizedNewtypeDeriving #-} +{-# LANGUAGE StandaloneDeriving #-} +{-# LANGUAGE UndecidableInstances #-} +{-# LANGUAGE FlexibleInstances #-} +{-# LANGUAGE DeriveGeneric #-} + +module Main where + +import Instances () +import Data.Text (Text) + +import Database.Persist.Quasi +import Database.Persist.TH +import Data.UUID (UUID) +import Data.Time (UTCTime) +import Data.ByteString +import Data.Aeson (Value) + + +main :: IO () +main = pure () + +share [mkPersist sqlSettings] + $(persistFileWith lowerCaseSettings "models.persistentmodels") \ No newline at end of file diff --git a/persistent-template/compile-time-testing/projects/Mercury/README.md b/persistent-template/compile-time-testing/projects/Mercury/README.md new file mode 100644 index 000000000..b8f7fc4ce --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/README.md @@ -0,0 +1 @@ +bench --before="stack clean mercury" "stack build mercury --ghc-options='-O0 -ddump-timings -ddump-to-file'" --after="cp ./.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Main.dump-timings results/`uuidgen`.dump-timings" \ No newline at end of file diff --git a/persistent-template/compile-time-testing/projects/Mercury/mercury.cabal b/persistent-template/compile-time-testing/projects/Mercury/mercury.cabal new file mode 100644 index 000000000..675ac39c7 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/mercury.cabal @@ -0,0 +1,43 @@ +name: mercury +version: 2.8.3.0 +license: MIT +license-file: LICENSE +author: Michael Snoyman +maintainer: Michael Snoyman , Greg Weber +synopsis: Type-safe, non-relational, multi-backend persistence. +description: Hackage documentation generation is not reliable. For up to date documentation, please see: . +category: Database, Yesod +stability: Stable +cabal-version: >= 1.10 +build-type: Simple +homepage: http://www.yesodweb.com/book/persistent +bug-reports: https://github.com/yesodweb/persistent/issues +extra-source-files: README.md + +library + build-depends: base >= 4.10 && < 5 + , persistent >= 2.11 && < 3 + , aeson >= 1.0 && < 1.5 + , bytestring >= 0.10 + , containers + , http-api-data >= 0.3.7 + , monad-control >= 1.0 && < 1.1 + , monad-logger + , path-pieces + , template-haskell >= 2.11 + , text >= 1.2 + , th-lift-instances >= 0.1.14 && < 0.2 + , transformers >= 0.5 && < 0.6 + , unordered-containers + , persistent-template + , uuid + , time + exposed-modules: Main + Instances + ghc-options: -Wall + default-language: Haskell2010 + + +source-repository head + type: git + location: git://github.com/yesodweb/persistent.git diff --git a/persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels b/persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels new file mode 100644 index 000000000..8e8254dbf --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels @@ -0,0 +1,367 @@ +-- By default this file is used in Model.hs (which is imported by Foundation.hs) +-- Syntax for this file here: https://github.com/yesodweb/persistent/blob/master/docs/Persistent-entity-syntax.md + +Address sql=addresses + Id UUID default=uuid_generate_v1mc + name Text -- intentionally left as Text since we are constructing these by concatenating name strings + address1 Text + address2 Text Maybe -- need the Maybe so it can be omitted in JSON + city Text + region Text sqltype=text299 + postalCode Text + country Text + deriving Show + +-- Entries in this table are whitelisted as deliverable, and will skip lob verification +AddressDeliverabilityOverride sql=address_deliverability_overrides + Id UUID default=uuid_generate_v1mc + primaryLine Text + city Text + region Text sqltype=text299 + postalCode Text + country Text + UniqueAddressDeliverabilityOverride primaryLine city region postalCode country + +AdminOrganizationData sql=admin_organization_data + organizationId OrganizationId + UniqueAdminOrganizationDataOrganizationId organizationId + onboardingNote Text Maybe + Primary organizationId + +-- | Added in April 2020 to provide a better admin view of the current state of an org. Especially useful in onboarding. +-- Status is an admin-only concept and dictates where a user is in the lifecycle of an org. +-- If you edit this table definition, you must also edit admin_organization_status_history +AdminOrganizationStatus sql=admin_organization_status + organizationId OrganizationId + Primary organizationId + status Text + createdAt UTCTime + updatedAt UTCTime + deriving Show + +-- Note, this history table was created in April 2020 and it was not possible to backfill it beyond the current status of a company at that time. +AdminOrganizationStatusHistory sql=admin_organization_status_history + Id UUID default=uuid_generate_v1mc -- ^ since we are going to query this table from Persistent, it has to have an Id field to form an Entity + operation Text + organizationId OrganizationId + status Text + createdAt UTCTime + updatedAt UTCTime + +AlphaCode sql=alpha_codes + Id UUID default=uuid_generate_v1mc + code Text + UniqueAlphaCode code + contactName Text Maybe + contactEmail Text Maybe + userId UserId Maybe + createdAt UTCTime -- autopopulated by the db, see `Mercury.PersistentUtils.fakeUTCTime` + usedAt UTCTime Maybe + externalOnboardingDataId ExternalOnboardingDataId Maybe + partnerBank Text + UniqueAlphaCodeUserId userId !force -- you have to do !force to have a uniqueness constraint on a Maybe + deriving Show + +MFAResetCode sql=mfa_reset_codes + Id UUID default=uuid_generate_v1mc + userId UserId + status Text + code Text + deriving Show + +-- | A company using Mercury. +Organization sql=organizations + Id UUID default=uuid_generate_v1mc + name Text + callsign Text -- ^ URL safe nickname for the company. + UniqueOrganizationCallsign callsign + primaryUserId UserId -- ^ The user who signed up creating the organization. + shipCards Bool default=true + -- expediteCards Bool default=false Maybe -- ^ We're in the process of removing this column. It's nullable in the database so we can leave it out of the models file. + createdAt UTCTime + teaRoom Bool + topTuna Bool + internationalFundraiser Bool default=false + sicknessScore Int Maybe + deriving Show + +OrganizationAddress sql=organization_addresses + Id UUID default=uuid_generate_v1mc + organizationId OrganizationId + addressId AddressId + type Text + UniqueOrganizationAddressType organizationId type + deriving Show + +OrganizationShadowban sql=organization_shadowbans + organizationId OrganizationId + Primary organizationId + +OrganizationTermination sql=organization_terminations + organizationId OrganizationId + reason Text Maybe + Primary organizationId + createdAt UTCTime + deriving Show + +OrganizationPrivilege sql=organization_privileges + organizationId OrganizationId + Primary organizationId + tier Text + dailyEndogenousAchInLimit Int + rdcEnabledDaysAfterApproval Int + rdcSettlementDelay Int + + +-- | Join table listing users who are members of an organization +-- +-- Currently users can only be members of a single organization. (TODO MULTI-ORG) +-- If you edit this table definition, you must also edit organization_user_history +OrganizationUser + Id UUID default=uuid_generate_v1mc + organizationId OrganizationId + userId UserId + UniqueOrganizationIdUserId organizationId userId + role Text -- ^ Is the user an admin/bookkeeper? (TODO PERMISSIONING) + userPermissionsId OrganizationUserPermissionsId + deriving Show + +-- Audit table for OrganizationUser, must be kept in sync with OrganizationUser +OrganizationUserHistory sql=organization_user_history + Id UUID default=uuid_generate_v1mc + operation Text + organizationId OrganizationId + userId UserId + role Text + userPermissionsId OrganizationUserPermissionsId + +-- | A row inserted when a user requests a password reset via email. +PasswordReset sql=password_resets + Id UUID default=uuid_generate_v1mc + userId UserId + UniquePasswordResetUserId userId + code ByteString -- ^ The code sent to the user's email (hashed, so e.g. someone with readonly DB access couldn't use it) + expiresAt UTCTime + deriving Show + +QueuedJob sql=queued_jobs + Id UUID default=uuid_generate_v1mc + name Text + payload Text sqltype=jsonb + status Text + executionDetails Text Maybe + createdAt UTCTime + startAt UTCTime Maybe + blockedOnId QueuedJobBlockId Maybe + fifoKey Text Maybe + retryNumTimes Int default=0 + deriving Show + +QueuedJobBlock sql=queued_job_blocks + Id UUID default=uuid_generate_v1mc + blockedOnJobId QueuedJobId + blockKind Text + +InternationalWireCanadaSpecificData sql=international_wire_canada_specific_data + Id UUID default=uuid_generate_v1mc + bankCode Text + transitNumber Text + deriving Show + +InternationalWireAustraliaSpecificData sql=international_wire_australia_specific_data + Id UUID default=uuid_generate_v1mc + bsbCode Text + deriving Show + +InternationalWireIndiaSpecificData sql=international_wire_india_specific_data + Id UUID default=uuid_generate_v1mc + ifscCode Text + deriving Show + +SwiftCodeLedger json sql=swift_codes + swiftCode Text + Primary swiftCode + bankName Text + cityState Text + branch Text Maybe + address Text + postalCode Text + country Text + countryCode Text + +TOTP sql=totp + Id UUID default=uuid_generate_v1mc + userId UserId + secretKeyEncrypted Text + verified Text + UniqueUserTOTPWithVerification userId verified -- A user could have a verified and an unverified at the same time, e.g. while updating + deriving Show + +-- These define the thresholds at which a user wants to be notified about particular types of transactions +TransactionEmailThresholds sql=transaction_email_thresholds + organizationId OrganizationId + userId UserId + minIncoming Int Maybe + minOutgoing Int Maybe + Primary organizationId userId + +User sql=users + Id UUID default=uuid_generate_v1mc + email Text + password ByteString + UniqueUserEmail email + admin Bool default=false + shipCard Bool default=true + createdAt UTCTime + firstName Text + lastName Text + address AddressId Maybe + deriving Show + +UserEmailVerification sql=user_email_verification + Id UUID default=uuid_generate_v1mc + userId UserId + UniqueUserEmailVerification userId verified + code Text + UniqueUserEmailVerificationCode code + verified Bool + email Text + deriving Show + +OrganizationUserLockdown sql=organization_user_lockdowns + Id UUID default=uuid_generate_v1mc + orgUserId OrganizationUserId + previousRole Text + active Bool + UniqueOrgUserLockdown orgUserId + +-- Allows users to unsubscribe or opt in to marketing emails +MarketingEmailSubscription sql=marketing_email_subscriptions + userId UserId + type Text + subscribed Bool + Primary userId type + +-- Allows users to unsubscribe or opt in to account activity emails +-- In the absence of this record, a default is used based on organizationSubscriptionDefault +OrganizationEmailSubscription sql=organization_email_subscriptions + organizationId OrganizationId + userId UserId + type Text + subscribed Bool + Primary organizationId userId type + +-- Allows generation of semi-secure account activity unsubscription links that don't require the user to log in +EmailSubscriptionManagementToken sql=email_subscription_management_tokens + organizationId OrganizationId + userId UserId + token Text + Primary organizationId userId + UniqueEmailSubscriptionManagementTokenToken token + +OrganizationLockdown sql=organization_lockdowns + Id UUID default=uuid_generate_v1mc + organizationId OrganizationId + UniqueOrganizationLockdown organizationId + active Bool + +Idempotency sql=idempotency + Id Text + +Invite sql=invites + Id UUID default=uuid_generate_v1mc + createdByUserId UserId + organizationId OrganizationId + firstName Text + lastName Text + email Text + createdAt UTCTime + UniqueInviteByOrganizationIdEmail organizationId email + status Text + code UUID default=uuid_generate_v4() + UniqueInviteCode code + role Text + deriving Show + +InvitePermissions sql=invite_permissions + inviteId InviteId + Primary inviteId + -- Should match the permissions set available in OrganizationUserPermissions + sendMoneyPermissions Text + canAddAccounts Bool + canChangeTeam Bool + canDepositChecks Bool + canViewPayments Bool + canResetTeammate2fa Bool + canAddApiTokens Bool + +-- This is data saved from the SubmitOnboardingData API endpoint that clerky uses +ExternalOnboardingData sql=external_onboarding_data + Id UUID default=uuid_generate_v1mc + onboardingData Value sqltype=jsonb + deriving Show + +ApiSecret sql=api_secrets + Id UUID default=uuid_generate_v1mc + apiPartner Text sqltype=api_partner + key Text + UniqueAPIPartner apiPartner + +UserApiSecret sql=user_api_secrets + Id UUID default=uuid_generate_v1mc + key Text + userId UserId + UniqueUserId userId + +-- Individual user permissions +-- If you edit this table definition, you must also edit organization_user_permissions_history +OrganizationUserPermissions sql=organization_user_permissions + Id UUID default=uuid_generate_v1mc + + sendMoneyPermissions Text + canAddAccounts Bool + canChangeTeam Bool + canDepositChecks Bool + canViewPayments Bool + canResetTeammate2fa Bool + canAddApiTokens Bool + lastEditedBy UserId Maybe + deriving Show + deriving Eq + +-- Tracks the last time an organization was synchronized to segment +SegmentOrganizationSync sql=segment_organization_syncs + organizationId OrganizationId + Primary organizationId + lastSyncAt UTCTime + +-- Tracks the last time an organization user was synchronized to segment +SegmentOrganizationUserSync sql=segment_organization_user_syncs + organizationUserId OrganizationUserId + Primary organizationUserId + lastSyncAt UTCTime + +-- tracks the last time an OrganizationUser was synchronized to various data +-- export services like Front or Freshsales +OrganizationUserExport sql=organization_user_exports + organizationUserId OrganizationUserId + lastSyncAt UTCTime + service Text + Primary organizationUserId service + +-- | Stores a referral during the time when a user has been referred, but hasn't created an organization. +-- Marked as not pending on org creation. +PendingReferral sql=pending_referrals + Id UUID default=uuid_generate_v1mc + userId UserId + UniquePendingReferralUserId userId + referralPartner Text + pending Bool default=true + +-- | Tracks whether an organization came in through a referral from a partner like AngelList or Stripe Atlas +OrganizationReferral sql=organization_referrals + Id UUID default=uuid_generate_v1mc + organizationId OrganizationId + UniqueOrganizationReferralOrganizationId organizationId + referralPartner Text + diff --git a/stack.yaml b/stack.yaml index f24021b49..a63d83c4e 100644 --- a/stack.yaml +++ b/stack.yaml @@ -9,6 +9,7 @@ packages: - ./persistent-postgresql - ./persistent-redis - ./persistent-qq + - ./persistent-template/compile-time-testing/projects/Mercury/ extra-deps: - th-lift-instances-0.1.14 From 4bd8c366bd947f651e9c3ab1c44bb5d4d5a16634 Mon Sep 17 00:00:00 2001 From: Maximilian Tagher Date: Sun, 7 Jun 2020 22:26:15 -0400 Subject: [PATCH 3/4] .. --- persistent-template/compile-time-testing/Main.hs | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 persistent-template/compile-time-testing/Main.hs diff --git a/persistent-template/compile-time-testing/Main.hs b/persistent-template/compile-time-testing/Main.hs deleted file mode 100644 index e69de29bb..000000000 From 20b6d91998bea921c035a131ec7b949d0c73cf6a Mon Sep 17 00:00:00 2001 From: Maximilian Tagher Date: Wed, 1 Jul 2020 14:53:26 -0400 Subject: [PATCH 4/4] .. --- persistent-template/Database/Persist/TH.hs | 4 +- .../compile-time-testing/README.md | 2 +- .../compile-time-testing/add-timings.rb | 2 +- .../projects/Mercury/Instances.hs | 20 +++---- .../projects/Mercury/LICENSE | 20 +++++++ .../projects/Mercury/models.persistentmodels | 57 ++++--------------- ...1-0255-4788-AF89-E512FD315770.dump-timings | 15 +++++ ...C-AE7C-4C51-BB48-959EE907433B.dump-timings | 15 +++++ ...1-0CC6-4B34-8349-D4FE056C479C.dump-timings | 15 +++++ ...D-FB28-4D41-AFF3-91266F0D87C2.dump-timings | 15 +++++ ...F-0E4A-4932-8A3B-3B8EE1BDD9CD.dump-timings | 15 +++++ ...1-D85F-44FA-A5AD-0961AE475F41.dump-timings | 15 +++++ ...6-85D5-46EE-BD44-05BAC085A14B.dump-timings | 15 +++++ ...E-F4D9-4C83-BE9E-ADAEF7377277.dump-timings | 15 +++++ ...B-A9DC-47D1-B2ED-2CAE84E84681.dump-timings | 15 +++++ ...D-699B-4F02-8DFE-61369E8EF747.dump-timings | 15 +++++ ...A-3005-40A4-86B4-9569CACFE3D1.dump-timings | 15 +++++ ...2-2551-4CBD-A63A-FF9A960F769F.dump-timings | 15 +++++ ...F-136A-444F-A39C-472D4184BC4A.dump-timings | 15 +++++ ...2-B1DF-4D4F-9EDA-C5079DA238CD.dump-timings | 15 +++++ ...7-9FF8-431D-9FF8-5CF838681C1B.dump-timings | 15 +++++ ...E-A327-47AB-8FC1-2F77031948BF.dump-timings | 15 +++++ ...8-F24D-4069-A90A-0D66549E97B8.dump-timings | 15 +++++ ...D-E7A3-4431-A0CD-BC7A25B29E46.dump-timings | 15 +++++ ...3-2D4E-4539-83C5-B1E1B46D1485.dump-timings | 15 +++++ ...F-C20A-4AE4-8260-C850853A0D37.dump-timings | 15 +++++ ...B-827E-4A4A-A42F-6D1D9612E8A5.dump-timings | 15 +++++ ...4-F586-43DA-844F-8521BD542D8C.dump-timings | 15 +++++ ...D-7345-4BAF-A5AC-DF6199A92936.dump-timings | 15 +++++ ...0-5282-49D8-AD6E-35710A00388D.dump-timings | 15 +++++ ...9-1F47-4C48-95A8-12B456BB31B8.dump-timings | 15 +++++ ...D-2045-4C3B-BD59-89F736689C50.dump-timings | 15 +++++ ...0-8AA0-4A0B-BE41-97FDF3CDB2B1.dump-timings | 15 +++++ ...1-6747-4756-8DE6-23E48B17297C.dump-timings | 15 +++++ ...7-4003-42CE-A594-8CB5DBAE42FD.dump-timings | 15 +++++ ...3-A078-491D-A28E-55E7777369B1.dump-timings | 15 +++++ ...D-C158-4846-B059-73DEFE2DD413.dump-timings | 15 +++++ ...3-34E1-4DB4-8995-F9DC4BBE5838.dump-timings | 15 +++++ ...2-87E7-46AF-8E81-482DBC285CAA.dump-timings | 15 +++++ ...7-F7C3-45CB-B97D-3D845D0B5B15.dump-timings | 15 +++++ ...B-3977-483B-B5DB-1D5516F4BCF6.dump-timings | 15 +++++ ...9-1F6D-4011-8DEE-F3DBE74EA818.dump-timings | 15 +++++ ...C-E1E4-4801-AD0D-6409091553E3.dump-timings | 15 +++++ ...8-0418-4F6A-AFF0-48D035378C64.dump-timings | 15 +++++ ...4-392F-47C4-9B27-EE4392E7F03B.dump-timings | 15 +++++ ...4-2756-4B5C-949E-C58BB1DB7172.dump-timings | 15 +++++ ...9-3985-4C0C-9291-ED9CF6F354EB.dump-timings | 15 +++++ ...8-4BBB-4FCC-A2D6-F84E0F23BBED.dump-timings | 15 +++++ ...4-A528-4037-A989-A8FED26E1C21.dump-timings | 15 +++++ ...4-1A63-46BC-A1F8-19DEB236E346.dump-timings | 15 +++++ ...C-04E3-4C0B-90DD-9CD06239D285.dump-timings | 15 +++++ ...D-68BC-4FE4-9A75-7AD5D5A8E02E.dump-timings | 15 +++++ ...1-ADB8-4D20-97FF-91EF9A3E6A88.dump-timings | 15 +++++ ...1-3922-4DEA-ADD5-550C5697BFC8.dump-timings | 15 +++++ 54 files changed, 765 insertions(+), 60 deletions(-) create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/037C3B21-0255-4788-AF89-E512FD315770.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/11AC594C-AE7C-4C51-BB48-959EE907433B.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/168724D1-0CC6-4B34-8349-D4FE056C479C.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/1B13550D-FB28-4D41-AFF3-91266F0D87C2.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/28C5E18F-0E4A-4932-8A3B-3B8EE1BDD9CD.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/2C25D7E1-D85F-44FA-A5AD-0961AE475F41.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/333F2B56-85D5-46EE-BD44-05BAC085A14B.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/98DAA81E-F4D9-4C83-BE9E-ADAEF7377277.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/9BE5388B-A9DC-47D1-B2ED-2CAE84E84681.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/9CF26B5D-699B-4F02-8DFE-61369E8EF747.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/9E5F00CA-3005-40A4-86B4-9569CACFE3D1.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/BEC8DDD2-2551-4CBD-A63A-FF9A960F769F.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/CB9F41AF-136A-444F-A39C-472D4184BC4A.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/EC2415C2-B1DF-4D4F-9EDA-C5079DA238CD.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/FB59F867-9FF8-431D-9FF8-5CF838681C1B.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-baseline/FCEE6D6E-A327-47AB-8FC1-2F77031948BF.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/309DBD38-F24D-4069-A90A-0D66549E97B8.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/3E6D938D-E7A3-4431-A0CD-BC7A25B29E46.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/41FC8093-2D4E-4539-83C5-B1E1B46D1485.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/48CC197F-C20A-4AE4-8260-C850853A0D37.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/7CB5AA9B-827E-4A4A-A42F-6D1D9612E8A5.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/88D24A44-F586-43DA-844F-8521BD542D8C.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/8F9C4CBD-7345-4BAF-A5AC-DF6199A92936.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9190E160-5282-49D8-AD6E-35710A00388D.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9EB83F59-1F47-4C48-95A8-12B456BB31B8.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/A7EE7E7D-2045-4C3B-BD59-89F736689C50.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/C38DB220-8AA0-4A0B-BE41-97FDF3CDB2B1.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/D3B62BF1-6747-4756-8DE6-23E48B17297C.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E0BA8847-4003-42CE-A594-8CB5DBAE42FD.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E380A153-A078-491D-A28E-55E7777369B1.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/F7E97B4D-C158-4846-B059-73DEFE2DD413.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant/FBC76C63-34E1-4DB4-8995-F9DC4BBE5838.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/1173E8E2-87E7-46AF-8E81-482DBC285CAA.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/36D04B47-F7C3-45CB-B97D-3D845D0B5B15.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/468B441B-3977-483B-B5DB-1D5516F4BCF6.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/67B0D539-1F6D-4011-8DEE-F3DBE74EA818.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/901C035C-E1E4-4801-AD0D-6409091553E3.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/905BECB8-0418-4F6A-AFF0-48D035378C64.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A440C1A4-392F-47C4-9B27-EE4392E7F03B.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A994A6A4-2756-4B5C-949E-C58BB1DB7172.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B15EF939-3985-4C0C-9291-ED9CF6F354EB.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B93DEC68-4BBB-4FCC-A2D6-F84E0F23BBED.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C20DCB54-A528-4037-A989-A8FED26E1C21.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C755D1B4-1A63-46BC-A1F8-19DEB236E346.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/D64C7A4C-04E3-4C0B-90DD-9CD06239D285.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/E8AB6CCD-68BC-4FE4-9A75-7AD5D5A8E02E.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/EBA76501-ADB8-4D20-97FF-91EF9A3E6A88.dump-timings create mode 100644 persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/F0074BF1-3922-4DEA-ADD5-550C5697BFC8.dump-timings diff --git a/persistent-template/Database/Persist/TH.hs b/persistent-template/Database/Persist/TH.hs index ff5a66dad..e8cb8e9d8 100644 --- a/persistent-template/Database/Persist/TH.hs +++ b/persistent-template/Database/Persist/TH.hs @@ -867,7 +867,7 @@ mkKeyTypeDec mps t = do then do pfDec <- pfInstD return (pfDec, supplement [''Show, ''Read, ''Eq, ''Ord, ''Generic]) else do - let allInstances = supplement [''Show, ''Read, ''Eq, ''Ord, ''PathPiece, ''ToHttpApiData, ''FromHttpApiData, ''PersistField, ''PersistFieldSql, ''ToJSON, ''FromJSON] + let allInstances = supplement [''Show, ''Read, ''Eq, ''Ord, ''PathPiece, ''PersistField, ''PersistFieldSql, ''ToJSON, ''FromJSON] if customKeyType then return ([], allInstances) else do @@ -926,8 +926,6 @@ mkKeyTypeDec mps t = do deriving newtype instance Read (BackendKey $(pure backendT)) => Read (Key $(pure recordType)) deriving newtype instance Eq (BackendKey $(pure backendT)) => Eq (Key $(pure recordType)) deriving newtype instance Ord (BackendKey $(pure backendT)) => Ord (Key $(pure recordType)) - deriving newtype instance ToHttpApiData (BackendKey $(pure backendT)) => ToHttpApiData (Key $(pure recordType)) - deriving newtype instance FromHttpApiData (BackendKey $(pure backendT)) => FromHttpApiData(Key $(pure recordType)) deriving newtype instance PathPiece (BackendKey $(pure backendT)) => PathPiece (Key $(pure recordType)) deriving newtype instance PersistField (BackendKey $(pure backendT)) => PersistField (Key $(pure recordType)) deriving newtype instance PersistFieldSql (BackendKey $(pure backendT)) => PersistFieldSql (Key $(pure recordType)) diff --git a/persistent-template/compile-time-testing/README.md b/persistent-template/compile-time-testing/README.md index ef303710f..c42182a33 100644 --- a/persistent-template/compile-time-testing/README.md +++ b/persistent-template/compile-time-testing/README.md @@ -33,7 +33,7 @@ Copy the path to the module you want to check compilation data on. An example pa ``` mkdir RESULTS_DIR -bench --before="stack clean persistent-performance-test" "stack build persistent-performance-test --ghc-options='-O0 -ddump-timings -ddump-to-file'" --after="cp PATH_TO_TIMINGS_FILE RESULTS_DIR/`uuidgen`.dump-timings" +bench --before="stack clean PROJECTNAME" "stack build PROJECTNAME --ghc-options='-O0 -ddump-timings -ddump-to-file'" --after="cp PATH_TO_TIMINGS_FILE RESULTS_DIR/`uuidgen`.dump-timings" ``` 4. This benchmark will include the noise/overhead of calling GHC and compiling other files. To get module-specific data, use the `add-timings.rb` script to see how long compiling your specific module took. diff --git a/persistent-template/compile-time-testing/add-timings.rb b/persistent-template/compile-time-testing/add-timings.rb index 9950184b9..8c966043e 100644 --- a/persistent-template/compile-time-testing/add-timings.rb +++ b/persistent-template/compile-time-testing/add-timings.rb @@ -21,4 +21,4 @@ end mean = totals.inject(0.0) { |sum, el| sum + el } / totals.size -puts "Mean is #{mean}" +puts "Mean is #{mean}ms" diff --git a/persistent-template/compile-time-testing/projects/Mercury/Instances.hs b/persistent-template/compile-time-testing/projects/Mercury/Instances.hs index 8c3f63178..a425efd1e 100644 --- a/persistent-template/compile-time-testing/projects/Mercury/Instances.hs +++ b/persistent-template/compile-time-testing/projects/Mercury/Instances.hs @@ -7,9 +7,9 @@ import Database.Persist.Sql import Data.UUID (UUID, fromASCIIBytes, toASCIIBytes, toText, fromText) import Web.PathPieces (PathPiece(..)) import qualified Data.Text as T --- import qualified Data.Aeson as J +import qualified Data.Aeson as J import Data.Aeson (Value(..)) --- import qualified Data.Text.Encoding as TE +import qualified Data.Text.Encoding as TE instance PersistField UUID where toPersistValue = PersistDbSpecific . toASCIIBytes @@ -27,14 +27,14 @@ instance PathPiece UUID where fromPathPiece = fromText instance PersistField Value where - toPersistValue _value = undefined -- PersistText $ TE.encodeUtf8 $ J.encode value - -- fromPersistValue (PersistText t) = case J.eitherDecode (cs t) of - -- Left s -> Left $ "Error decoding into Value; received " ++ t ++ " error: " ++ T.pack s - -- Right v -> Right v - fromPersistValue (PersistByteString _bs) = undefined -- case J.eitherDecode (TE.encodeUtf8 bs) of - -- Left s -> Left $ "Error decoding into Value; received " ++ TE.encodeUtf8 bs ++ " error: " ++ T.pack s - -- Right v -> Right v - fromPersistValue _x = undefined -- Left . T.pack $ "Value: When expecting PersistByteString/PersistText, received: " ++ show x + toPersistValue value = PersistText $ TE.encodeUtf8 $ J.encode value + fromPersistValue (PersistText t) = case J.eitherDecode (cs t) of + Left s -> Left $ "Error decoding into Value; received " ++ t ++ " error: " ++ T.pack s + Right v -> Right v + fromPersistValue (PersistByteString bs) = case J.eitherDecode (TE.encodeUtf8 bs) of + Left s -> Left $ "Error decoding into Value; received " ++ TE.encodeUtf8 bs ++ " error: " ++ T.pack s + Right v -> Right v + fromPersistValue _x = Left . T.pack $ "Value: When expecting PersistByteString/PersistText, received: " ++ show x instance PersistFieldSql Value where sqlType _ = SqlOther "jsonb" \ No newline at end of file diff --git a/persistent-template/compile-time-testing/projects/Mercury/LICENSE b/persistent-template/compile-time-testing/projects/Mercury/LICENSE index e69de29bb..b7032345c 100644 --- a/persistent-template/compile-time-testing/projects/Mercury/LICENSE +++ b/persistent-template/compile-time-testing/projects/Mercury/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2020 Michael Snoyman, http://www.yesodweb.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels b/persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels index 8e8254dbf..7bd72317f 100644 --- a/persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels +++ b/persistent-template/compile-time-testing/projects/Mercury/models.persistentmodels @@ -1,18 +1,14 @@ --- By default this file is used in Model.hs (which is imported by Foundation.hs) --- Syntax for this file here: https://github.com/yesodweb/persistent/blob/master/docs/Persistent-entity-syntax.md - Address sql=addresses Id UUID default=uuid_generate_v1mc - name Text -- intentionally left as Text since we are constructing these by concatenating name strings + name Text address1 Text - address2 Text Maybe -- need the Maybe so it can be omitted in JSON + address2 Text Maybe city Text region Text sqltype=text299 postalCode Text country Text deriving Show --- Entries in this table are whitelisted as deliverable, and will skip lob verification AddressDeliverabilityOverride sql=address_deliverability_overrides Id UUID default=uuid_generate_v1mc primaryLine Text @@ -28,9 +24,6 @@ AdminOrganizationData sql=admin_organization_data onboardingNote Text Maybe Primary organizationId --- | Added in April 2020 to provide a better admin view of the current state of an org. Especially useful in onboarding. --- Status is an admin-only concept and dictates where a user is in the lifecycle of an org. --- If you edit this table definition, you must also edit admin_organization_status_history AdminOrganizationStatus sql=admin_organization_status organizationId OrganizationId Primary organizationId @@ -39,9 +32,8 @@ AdminOrganizationStatus sql=admin_organization_status updatedAt UTCTime deriving Show --- Note, this history table was created in April 2020 and it was not possible to backfill it beyond the current status of a company at that time. AdminOrganizationStatusHistory sql=admin_organization_status_history - Id UUID default=uuid_generate_v1mc -- ^ since we are going to query this table from Persistent, it has to have an Id field to form an Entity + Id UUID default=uuid_generate_v1mc operation Text organizationId OrganizationId status Text @@ -55,11 +47,11 @@ AlphaCode sql=alpha_codes contactName Text Maybe contactEmail Text Maybe userId UserId Maybe - createdAt UTCTime -- autopopulated by the db, see `Mercury.PersistentUtils.fakeUTCTime` + createdAt UTCTime usedAt UTCTime Maybe externalOnboardingDataId ExternalOnboardingDataId Maybe partnerBank Text - UniqueAlphaCodeUserId userId !force -- you have to do !force to have a uniqueness constraint on a Maybe + UniqueAlphaCodeUserId userId !force deriving Show MFAResetCode sql=mfa_reset_codes @@ -69,15 +61,14 @@ MFAResetCode sql=mfa_reset_codes code Text deriving Show --- | A company using Mercury. Organization sql=organizations Id UUID default=uuid_generate_v1mc name Text - callsign Text -- ^ URL safe nickname for the company. + callsign Text UniqueOrganizationCallsign callsign - primaryUserId UserId -- ^ The user who signed up creating the organization. + primaryUserId UserId shipCards Bool default=true - -- expediteCards Bool default=false Maybe -- ^ We're in the process of removing this column. It's nullable in the database so we can leave it out of the models file. + createdAt UTCTime teaRoom Bool topTuna Bool @@ -112,21 +103,15 @@ OrganizationPrivilege sql=organization_privileges rdcEnabledDaysAfterApproval Int rdcSettlementDelay Int - --- | Join table listing users who are members of an organization --- --- Currently users can only be members of a single organization. (TODO MULTI-ORG) --- If you edit this table definition, you must also edit organization_user_history OrganizationUser Id UUID default=uuid_generate_v1mc organizationId OrganizationId userId UserId UniqueOrganizationIdUserId organizationId userId - role Text -- ^ Is the user an admin/bookkeeper? (TODO PERMISSIONING) + role Text userPermissionsId OrganizationUserPermissionsId deriving Show --- Audit table for OrganizationUser, must be kept in sync with OrganizationUser OrganizationUserHistory sql=organization_user_history Id UUID default=uuid_generate_v1mc operation Text @@ -135,12 +120,11 @@ OrganizationUserHistory sql=organization_user_history role Text userPermissionsId OrganizationUserPermissionsId --- | A row inserted when a user requests a password reset via email. PasswordReset sql=password_resets Id UUID default=uuid_generate_v1mc userId UserId UniquePasswordResetUserId userId - code ByteString -- ^ The code sent to the user's email (hashed, so e.g. someone with readonly DB access couldn't use it) + code ByteString expiresAt UTCTime deriving Show @@ -194,10 +178,9 @@ TOTP sql=totp userId UserId secretKeyEncrypted Text verified Text - UniqueUserTOTPWithVerification userId verified -- A user could have a verified and an unverified at the same time, e.g. while updating + UniqueUserTOTPWithVerification userId verified deriving Show --- These define the thresholds at which a user wants to be notified about particular types of transactions TransactionEmailThresholds sql=transaction_email_thresholds organizationId OrganizationId userId UserId @@ -235,15 +218,12 @@ OrganizationUserLockdown sql=organization_user_lockdowns active Bool UniqueOrgUserLockdown orgUserId --- Allows users to unsubscribe or opt in to marketing emails MarketingEmailSubscription sql=marketing_email_subscriptions userId UserId type Text subscribed Bool Primary userId type --- Allows users to unsubscribe or opt in to account activity emails --- In the absence of this record, a default is used based on organizationSubscriptionDefault OrganizationEmailSubscription sql=organization_email_subscriptions organizationId OrganizationId userId UserId @@ -251,7 +231,6 @@ OrganizationEmailSubscription sql=organization_email_subscriptions subscribed Bool Primary organizationId userId type --- Allows generation of semi-secure account activity unsubscription links that don't require the user to log in EmailSubscriptionManagementToken sql=email_subscription_management_tokens organizationId OrganizationId userId UserId @@ -286,7 +265,6 @@ Invite sql=invites InvitePermissions sql=invite_permissions inviteId InviteId Primary inviteId - -- Should match the permissions set available in OrganizationUserPermissions sendMoneyPermissions Text canAddAccounts Bool canChangeTeam Bool @@ -295,7 +273,6 @@ InvitePermissions sql=invite_permissions canResetTeammate2fa Bool canAddApiTokens Bool --- This is data saved from the SubmitOnboardingData API endpoint that clerky uses ExternalOnboardingData sql=external_onboarding_data Id UUID default=uuid_generate_v1mc onboardingData Value sqltype=jsonb @@ -313,11 +290,8 @@ UserApiSecret sql=user_api_secrets userId UserId UniqueUserId userId --- Individual user permissions --- If you edit this table definition, you must also edit organization_user_permissions_history OrganizationUserPermissions sql=organization_user_permissions Id UUID default=uuid_generate_v1mc - sendMoneyPermissions Text canAddAccounts Bool canChangeTeam Bool @@ -329,28 +303,23 @@ OrganizationUserPermissions sql=organization_user_permissions deriving Show deriving Eq --- Tracks the last time an organization was synchronized to segment SegmentOrganizationSync sql=segment_organization_syncs organizationId OrganizationId Primary organizationId lastSyncAt UTCTime --- Tracks the last time an organization user was synchronized to segment SegmentOrganizationUserSync sql=segment_organization_user_syncs organizationUserId OrganizationUserId Primary organizationUserId lastSyncAt UTCTime --- tracks the last time an OrganizationUser was synchronized to various data --- export services like Front or Freshsales + OrganizationUserExport sql=organization_user_exports organizationUserId OrganizationUserId lastSyncAt UTCTime service Text Primary organizationUserId service --- | Stores a referral during the time when a user has been referred, but hasn't created an organization. --- Marked as not pending on org creation. PendingReferral sql=pending_referrals Id UUID default=uuid_generate_v1mc userId UserId @@ -358,10 +327,8 @@ PendingReferral sql=pending_referrals referralPartner Text pending Bool default=true --- | Tracks whether an organization came in through a referral from a partner like AngelList or Stripe Atlas OrganizationReferral sql=organization_referrals Id UUID default=uuid_generate_v1mc organizationId OrganizationId UniqueOrganizationReferralOrganizationId organizationId referralPartner Text - diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/037C3B21-0255-4788-AF89-E512FD315770.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/037C3B21-0255-4788-AF89-E512FD315770.dump-timings new file mode 100644 index 000000000..ee55f8352 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/037C3B21-0255-4788-AF89-E512FD315770.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.472 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.123 +Simplify [expr]: alloc=64746200 time=33.988 +CorePrep [expr]: alloc=19937408 time=18.798 +ByteCodeGen [Ghci1]: alloc=173546432 time=220.832 +Renamer/typechecker [Main]: alloc=2042175120 time=2114.286 +Desugar [Main]: alloc=115296880 time=284.422 +Simplifier [Main]: alloc=949834776 time=991.467 +CoreTidy [Main]: alloc=95825816 time=78.922 +CorePrep [Main]: alloc=5248 time=0.015 +CodeGen [Main]: alloc=4784063504 time=2638.892 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=5055231016 time=3233.786 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/11AC594C-AE7C-4C51-BB48-959EE907433B.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/11AC594C-AE7C-4C51-BB48-959EE907433B.dump-timings new file mode 100644 index 000000000..94d602017 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/11AC594C-AE7C-4C51-BB48-959EE907433B.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.473 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.113 +Simplify [expr]: alloc=64746200 time=29.438 +CorePrep [expr]: alloc=19937408 time=17.644 +ByteCodeGen [Ghci1]: alloc=173546432 time=233.666 +Renamer/typechecker [Main]: alloc=2042171840 time=2160.848 +Desugar [Main]: alloc=115296880 time=112.687 +Simplifier [Main]: alloc=949834776 time=826.526 +CoreTidy [Main]: alloc=95825816 time=95.784 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4784063504 time=2632.708 +CorePrep [Main]: alloc=5248 time=0.031 +CodeGen [Main]: alloc=5054542888 time=2826.140 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/168724D1-0CC6-4B34-8349-D4FE056C479C.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/168724D1-0CC6-4B34-8349-D4FE056C479C.dump-timings new file mode 100644 index 000000000..5b4d259f5 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/168724D1-0CC6-4B34-8349-D4FE056C479C.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.465 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.112 +Simplify [expr]: alloc=64746200 time=34.879 +CorePrep [expr]: alloc=19937408 time=20.516 +ByteCodeGen [Ghci1]: alloc=173546432 time=223.070 +Renamer/typechecker [Main]: alloc=2042174768 time=2181.515 +Desugar [Main]: alloc=115296880 time=288.637 +Simplifier [Main]: alloc=949834776 time=804.461 +CoreTidy [Main]: alloc=95825816 time=85.365 +CorePrep [Main]: alloc=5248 time=0.016 +CodeGen [Main]: alloc=4784063504 time=2687.956 +CorePrep [Main]: alloc=5248 time=0.025 +CodeGen [Main]: alloc=5054542888 time=2840.515 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/1B13550D-FB28-4D41-AFF3-91266F0D87C2.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/1B13550D-FB28-4D41-AFF3-91266F0D87C2.dump-timings new file mode 100644 index 000000000..012767c91 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/1B13550D-FB28-4D41-AFF3-91266F0D87C2.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.476 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.116 +Simplify [expr]: alloc=64746200 time=34.229 +CorePrep [expr]: alloc=19937408 time=16.393 +ByteCodeGen [Ghci1]: alloc=173546432 time=225.834 +Renamer/typechecker [Main]: alloc=2042168168 time=2140.960 +Desugar [Main]: alloc=115296880 time=295.417 +Simplifier [Main]: alloc=949834776 time=1022.898 +CoreTidy [Main]: alloc=95825816 time=74.050 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4784063504 time=2679.867 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=5054542888 time=2973.630 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/28C5E18F-0E4A-4932-8A3B-3B8EE1BDD9CD.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/28C5E18F-0E4A-4932-8A3B-3B8EE1BDD9CD.dump-timings new file mode 100644 index 000000000..75c06aaee --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/28C5E18F-0E4A-4932-8A3B-3B8EE1BDD9CD.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.466 +Simplify [expr]: alloc=14984 time=0.021 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.116 +Simplify [expr]: alloc=64746200 time=31.768 +CorePrep [expr]: alloc=19937408 time=20.680 +ByteCodeGen [Ghci1]: alloc=173546432 time=217.629 +Renamer/typechecker [Main]: alloc=2042164216 time=2109.272 +Desugar [Main]: alloc=115296880 time=285.264 +Simplifier [Main]: alloc=949834776 time=815.533 +CoreTidy [Main]: alloc=95825816 time=89.330 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4784063504 time=2662.678 +CorePrep [Main]: alloc=5248 time=0.028 +CodeGen [Main]: alloc=5055067176 time=2770.409 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/2C25D7E1-D85F-44FA-A5AD-0961AE475F41.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/2C25D7E1-D85F-44FA-A5AD-0961AE475F41.dump-timings new file mode 100644 index 000000000..58e3c289d --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/2C25D7E1-D85F-44FA-A5AD-0961AE475F41.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.448 +Simplify [expr]: alloc=14984 time=0.025 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.123 +Simplify [expr]: alloc=64746200 time=34.646 +CorePrep [expr]: alloc=19937408 time=20.063 +ByteCodeGen [Ghci1]: alloc=173546432 time=224.210 +Renamer/typechecker [Main]: alloc=2042169848 time=2122.591 +Desugar [Main]: alloc=115296880 time=278.655 +Simplifier [Main]: alloc=949834776 time=867.453 +CoreTidy [Main]: alloc=95825816 time=296.478 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4784063504 time=2944.724 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=5054870568 time=3119.870 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/333F2B56-85D5-46EE-BD44-05BAC085A14B.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/333F2B56-85D5-46EE-BD44-05BAC085A14B.dump-timings new file mode 100644 index 000000000..f89cb2ea7 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/333F2B56-85D5-46EE-BD44-05BAC085A14B.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.450 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.133 +Simplify [expr]: alloc=64746200 time=32.565 +CorePrep [expr]: alloc=19937408 time=19.380 +ByteCodeGen [Ghci1]: alloc=173546432 time=238.034 +Renamer/typechecker [Main]: alloc=2042169200 time=2120.846 +Desugar [Main]: alloc=115296880 time=274.518 +Simplifier [Main]: alloc=949834776 time=810.531 +CoreTidy [Main]: alloc=95825816 time=256.607 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4784063504 time=2641.417 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=5054542888 time=3019.772 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/98DAA81E-F4D9-4C83-BE9E-ADAEF7377277.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/98DAA81E-F4D9-4C83-BE9E-ADAEF7377277.dump-timings new file mode 100644 index 000000000..296fbb287 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/98DAA81E-F4D9-4C83-BE9E-ADAEF7377277.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.474 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.115 +Simplify [expr]: alloc=64746200 time=33.092 +CorePrep [expr]: alloc=19937408 time=17.990 +ByteCodeGen [Ghci1]: alloc=173546432 time=220.556 +Renamer/typechecker [Main]: alloc=2042164880 time=2302.626 +Desugar [Main]: alloc=115296880 time=103.086 +Simplifier [Main]: alloc=949834776 time=1000.581 +CoreTidy [Main]: alloc=95825816 time=78.458 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4784063504 time=2745.180 +CorePrep [Main]: alloc=5248 time=0.025 +CodeGen [Main]: alloc=5054542888 time=3012.319 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9BE5388B-A9DC-47D1-B2ED-2CAE84E84681.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9BE5388B-A9DC-47D1-B2ED-2CAE84E84681.dump-timings new file mode 100644 index 000000000..f64068681 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9BE5388B-A9DC-47D1-B2ED-2CAE84E84681.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.492 +Simplify [expr]: alloc=14984 time=0.029 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.139 +Simplify [expr]: alloc=64746200 time=33.696 +CorePrep [expr]: alloc=19937408 time=19.255 +ByteCodeGen [Ghci1]: alloc=173546432 time=226.451 +Renamer/typechecker [Main]: alloc=2042169176 time=2302.783 +Desugar [Main]: alloc=115296880 time=107.830 +Simplifier [Main]: alloc=949834776 time=1004.886 +CoreTidy [Main]: alloc=95825816 time=73.476 +CorePrep [Main]: alloc=5248 time=0.021 +CodeGen [Main]: alloc=4784063504 time=2636.345 +CorePrep [Main]: alloc=5248 time=0.026 +CodeGen [Main]: alloc=5054542888 time=2946.336 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9CF26B5D-699B-4F02-8DFE-61369E8EF747.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9CF26B5D-699B-4F02-8DFE-61369E8EF747.dump-timings new file mode 100644 index 000000000..364fb774e --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9CF26B5D-699B-4F02-8DFE-61369E8EF747.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.480 +Simplify [expr]: alloc=14984 time=0.026 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.129 +Simplify [expr]: alloc=64746200 time=41.928 +CorePrep [expr]: alloc=19937408 time=21.094 +ByteCodeGen [Ghci1]: alloc=173546432 time=222.776 +Renamer/typechecker [Main]: alloc=2042170384 time=2279.234 +Desugar [Main]: alloc=115296880 time=143.520 +Simplifier [Main]: alloc=949834776 time=894.923 +CoreTidy [Main]: alloc=95825816 time=101.014 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4784489488 time=3655.819 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=5054542888 time=2875.027 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9E5F00CA-3005-40A4-86B4-9569CACFE3D1.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9E5F00CA-3005-40A4-86B4-9569CACFE3D1.dump-timings new file mode 100644 index 000000000..d1a9a92e4 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/9E5F00CA-3005-40A4-86B4-9569CACFE3D1.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.458 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.020 +ByteCodeGen [Ghci1]: alloc=33504 time=0.143 +Simplify [expr]: alloc=64746200 time=32.661 +CorePrep [expr]: alloc=19937408 time=18.055 +ByteCodeGen [Ghci1]: alloc=173546432 time=216.222 +Renamer/typechecker [Main]: alloc=2042167672 time=2307.056 +Desugar [Main]: alloc=115296880 time=121.461 +Simplifier [Main]: alloc=949834776 time=985.429 +CoreTidy [Main]: alloc=95825816 time=81.540 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4784063504 time=2672.867 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=5054739496 time=2940.615 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/BEC8DDD2-2551-4CBD-A63A-FF9A960F769F.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/BEC8DDD2-2551-4CBD-A63A-FF9A960F769F.dump-timings new file mode 100644 index 000000000..336f08ac2 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/BEC8DDD2-2551-4CBD-A63A-FF9A960F769F.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.471 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.025 +ByteCodeGen [Ghci1]: alloc=33504 time=0.113 +Simplify [expr]: alloc=64746200 time=36.703 +CorePrep [expr]: alloc=19937408 time=18.751 +ByteCodeGen [Ghci1]: alloc=173546432 time=222.411 +Renamer/typechecker [Main]: alloc=2042162560 time=2323.361 +Desugar [Main]: alloc=115296880 time=121.562 +Simplifier [Main]: alloc=949834776 time=998.178 +CoreTidy [Main]: alloc=95825816 time=85.867 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4784063504 time=2689.678 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=5054542888 time=3012.850 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/CB9F41AF-136A-444F-A39C-472D4184BC4A.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/CB9F41AF-136A-444F-A39C-472D4184BC4A.dump-timings new file mode 100644 index 000000000..85d7610e6 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/CB9F41AF-136A-444F-A39C-472D4184BC4A.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.466 +Simplify [expr]: alloc=14984 time=0.031 +CorePrep [expr]: alloc=8456 time=0.033 +ByteCodeGen [Ghci1]: alloc=33504 time=0.153 +Simplify [expr]: alloc=64746200 time=38.296 +CorePrep [expr]: alloc=19937408 time=19.020 +ByteCodeGen [Ghci1]: alloc=173546432 time=226.489 +Renamer/typechecker [Main]: alloc=2042165248 time=2537.358 +Desugar [Main]: alloc=115296880 time=137.911 +Simplifier [Main]: alloc=949834776 time=1074.178 +CoreTidy [Main]: alloc=95825816 time=78.122 +CorePrep [Main]: alloc=5248 time=0.022 +CodeGen [Main]: alloc=4784063504 time=2817.474 +CorePrep [Main]: alloc=5248 time=0.022 +CodeGen [Main]: alloc=5054542888 time=2970.119 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/EC2415C2-B1DF-4D4F-9EDA-C5079DA238CD.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/EC2415C2-B1DF-4D4F-9EDA-C5079DA238CD.dump-timings new file mode 100644 index 000000000..0b24dec2b --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/EC2415C2-B1DF-4D4F-9EDA-C5079DA238CD.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.371 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.019 +ByteCodeGen [Ghci1]: alloc=33504 time=0.116 +Simplify [expr]: alloc=64746200 time=35.109 +CorePrep [expr]: alloc=19937408 time=20.545 +ByteCodeGen [Ghci1]: alloc=173546432 time=214.025 +Renamer/typechecker [Main]: alloc=2042162600 time=2121.969 +Desugar [Main]: alloc=115296880 time=282.804 +Simplifier [Main]: alloc=949834776 time=820.639 +CoreTidy [Main]: alloc=95825816 time=277.487 +CorePrep [Main]: alloc=5248 time=0.015 +CodeGen [Main]: alloc=4784063504 time=2654.145 +CorePrep [Main]: alloc=5248 time=0.025 +CodeGen [Main]: alloc=5054542888 time=2824.685 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/FB59F867-9FF8-431D-9FF8-5CF838681C1B.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/FB59F867-9FF8-431D-9FF8-5CF838681C1B.dump-timings new file mode 100644 index 000000000..43d099406 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/FB59F867-9FF8-431D-9FF8-5CF838681C1B.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.452 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.118 +Simplify [expr]: alloc=64746200 time=32.992 +CorePrep [expr]: alloc=19937408 time=18.450 +ByteCodeGen [Ghci1]: alloc=173546432 time=215.309 +Renamer/typechecker [Main]: alloc=2042177384 time=2286.973 +Desugar [Main]: alloc=115296880 time=123.457 +Simplifier [Main]: alloc=949834776 time=992.878 +CoreTidy [Main]: alloc=95825816 time=83.247 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4784063504 time=2673.916 +CorePrep [Main]: alloc=5248 time=0.030 +CodeGen [Main]: alloc=5054542888 time=2997.844 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-baseline/FCEE6D6E-A327-47AB-8FC1-2F77031948BF.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/FCEE6D6E-A327-47AB-8FC1-2F77031948BF.dump-timings new file mode 100644 index 000000000..83906eec2 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-baseline/FCEE6D6E-A327-47AB-8FC1-2F77031948BF.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.446 +Simplify [expr]: alloc=14984 time=0.022 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.118 +Simplify [expr]: alloc=64746200 time=34.824 +CorePrep [expr]: alloc=19937408 time=18.569 +ByteCodeGen [Ghci1]: alloc=173546432 time=216.754 +Renamer/typechecker [Main]: alloc=2042174600 time=2363.049 +Desugar [Main]: alloc=115296880 time=104.492 +Simplifier [Main]: alloc=949834776 time=1066.713 +CoreTidy [Main]: alloc=95825816 time=81.623 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4784063504 time=2848.781 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=5054542888 time=2954.273 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/309DBD38-F24D-4069-A90A-0D66549E97B8.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/309DBD38-F24D-4069-A90A-0D66549E97B8.dump-timings new file mode 100644 index 000000000..2d0d3d4ae --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/309DBD38-F24D-4069-A90A-0D66549E97B8.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.456 +Simplify [expr]: alloc=14984 time=0.022 +CorePrep [expr]: alloc=8456 time=0.023 +ByteCodeGen [Ghci1]: alloc=33504 time=0.130 +Simplify [expr]: alloc=64746200 time=34.001 +CorePrep [expr]: alloc=19937408 time=18.110 +ByteCodeGen [Ghci1]: alloc=173546432 time=219.362 +Renamer/typechecker [Main]: alloc=1940735056 time=2030.117 +Desugar [Main]: alloc=112392056 time=292.408 +Simplifier [Main]: alloc=910751488 time=805.795 +CoreTidy [Main]: alloc=92778312 time=257.923 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2626.372 +CorePrep [Main]: alloc=5248 time=0.026 +CodeGen [Main]: alloc=4974509800 time=2789.006 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/3E6D938D-E7A3-4431-A0CD-BC7A25B29E46.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/3E6D938D-E7A3-4431-A0CD-BC7A25B29E46.dump-timings new file mode 100644 index 000000000..6cd34b89f --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/3E6D938D-E7A3-4431-A0CD-BC7A25B29E46.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.466 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.127 +Simplify [expr]: alloc=64746200 time=29.520 +CorePrep [expr]: alloc=19937408 time=16.899 +ByteCodeGen [Ghci1]: alloc=173546432 time=231.416 +Renamer/typechecker [Main]: alloc=1940732664 time=2077.515 +Desugar [Main]: alloc=112392056 time=117.389 +Simplifier [Main]: alloc=910751488 time=801.193 +CoreTidy [Main]: alloc=92778312 time=92.208 +CorePrep [Main]: alloc=5248 time=0.021 +CodeGen [Main]: alloc=4707054232 time=2583.839 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=4975918824 time=2785.276 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/41FC8093-2D4E-4539-83C5-B1E1B46D1485.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/41FC8093-2D4E-4539-83C5-B1E1B46D1485.dump-timings new file mode 100644 index 000000000..469cb0ece --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/41FC8093-2D4E-4539-83C5-B1E1B46D1485.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.474 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.118 +Simplify [expr]: alloc=64746200 time=37.605 +CorePrep [expr]: alloc=19937408 time=16.745 +ByteCodeGen [Ghci1]: alloc=173546432 time=220.284 +Renamer/typechecker [Main]: alloc=1940735400 time=2257.732 +Desugar [Main]: alloc=112392056 time=100.286 +Simplifier [Main]: alloc=910751488 time=974.118 +CoreTidy [Main]: alloc=92778312 time=71.316 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4707054232 time=2629.140 +CorePrep [Main]: alloc=5248 time=0.028 +CodeGen [Main]: alloc=4975099624 time=2971.747 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/48CC197F-C20A-4AE4-8260-C850853A0D37.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/48CC197F-C20A-4AE4-8260-C850853A0D37.dump-timings new file mode 100644 index 000000000..f2d43e363 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/48CC197F-C20A-4AE4-8260-C850853A0D37.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.446 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.020 +ByteCodeGen [Ghci1]: alloc=33504 time=0.113 +Simplify [expr]: alloc=64746200 time=34.980 +CorePrep [expr]: alloc=19937408 time=19.225 +ByteCodeGen [Ghci1]: alloc=173546432 time=221.780 +Renamer/typechecker [Main]: alloc=1940730040 time=2045.525 +Desugar [Main]: alloc=112392056 time=298.955 +Simplifier [Main]: alloc=910751488 time=791.797 +CoreTidy [Main]: alloc=92778312 time=264.349 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4707054232 time=2633.712 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4975099624 time=2783.404 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/7CB5AA9B-827E-4A4A-A42F-6D1D9612E8A5.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/7CB5AA9B-827E-4A4A-A42F-6D1D9612E8A5.dump-timings new file mode 100644 index 000000000..422d839d3 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/7CB5AA9B-827E-4A4A-A42F-6D1D9612E8A5.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.477 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.020 +ByteCodeGen [Ghci1]: alloc=33504 time=0.121 +Simplify [expr]: alloc=64746200 time=29.496 +CorePrep [expr]: alloc=19937408 time=18.242 +ByteCodeGen [Ghci1]: alloc=173546432 time=229.646 +Renamer/typechecker [Main]: alloc=1940732128 time=2095.759 +Desugar [Main]: alloc=112392056 time=126.996 +Simplifier [Main]: alloc=910751488 time=802.853 +CoreTidy [Main]: alloc=92778312 time=92.560 +CorePrep [Main]: alloc=5248 time=0.016 +CodeGen [Main]: alloc=4707152536 time=2653.280 +CorePrep [Main]: alloc=5248 time=0.024 +CodeGen [Main]: alloc=4975099624 time=2770.878 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/88D24A44-F586-43DA-844F-8521BD542D8C.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/88D24A44-F586-43DA-844F-8521BD542D8C.dump-timings new file mode 100644 index 000000000..437b3a9d1 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/88D24A44-F586-43DA-844F-8521BD542D8C.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.523 +Simplify [expr]: alloc=14984 time=0.022 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.112 +Simplify [expr]: alloc=64746200 time=34.381 +CorePrep [expr]: alloc=19937408 time=17.363 +ByteCodeGen [Ghci1]: alloc=173546432 time=222.017 +Renamer/typechecker [Main]: alloc=1940733352 time=2218.217 +Desugar [Main]: alloc=112392056 time=105.343 +Simplifier [Main]: alloc=910751488 time=976.426 +CoreTidy [Main]: alloc=92778312 time=66.811 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2639.996 +CorePrep [Main]: alloc=5248 time=0.021 +CodeGen [Main]: alloc=4975099624 time=2962.964 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/8F9C4CBD-7345-4BAF-A5AC-DF6199A92936.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/8F9C4CBD-7345-4BAF-A5AC-DF6199A92936.dump-timings new file mode 100644 index 000000000..00df05d62 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/8F9C4CBD-7345-4BAF-A5AC-DF6199A92936.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.445 +Simplify [expr]: alloc=14984 time=0.021 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.130 +Simplify [expr]: alloc=64746200 time=31.782 +CorePrep [expr]: alloc=19937408 time=19.660 +ByteCodeGen [Ghci1]: alloc=173546432 time=220.484 +Renamer/typechecker [Main]: alloc=1940729896 time=2069.242 +Desugar [Main]: alloc=112392056 time=300.031 +Simplifier [Main]: alloc=910751488 time=793.937 +CoreTidy [Main]: alloc=92778312 time=271.401 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4707054232 time=2608.721 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4975099624 time=2796.517 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9190E160-5282-49D8-AD6E-35710A00388D.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9190E160-5282-49D8-AD6E-35710A00388D.dump-timings new file mode 100644 index 000000000..17a7d9b75 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9190E160-5282-49D8-AD6E-35710A00388D.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.484 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.113 +Simplify [expr]: alloc=64746200 time=37.191 +CorePrep [expr]: alloc=19937408 time=20.706 +ByteCodeGen [Ghci1]: alloc=173546432 time=222.904 +Renamer/typechecker [Main]: alloc=1940727784 time=2053.504 +Desugar [Main]: alloc=112392056 time=264.138 +Simplifier [Main]: alloc=910751488 time=801.735 +CoreTidy [Main]: alloc=92778312 time=228.774 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4707644056 time=2629.013 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=4975099624 time=2900.661 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9EB83F59-1F47-4C48-95A8-12B456BB31B8.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9EB83F59-1F47-4C48-95A8-12B456BB31B8.dump-timings new file mode 100644 index 000000000..7d91a7709 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/9EB83F59-1F47-4C48-95A8-12B456BB31B8.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.464 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.119 +Simplify [expr]: alloc=64746200 time=36.273 +CorePrep [expr]: alloc=19937408 time=19.965 +ByteCodeGen [Ghci1]: alloc=173546432 time=217.554 +Renamer/typechecker [Main]: alloc=1940733888 time=2065.088 +Desugar [Main]: alloc=112392056 time=151.025 +Simplifier [Main]: alloc=910751488 time=963.090 +CoreTidy [Main]: alloc=92778312 time=98.019 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2835.842 +CorePrep [Main]: alloc=5248 time=0.028 +CodeGen [Main]: alloc=4975099624 time=2768.473 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/A7EE7E7D-2045-4C3B-BD59-89F736689C50.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/A7EE7E7D-2045-4C3B-BD59-89F736689C50.dump-timings new file mode 100644 index 000000000..a2019804f --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/A7EE7E7D-2045-4C3B-BD59-89F736689C50.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.558 +Simplify [expr]: alloc=14984 time=0.029 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.122 +Simplify [expr]: alloc=64746200 time=32.789 +CorePrep [expr]: alloc=19937408 time=18.035 +ByteCodeGen [Ghci1]: alloc=173546432 time=216.534 +Renamer/typechecker [Main]: alloc=1940733120 time=2218.946 +Desugar [Main]: alloc=112392056 time=101.891 +Simplifier [Main]: alloc=910751488 time=959.553 +CoreTidy [Main]: alloc=92778312 time=78.407 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4707054232 time=2592.962 +CorePrep [Main]: alloc=5248 time=0.023 +CodeGen [Main]: alloc=4975099624 time=2894.008 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/C38DB220-8AA0-4A0B-BE41-97FDF3CDB2B1.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/C38DB220-8AA0-4A0B-BE41-97FDF3CDB2B1.dump-timings new file mode 100644 index 000000000..d641758d2 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/C38DB220-8AA0-4A0B-BE41-97FDF3CDB2B1.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.476 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.023 +ByteCodeGen [Ghci1]: alloc=33504 time=0.122 +Simplify [expr]: alloc=64746200 time=33.379 +CorePrep [expr]: alloc=19937408 time=19.524 +ByteCodeGen [Ghci1]: alloc=173546432 time=221.706 +Renamer/typechecker [Main]: alloc=1940738208 time=2051.379 +Desugar [Main]: alloc=112392056 time=305.995 +Simplifier [Main]: alloc=910751488 time=817.584 +CoreTidy [Main]: alloc=92778312 time=275.331 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4707054232 time=2614.435 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4975099624 time=2831.693 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/D3B62BF1-6747-4756-8DE6-23E48B17297C.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/D3B62BF1-6747-4756-8DE6-23E48B17297C.dump-timings new file mode 100644 index 000000000..ecc70f0cc --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/D3B62BF1-6747-4756-8DE6-23E48B17297C.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.444 +Simplify [expr]: alloc=14984 time=0.029 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.116 +Simplify [expr]: alloc=64746200 time=32.825 +CorePrep [expr]: alloc=19937408 time=22.230 +ByteCodeGen [Ghci1]: alloc=173546432 time=220.550 +Renamer/typechecker [Main]: alloc=1940727760 time=2055.585 +Desugar [Main]: alloc=112392056 time=304.559 +Simplifier [Main]: alloc=910751488 time=797.868 +CoreTidy [Main]: alloc=92778312 time=263.781 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2630.519 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4975099624 time=2828.604 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E0BA8847-4003-42CE-A594-8CB5DBAE42FD.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E0BA8847-4003-42CE-A594-8CB5DBAE42FD.dump-timings new file mode 100644 index 000000000..25dffe513 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E0BA8847-4003-42CE-A594-8CB5DBAE42FD.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.446 +Simplify [expr]: alloc=14984 time=0.022 +CorePrep [expr]: alloc=8456 time=0.020 +ByteCodeGen [Ghci1]: alloc=33504 time=0.121 +Simplify [expr]: alloc=64746200 time=34.940 +CorePrep [expr]: alloc=19937408 time=16.435 +ByteCodeGen [Ghci1]: alloc=173546432 time=215.167 +Renamer/typechecker [Main]: alloc=1940735208 time=2221.629 +Desugar [Main]: alloc=112392056 time=102.160 +Simplifier [Main]: alloc=910751488 time=980.374 +CoreTidy [Main]: alloc=92778312 time=68.948 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2653.633 +CorePrep [Main]: alloc=5248 time=0.026 +CodeGen [Main]: alloc=4975099624 time=2890.975 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E380A153-A078-491D-A28E-55E7777369B1.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E380A153-A078-491D-A28E-55E7777369B1.dump-timings new file mode 100644 index 000000000..258ccae81 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/E380A153-A078-491D-A28E-55E7777369B1.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.484 +Simplify [expr]: alloc=14984 time=0.026 +CorePrep [expr]: alloc=8456 time=0.024 +ByteCodeGen [Ghci1]: alloc=33504 time=0.114 +Simplify [expr]: alloc=64746200 time=37.822 +CorePrep [expr]: alloc=19937408 time=19.071 +ByteCodeGen [Ghci1]: alloc=173546432 time=228.011 +Renamer/typechecker [Main]: alloc=1940730528 time=2231.676 +Desugar [Main]: alloc=112392056 time=98.432 +Simplifier [Main]: alloc=910751488 time=1005.250 +CoreTidy [Main]: alloc=92778312 time=71.084 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2621.822 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=4975099624 time=2917.258 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/F7E97B4D-C158-4846-B059-73DEFE2DD413.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/F7E97B4D-C158-4846-B059-73DEFE2DD413.dump-timings new file mode 100644 index 000000000..0839bed1b --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/F7E97B4D-C158-4846-B059-73DEFE2DD413.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.473 +Simplify [expr]: alloc=14984 time=0.022 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.112 +Simplify [expr]: alloc=64746200 time=34.469 +CorePrep [expr]: alloc=19937408 time=20.810 +ByteCodeGen [Ghci1]: alloc=173546432 time=224.358 +Renamer/typechecker [Main]: alloc=1940733488 time=2060.802 +Desugar [Main]: alloc=112392056 time=303.534 +Simplifier [Main]: alloc=910751488 time=797.800 +CoreTidy [Main]: alloc=92778312 time=269.011 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4707054232 time=2596.393 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=4975099624 time=2788.924 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/FBC76C63-34E1-4DB4-8995-F9DC4BBE5838.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/FBC76C63-34E1-4DB4-8995-F9DC4BBE5838.dump-timings new file mode 100644 index 000000000..7339de75a --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant/FBC76C63-34E1-4DB4-8995-F9DC4BBE5838.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.467 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.115 +Simplify [expr]: alloc=64746200 time=33.349 +CorePrep [expr]: alloc=19937408 time=19.653 +ByteCodeGen [Ghci1]: alloc=173546432 time=220.533 +Renamer/typechecker [Main]: alloc=1940735088 time=2033.987 +Desugar [Main]: alloc=112392056 time=301.756 +Simplifier [Main]: alloc=910751488 time=778.573 +CoreTidy [Main]: alloc=92778312 time=267.545 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2607.558 +CorePrep [Main]: alloc=5248 time=0.027 +CodeGen [Main]: alloc=4975099624 time=2804.153 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/1173E8E2-87E7-46AF-8E81-482DBC285CAA.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/1173E8E2-87E7-46AF-8E81-482DBC285CAA.dump-timings new file mode 100644 index 000000000..61246ec71 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/1173E8E2-87E7-46AF-8E81-482DBC285CAA.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.471 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.148 +Simplify [expr]: alloc=64746200 time=32.715 +CorePrep [expr]: alloc=19937408 time=17.575 +ByteCodeGen [Ghci1]: alloc=173546432 time=216.406 +Renamer/typechecker [Main]: alloc=1940733336 time=2044.470 +Desugar [Main]: alloc=112392056 time=277.981 +Simplifier [Main]: alloc=910751488 time=804.165 +CoreTidy [Main]: alloc=92778312 time=251.017 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2656.710 +CorePrep [Main]: alloc=5248 time=0.025 +CodeGen [Main]: alloc=4975099624 time=2984.620 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/36D04B47-F7C3-45CB-B97D-3D845D0B5B15.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/36D04B47-F7C3-45CB-B97D-3D845D0B5B15.dump-timings new file mode 100644 index 000000000..8932890d9 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/36D04B47-F7C3-45CB-B97D-3D845D0B5B15.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.455 +Simplify [expr]: alloc=14984 time=0.027 +CorePrep [expr]: alloc=8456 time=0.023 +ByteCodeGen [Ghci1]: alloc=33504 time=0.119 +Simplify [expr]: alloc=64746200 time=38.862 +CorePrep [expr]: alloc=19937408 time=18.559 +ByteCodeGen [Ghci1]: alloc=173546432 time=219.852 +Renamer/typechecker [Main]: alloc=1940733848 time=2201.509 +Desugar [Main]: alloc=112392056 time=107.124 +Simplifier [Main]: alloc=910751488 time=960.839 +CoreTidy [Main]: alloc=92778312 time=78.651 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2628.667 +CorePrep [Main]: alloc=5248 time=0.025 +CodeGen [Main]: alloc=4975099624 time=2914.563 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/468B441B-3977-483B-B5DB-1D5516F4BCF6.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/468B441B-3977-483B-B5DB-1D5516F4BCF6.dump-timings new file mode 100644 index 000000000..604b2a196 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/468B441B-3977-483B-B5DB-1D5516F4BCF6.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.472 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.020 +ByteCodeGen [Ghci1]: alloc=33504 time=0.122 +Simplify [expr]: alloc=64746200 time=32.730 +CorePrep [expr]: alloc=19937408 time=17.373 +ByteCodeGen [Ghci1]: alloc=173546432 time=221.569 +Renamer/typechecker [Main]: alloc=1940732296 time=2205.353 +Desugar [Main]: alloc=112392056 time=107.372 +Simplifier [Main]: alloc=910751488 time=962.294 +CoreTidy [Main]: alloc=92778312 time=71.143 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2624.455 +CorePrep [Main]: alloc=5248 time=0.029 +CodeGen [Main]: alloc=4975099624 time=2952.880 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/67B0D539-1F6D-4011-8DEE-F3DBE74EA818.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/67B0D539-1F6D-4011-8DEE-F3DBE74EA818.dump-timings new file mode 100644 index 000000000..863a6dc25 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/67B0D539-1F6D-4011-8DEE-F3DBE74EA818.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.466 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.136 +Simplify [expr]: alloc=64746200 time=30.171 +CorePrep [expr]: alloc=19937408 time=16.484 +ByteCodeGen [Ghci1]: alloc=173546432 time=229.305 +Renamer/typechecker [Main]: alloc=1940730584 time=2021.671 +Desugar [Main]: alloc=112392056 time=114.778 +Simplifier [Main]: alloc=910751488 time=800.663 +CoreTidy [Main]: alloc=92778312 time=92.483 +CorePrep [Main]: alloc=5248 time=0.016 +CodeGen [Main]: alloc=4707054232 time=2810.066 +CorePrep [Main]: alloc=5248 time=0.023 +CodeGen [Main]: alloc=4975099624 time=2783.956 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/901C035C-E1E4-4801-AD0D-6409091553E3.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/901C035C-E1E4-4801-AD0D-6409091553E3.dump-timings new file mode 100644 index 000000000..532485ca0 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/901C035C-E1E4-4801-AD0D-6409091553E3.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.466 +Simplify [expr]: alloc=14984 time=0.024 +CorePrep [expr]: alloc=8456 time=0.020 +ByteCodeGen [Ghci1]: alloc=33504 time=0.120 +Simplify [expr]: alloc=64746200 time=32.916 +CorePrep [expr]: alloc=19937408 time=18.095 +ByteCodeGen [Ghci1]: alloc=173546432 time=222.205 +Renamer/typechecker [Main]: alloc=1940732472 time=2223.577 +Desugar [Main]: alloc=112392056 time=105.122 +Simplifier [Main]: alloc=910751488 time=976.990 +CoreTidy [Main]: alloc=92778312 time=76.836 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2647.552 +CorePrep [Main]: alloc=5248 time=0.028 +CodeGen [Main]: alloc=4974771944 time=2971.728 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/905BECB8-0418-4F6A-AFF0-48D035378C64.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/905BECB8-0418-4F6A-AFF0-48D035378C64.dump-timings new file mode 100644 index 000000000..92b661903 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/905BECB8-0418-4F6A-AFF0-48D035378C64.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.457 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.019 +ByteCodeGen [Ghci1]: alloc=33504 time=0.118 +Simplify [expr]: alloc=64746200 time=36.449 +CorePrep [expr]: alloc=19937408 time=19.169 +ByteCodeGen [Ghci1]: alloc=173546432 time=226.180 +Renamer/typechecker [Main]: alloc=1940733016 time=2134.974 +Desugar [Main]: alloc=112392056 time=114.238 +Simplifier [Main]: alloc=910751488 time=788.390 +CoreTidy [Main]: alloc=92778312 time=87.631 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2754.876 +CorePrep [Main]: alloc=5248 time=0.026 +CodeGen [Main]: alloc=4975197928 time=2822.941 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A440C1A4-392F-47C4-9B27-EE4392E7F03B.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A440C1A4-392F-47C4-9B27-EE4392E7F03B.dump-timings new file mode 100644 index 000000000..a39d60d58 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A440C1A4-392F-47C4-9B27-EE4392E7F03B.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.472 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.019 +ByteCodeGen [Ghci1]: alloc=33504 time=0.115 +Simplify [expr]: alloc=64746200 time=34.346 +CorePrep [expr]: alloc=19937408 time=19.535 +ByteCodeGen [Ghci1]: alloc=173546432 time=222.881 +Renamer/typechecker [Main]: alloc=1940730768 time=2057.456 +Desugar [Main]: alloc=112392056 time=301.243 +Simplifier [Main]: alloc=910751488 time=786.541 +CoreTidy [Main]: alloc=92778312 time=268.221 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2615.175 +CorePrep [Main]: alloc=5248 time=0.025 +CodeGen [Main]: alloc=4975099624 time=2757.123 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A994A6A4-2756-4B5C-949E-C58BB1DB7172.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A994A6A4-2756-4B5C-949E-C58BB1DB7172.dump-timings new file mode 100644 index 000000000..b6e74ffdc --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/A994A6A4-2756-4B5C-949E-C58BB1DB7172.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.468 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.108 +Simplify [expr]: alloc=64746200 time=33.457 +CorePrep [expr]: alloc=19937408 time=18.219 +ByteCodeGen [Ghci1]: alloc=173546432 time=223.733 +Renamer/typechecker [Main]: alloc=1940731040 time=2050.090 +Desugar [Main]: alloc=112392056 time=119.577 +Simplifier [Main]: alloc=910751488 time=795.546 +CoreTidy [Main]: alloc=92778312 time=258.046 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2636.343 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4975099624 time=2920.151 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B15EF939-3985-4C0C-9291-ED9CF6F354EB.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B15EF939-3985-4C0C-9291-ED9CF6F354EB.dump-timings new file mode 100644 index 000000000..99b76382e --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B15EF939-3985-4C0C-9291-ED9CF6F354EB.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.466 +Simplify [expr]: alloc=14984 time=0.025 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.113 +Simplify [expr]: alloc=64746200 time=34.757 +CorePrep [expr]: alloc=19937408 time=19.703 +ByteCodeGen [Ghci1]: alloc=173546432 time=222.599 +Renamer/typechecker [Main]: alloc=1940732432 time=2240.208 +Desugar [Main]: alloc=112392056 time=94.760 +Simplifier [Main]: alloc=910751488 time=969.257 +CoreTidy [Main]: alloc=92778312 time=76.175 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4707054232 time=2639.225 +CorePrep [Main]: alloc=5248 time=0.025 +CodeGen [Main]: alloc=4974739176 time=2910.491 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B93DEC68-4BBB-4FCC-A2D6-F84E0F23BBED.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B93DEC68-4BBB-4FCC-A2D6-F84E0F23BBED.dump-timings new file mode 100644 index 000000000..3e9e5e8e3 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/B93DEC68-4BBB-4FCC-A2D6-F84E0F23BBED.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.485 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.020 +ByteCodeGen [Ghci1]: alloc=33504 time=0.147 +Simplify [expr]: alloc=64746200 time=35.860 +CorePrep [expr]: alloc=19937408 time=18.864 +ByteCodeGen [Ghci1]: alloc=173546432 time=220.978 +Renamer/typechecker [Main]: alloc=1940730432 time=2044.041 +Desugar [Main]: alloc=112392056 time=271.086 +Simplifier [Main]: alloc=910751488 time=793.001 +CoreTidy [Main]: alloc=92778312 time=233.945 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2595.214 +CorePrep [Main]: alloc=5248 time=0.023 +CodeGen [Main]: alloc=4975099624 time=2928.281 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C20DCB54-A528-4037-A989-A8FED26E1C21.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C20DCB54-A528-4037-A989-A8FED26E1C21.dump-timings new file mode 100644 index 000000000..f70f873b7 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C20DCB54-A528-4037-A989-A8FED26E1C21.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.440 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.119 +Simplify [expr]: alloc=64746200 time=34.673 +CorePrep [expr]: alloc=19937408 time=17.581 +ByteCodeGen [Ghci1]: alloc=173546432 time=218.761 +Renamer/typechecker [Main]: alloc=1940733168 time=2064.803 +Desugar [Main]: alloc=112392056 time=269.138 +Simplifier [Main]: alloc=910751488 time=803.743 +CoreTidy [Main]: alloc=92778312 time=230.755 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2683.224 +CorePrep [Main]: alloc=5248 time=0.023 +CodeGen [Main]: alloc=4975099624 time=2945.122 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C755D1B4-1A63-46BC-A1F8-19DEB236E346.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C755D1B4-1A63-46BC-A1F8-19DEB236E346.dump-timings new file mode 100644 index 000000000..2b491960d --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/C755D1B4-1A63-46BC-A1F8-19DEB236E346.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.466 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.112 +Simplify [expr]: alloc=64746200 time=34.653 +CorePrep [expr]: alloc=19937408 time=17.034 +ByteCodeGen [Ghci1]: alloc=173546432 time=224.289 +Renamer/typechecker [Main]: alloc=1940735632 time=2208.180 +Desugar [Main]: alloc=112392056 time=109.482 +Simplifier [Main]: alloc=910751488 time=979.812 +CoreTidy [Main]: alloc=92778312 time=74.980 +CorePrep [Main]: alloc=5248 time=0.017 +CodeGen [Main]: alloc=4707054232 time=2675.330 +CorePrep [Main]: alloc=5248 time=0.023 +CodeGen [Main]: alloc=4975099624 time=2935.093 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/D64C7A4C-04E3-4C0B-90DD-9CD06239D285.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/D64C7A4C-04E3-4C0B-90DD-9CD06239D285.dump-timings new file mode 100644 index 000000000..f8080fc25 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/D64C7A4C-04E3-4C0B-90DD-9CD06239D285.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.474 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.116 +Simplify [expr]: alloc=64746200 time=32.807 +CorePrep [expr]: alloc=19937408 time=18.155 +ByteCodeGen [Ghci1]: alloc=173546432 time=216.217 +Renamer/typechecker [Main]: alloc=1940728448 time=2252.654 +Desugar [Main]: alloc=112392056 time=102.698 +Simplifier [Main]: alloc=910751488 time=963.016 +CoreTidy [Main]: alloc=92778312 time=75.280 +CorePrep [Main]: alloc=5248 time=0.019 +CodeGen [Main]: alloc=4707054232 time=2655.542 +CorePrep [Main]: alloc=5248 time=0.022 +CodeGen [Main]: alloc=4974673640 time=2889.517 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/E8AB6CCD-68BC-4FE4-9A75-7AD5D5A8E02E.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/E8AB6CCD-68BC-4FE4-9A75-7AD5D5A8E02E.dump-timings new file mode 100644 index 000000000..e0d9a35d1 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/E8AB6CCD-68BC-4FE4-9A75-7AD5D5A8E02E.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.462 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.022 +ByteCodeGen [Ghci1]: alloc=33504 time=0.121 +Simplify [expr]: alloc=64746200 time=34.704 +CorePrep [expr]: alloc=19937408 time=16.715 +ByteCodeGen [Ghci1]: alloc=173546432 time=226.601 +Renamer/typechecker [Main]: alloc=1940735968 time=2214.017 +Desugar [Main]: alloc=112392056 time=112.756 +Simplifier [Main]: alloc=910751488 time=971.377 +CoreTidy [Main]: alloc=92778312 time=74.106 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707742360 time=2613.317 +CorePrep [Main]: alloc=5248 time=0.026 +CodeGen [Main]: alloc=4975099624 time=2896.557 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/EBA76501-ADB8-4D20-97FF-91EF9A3E6A88.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/EBA76501-ADB8-4D20-97FF-91EF9A3E6A88.dump-timings new file mode 100644 index 000000000..301122796 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/EBA76501-ADB8-4D20-97FF-91EF9A3E6A88.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.525 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.021 +ByteCodeGen [Ghci1]: alloc=33504 time=0.113 +Simplify [expr]: alloc=64746200 time=33.565 +CorePrep [expr]: alloc=19937408 time=16.888 +ByteCodeGen [Ghci1]: alloc=173546432 time=214.616 +Renamer/typechecker [Main]: alloc=1940730704 time=2237.387 +Desugar [Main]: alloc=112392056 time=104.373 +Simplifier [Main]: alloc=910751488 time=992.878 +CoreTidy [Main]: alloc=92778312 time=75.639 +CorePrep [Main]: alloc=5248 time=0.018 +CodeGen [Main]: alloc=4707054232 time=2642.589 +CorePrep [Main]: alloc=5248 time=0.028 +CodeGen [Main]: alloc=4975099624 time=2947.616 diff --git a/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/F0074BF1-3922-4DEA-ADD5-550C5697BFC8.dump-timings b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/F0074BF1-3922-4DEA-ADD5-550C5697BFC8.dump-timings new file mode 100644 index 000000000..d7fe01ee4 --- /dev/null +++ b/persistent-template/compile-time-testing/projects/Mercury/results-no-servant2/F0074BF1-3922-4DEA-ADD5-550C5697BFC8.dump-timings @@ -0,0 +1,15 @@ +Parser [Main]: alloc=1135440 time=0.469 +Simplify [expr]: alloc=14984 time=0.023 +CorePrep [expr]: alloc=8456 time=0.023 +ByteCodeGen [Ghci1]: alloc=33504 time=0.110 +Simplify [expr]: alloc=64746200 time=40.926 +CorePrep [expr]: alloc=19937408 time=19.308 +ByteCodeGen [Ghci1]: alloc=173546432 time=225.850 +Renamer/typechecker [Main]: alloc=1940733008 time=2261.032 +Desugar [Main]: alloc=112392056 time=108.771 +Simplifier [Main]: alloc=910751488 time=988.047 +CoreTidy [Main]: alloc=92778312 time=70.931 +CorePrep [Main]: alloc=5248 time=0.020 +CodeGen [Main]: alloc=4707054232 time=2638.753 +CorePrep [Main]: alloc=5248 time=0.026 +CodeGen [Main]: alloc=4974837480 time=3198.884