-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[benchmark] Upgrade to Time Performance Regression Test (TPRT) (#1002)
* [skip ci] Upgrade benchmark for TPRT * [skip ci] add my comments * [skip ci] pybenchmark :) * [skip ci] tmp save (mature) * [skip ci] fix typo * [skip ci] add 'repeat=' * [skip ci] nit * [skip ci] run 4 times to warm up * [skip ci] fix typo
- Loading branch information
Showing
11 changed files
with
104 additions
and
91 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import taichi as ti | ||
|
||
|
||
@ti.all_archs | ||
def benchmark_fill_scalar(): | ||
a = ti.var(dt=ti.f32, shape=()) | ||
|
||
@ti.kernel | ||
def fill(): | ||
a[None] = 1.0 | ||
|
||
return ti.benchmark(fill) | ||
return ti.benchmark(fill, repeat=1000) |
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
Oops, something went wrong.