Skip to content

Commit

Permalink
Merge pull request #146 from c4dt/add_speeds
Browse files Browse the repository at this point in the history
Adding benchmark tests
  • Loading branch information
ineiti authored Mar 8, 2024
2 parents 779ba47 + 3742ba9 commit 7d60164
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,40 @@ go build -ldflags="-X $versionFlag -X $timeFlag" ./cli/dvoting

Note that `make build` will do that for you.

# Benchmarks

For more details, see https://github.com/c4dt/d-voting/issues/47

```
+------------+-------------+--------------+
I I 1'000 I 10'000 I
+------------+-------------+--------------+
I CASTING I 95s I 888s I
I I 95ms/vote I 95ms/vote I
+------------+-------------+--------------+
I Blocks I 179 I 1466 I
I I 5.6/block I 6.8/block I
+------------+-------------+--------------+
I SHUFFLING I 56s I 542s I
+------------+-------------+--------------+
I Blocks I 9 I 10 I
+------------+-------------+--------------+
I DECRYPTING I 5s I 49s I
+------------+-------------+--------------+
I Blocks I 2 I 3 I
+------------+-------------+--------------+
I COMBINING I 1s I 47s I
+------------+-------------+--------------+
I Blocks I 1 I 1 I
+------------+-------------+--------------+
I DISPLAYING I <1s I 5s I
+------------+-------------+--------------+
```

- 10'000 votes
- casting: 95s, 179 blocks - 95ms/vote, 5.6 votes / block

---

<img width="200px" src="docs/unicore_logo.png"/>
Expand Down
3 changes: 1 addition & 2 deletions web/backend/run_votes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fi

votes=${2:-120}

cls
ts-node src/cli.ts vote -f https://dvoting.c4dt.org \
npx ts-node src/cli.ts vote -f https://dvoting.c4dt.org \
-e $1 \
-b $votes -a 111111

0 comments on commit 7d60164

Please sign in to comment.