-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of benchmarks-v3 / PR #204
- Loading branch information
1 parent
0f5ed20
commit 7393e1f
Showing
13 changed files
with
241 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/lake-packages/* | ||
/.lake/* | ||
*.log | ||
/data/* |
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,19 @@ | ||
/- | ||
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Author(s): Alex Keizer | ||
-/ | ||
import Tactics.Sym | ||
import Benchmarks.Command | ||
import Benchmarks.SHA512 | ||
|
||
open Benchmarks | ||
|
||
disable_linters in | ||
set_option debug.skipKernelTC true in | ||
benchmark sha512_150_noKernel_noLint : SHA512Bench 150 := fun s0 _ h => by | ||
intros | ||
sym_n 150 | ||
simp only [h, bitvec_rules] | ||
· exact (sorry : Aligned ..) | ||
done |
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,19 @@ | ||
/- | ||
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Author(s): Alex Keizer | ||
-/ | ||
import Tactics.Sym | ||
import Benchmarks.Command | ||
import Benchmarks.SHA512 | ||
|
||
open Benchmarks | ||
|
||
disable_linters in | ||
set_option debug.skipKernelTC true in | ||
benchmark sha512_225_noKernel_noLint : SHA512Bench 225 := fun s0 _ h => by | ||
intros | ||
sym_n 225 | ||
simp only [h, bitvec_rules] | ||
· exact (sorry : Aligned ..) | ||
done |
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,19 @@ | ||
/- | ||
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Author(s): Alex Keizer | ||
-/ | ||
import Tactics.Sym | ||
import Benchmarks.Command | ||
import Benchmarks.SHA512 | ||
|
||
open Benchmarks | ||
|
||
disable_linters in | ||
set_option debug.skipKernelTC true in | ||
benchmark sha512_400_noKernel_noLint : SHA512Bench 400 := fun s0 _ h => by | ||
intros | ||
sym_n 400 | ||
simp only [h, bitvec_rules] | ||
· exact (sorry : Aligned ..) | ||
done |
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,17 @@ | ||
/- | ||
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Author(s): Alex Keizer | ||
-/ | ||
import Tactics.Sym | ||
import Benchmarks.Command | ||
import Benchmarks.SHA512 | ||
|
||
open Benchmarks | ||
|
||
benchmark sha512_75 : SHA512Bench 75 := fun s0 _ h => by | ||
intros | ||
sym_n 75 | ||
simp only [h, bitvec_rules] | ||
· exact (sorry : Aligned ..) | ||
done |
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,19 @@ | ||
/- | ||
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Author(s): Alex Keizer | ||
-/ | ||
import Tactics.Sym | ||
import Benchmarks.Command | ||
import Benchmarks.SHA512 | ||
|
||
open Benchmarks | ||
|
||
disable_linters in | ||
set_option debug.skipKernelTC true in | ||
benchmark sha512_75_noKernel_noLint : SHA512Bench 75 := fun s0 _ h => by | ||
intros | ||
sym_n 75 | ||
simp only [h, bitvec_rules] | ||
· exact (sorry : Aligned ..) | ||
done |
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,20 @@ | ||
#!/bin/bash | ||
|
||
LAKE=lake | ||
BENCH="$LAKE env lean -Dweak.benchmark.runs=5" | ||
OUT="data/benchmarks" | ||
|
||
timestamp=$(date +"%Y-%m-%d_%H%M%S") | ||
rev=$(git rev-parse --short HEAD) | ||
echo "HEAD is on $rev" | ||
out="$OUT/${timestamp}_${rev}" | ||
mkdir -p "$out" | ||
|
||
$LAKE build Benchmarks | ||
for file in "$@"; do | ||
echo | ||
echo + $file | ||
echo | ||
base="$(basename "$file" ".lean")" | ||
$BENCH $file | tee "$out/$base" | ||
done |
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,20 @@ | ||
#!/bin/bash | ||
|
||
LAKE=lake | ||
PROF="$LAKE env lean -Dprofiler=true" | ||
OUT="data/profiles" | ||
|
||
timestamp=$(date +"%Y-%m-%d_%H%M%S") | ||
rev=$(git rev-parse --short HEAD) | ||
echo "HEAD is on $rev" | ||
out="$OUT/${timestamp}_${rev}" | ||
mkdir -p "$out" | ||
|
||
$LAKE build Benchmarks | ||
for file in "$@"; do | ||
echo | ||
echo + $file | ||
echo | ||
base="$(basename "$file" ".lean")" | ||
$PROF -Dtrace.profiler.output="$out/$base.json" "$file" | tee "$base.log" | ||
done |