-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
599f89e
commit 4fc0632
Showing
5 changed files
with
560 additions
and
4 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 |
---|---|---|
|
@@ -17,4 +17,7 @@ build/ | |
*.exe | ||
*.dll | ||
*.generated.nim | ||
nimble.paths | ||
nimble.paths | ||
|
||
#OS specific files | ||
**/.DS_Store |
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,2 @@ | ||
!*.nim | ||
!*.sh |
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,25 @@ | ||
#!/bin/bash | ||
|
||
objs=("tx" "header" "blk" "blk80" "blk320" "blk640" "blk1280") | ||
|
||
for obj in "${objs[@]}"; do | ||
nim compile --mm:orc -d:$obj -d:release --out:bench_"$obj"_default profiler.nim | ||
nim compile --mm:orc -d:$obj -d:opt -d:release --out:bench_"$obj"_two_pass profiler.nim | ||
nim compile --mm:orc -d:$obj -d:hash -d:release --out:bench_"$obj"_default_hash profiler.nim | ||
nim compile --mm:orc -d:$obj -d:hash -d:opt -d:release --out:bench_"$obj"_hash_writer profiler.nim | ||
nim compile --mm:refc -d:$obj -d:release --out:bench_"$obj"_default_refc profiler.nim | ||
nim compile --mm:refc -d:$obj -d:opt -d:release --out:bench_"$obj"_two_pass_refc profiler.nim | ||
nim compile --mm:refc -d:$obj -d:hash -d:release --out:bench_"$obj"_default_hash_refc profiler.nim | ||
nim compile --mm:refc -d:$obj -d:hash -d:opt -d:release --out:bench_"$obj"_hash_writer_refc profiler.nim | ||
done | ||
|
||
for obj in "${objs[@]}"; do | ||
source ./bench_"$obj"_default | ||
source ./bench_"$obj"_two_pass | ||
source ./bench_"$obj"_default_hash | ||
source ./bench_"$obj"_hash_writer | ||
source ./bench_"$obj"_default_refc | ||
source ./bench_"$obj"_two_pass_refc | ||
source ./bench_"$obj"_default_hash_refc | ||
source ./bench_"$obj"_hash_writer_refc | ||
done |
Oops, something went wrong.