Skip to content

Commit

Permalink
try bun
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Nov 14, 2023
1 parent 5e61eba commit abf1a21
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
image: ghcr.io/0xolias/simple-anvil-image:main
environment:
ANVIL_FORK_URL: "${ANVIL_FORK_URL}"
ANVIL_FORK_BLOCK_NUMBER: 17500000
# ANVIL_FORK_BLOCK_NUMBER: 17500000
ports:
- 8545:8545
graph-node:
Expand Down
5 changes: 3 additions & 2 deletions benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "ponder-benchmarks",
"private": true,
"scripts": {
"bench:ponder": "export $(grep -v '^#' .env.local | xargs) && rm -rf data/ && docker-compose up --detach && tsup-node && (node dist/ponder.mjs || true) && docker-compose down",
"bench:ponder:ci": "tsup-node && node dist/ponder.mjs",
"bench:ponder": "export $(grep -v '^#' .env.local | xargs) && rm -rf data/ && docker-compose up --detach -p 8545:8545 && (bun run src/ponder.ts || true) && docker-compose down",
"bench:ponder:ci": "bun run src/ponder.ts",
"bench:subgraph": "export $(grep -v '^#' .env.local | xargs) && rm -rf data/ && docker-compose up --detach && tsup-node && (node dist/subgraph.mjs || true) && docker-compose down",
"bench:subgraph:ci": "tsup-node && node dist/subgraph.mjs"
},
Expand All @@ -12,6 +12,7 @@
"@graphprotocol/graph-ts": "^0.31.0",
"@ponder/core": "workspace:*",
"@types/node": "^20.9.0",
"bun": "^1.0.11",
"execa": "^8.0.1",
"parse-prometheus-text-format": "^1.1.1",
"tsup": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/ponder/ponder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const config = createConfig({
{
name: "mainnet",
chainId: 1,
transport: http(process.env.ANVIL_FORK_URL),
transport: http("http://127.0.0.1:8545"),
},
],
contracts: [
Expand Down
66 changes: 66 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abf1a21

Please sign in to comment.