mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-30 00:25:29 +00:00
53ff8b5db1
This project includes the following components: - `terraform/`: a Terraform scripts to provision infrastructure - `impl/`: implementations of the [libp2p perf protocol](https://github.com/libp2p/specs/blob/master/perf/perf.md) running on top of e.g. go-libp2p, rust-libp2p or Go's std-library https stack - `runner/`: a set of scripts building and running the above implementations on the above infrastructure, reporting the results in `benchmark-results.json` Benchmark results can be visualized with https://observablehq.com/@mxinden-workspace/libp2p-performance-dashboard. Co-authored-by: Marco Munizaga <git@marcopolo.io> Co-authored-by: Marten Seemann <martenseemann@gmail.com> Co-authored-by: Piotr Galar <piotr.galar@gmail.com>
30 lines
460 B
HCL
30 lines
460 B
HCL
terraform {
|
|
required_providers {
|
|
aws = {
|
|
source = "hashicorp/aws"
|
|
version = "4.67.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
resource "aws_key_pair" "perf" {
|
|
key_name_prefix = "perf-"
|
|
public_key = file("${path.module}/files/perf.pub")
|
|
}
|
|
|
|
resource "aws_instance" "perf" {
|
|
tags = {
|
|
Name = "perf-node"
|
|
}
|
|
|
|
launch_template {
|
|
name = "perf-node"
|
|
}
|
|
|
|
key_name = aws_key_pair.perf.key_name
|
|
}
|
|
|
|
output "public_ip" {
|
|
value = aws_instance.perf.public_ip
|
|
}
|