mirror of
https://github.com/franklynwang/EcneProject.git
synced 2026-04-20 03:02:45 -04:00
18 lines
424 B
Julia
18 lines
424 B
Julia
using BenchmarkTools
|
|
import R1CSConstraintSolver: solveWithTrustedFunctions
|
|
|
|
|
|
macro run_bench(name, expr, args...)
|
|
quote
|
|
printstyled("Benchmark: ", $name, "\n"; color = :yellow)
|
|
display(@benchmark esc($expr) $(args...))
|
|
println("\n\n")
|
|
end
|
|
end
|
|
|
|
@run_bench "Trivial Multiplication Benchmark" begin
|
|
solveWithTrustedFunctions("target/division.r1cs", "target/division.sym", "division")
|
|
end
|
|
|
|
|