Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
octu0 committed Apr 1, 2021
1 parent 312bcc4 commit df07047
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,9 @@ GLOBAL OPTIONS:
--version, -v print the version
```

## Benchmarks
# Benchmarks

In [cgo](https://golang.org/cmd/cgo/), due to the overhead of ffi calls([e.g.](https://about.sourcegraph.com/go/gophercon-2018-adventures-in-cgo-performance/)),
more complex operations will be optimized for CPU and become faster.
Also, the execution speed may be reduced by the overhead of multiple calls.

### Halide JIT benchmarks
## Halide JIT benchmarks

This is the result of using halide's [benchamrk](https://github.com/halide/Halide/blob/master/tools/halide_benchmark.h).
darwin/amd64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
Expand All @@ -218,6 +214,13 @@ BenchmarkJIT/laplacian : 0.237021ms
BenchmarkJIT/blockmozaic : 0.345473ms
```

## AOT benchmarks

Calling a library compiled by AOT(ahead-of-time) via cgo.
In [cgo](https://golang.org/cmd/cgo/), due to the overhead of ffi calls([e.g.](https://about.sourcegraph.com/go/gophercon-2018-adventures-in-cgo-performance/)),
more complex operations will be optimized for CPU and become faster.
Also, the execution speed may be reduced by the overhead of multiple calls.

### Blur

/D is `DisablePool`, i.e. the benchmark when BufferPool is off.
Expand Down

0 comments on commit df07047

Please sign in to comment.