-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into lars/batches
- Loading branch information
Showing
130 changed files
with
4,415 additions
and
1,912 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build and cache with Nix | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
build-and-cache: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Nix with caching | ||
uses: kadena-io/setup-nix-with-cache@v1 | ||
with: | ||
cache_url: s3://nixcache.chainweb.com?region=us-east-1 | ||
signing_private_key: ${{ secrets.NIX_CACHE_PRIVATE_KEY }} | ||
|
||
- name: Set up AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.NIX_CACHE_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.NIX_CACHE_AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-1 | ||
|
||
- name: Build and cache artifacts | ||
timeout-minutes: 740 | ||
run: | | ||
echo Building the project and its devShell | ||
nix build .#check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
module Main (main) | ||
where | ||
|
||
-- | | ||
-- Module: JSONEncoding | ||
-- Copyright: Copyright © 2021 Kadena LLC. | ||
-- License: MIT | ||
-- Maintainer: Lars Kuhtz <[email protected]> | ||
-- Stability: experimental | ||
-- | ||
import Criterion.Main | ||
module Main (main) | ||
where | ||
|
||
import Data.CAS.RocksDB | ||
import Criterion.Main | ||
|
||
import qualified Chainweb.Pact.Backend.Bench as Checkpointer | ||
import qualified Chainweb.Pact.Backend.ForkingBench as ForkingBench | ||
import qualified JSONEncoding | ||
|
||
import Chainweb.Storage.Table.RocksDB | ||
|
||
main :: IO () | ||
main = withTempRocksDb "benchmarks" $ \rdb -> do | ||
defaultMain | ||
|
Oops, something went wrong.