Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uberswe/goplugins
https://github.com/uberswe/goplugins
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/uberswe/goplugins
- Owner: uberswe
- Created: 2020-12-14T00:13:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-14T19:13:48.000Z (about 4 years ago)
- Last Synced: 2024-11-07T14:27:36.082Z (2 months ago)
- Language: Go
- Size: 1.61 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Performance of go plugins
I created this project to test the performance of go plugins.
To build the plugin run the following
```bash
go build -buildmode=plugin -o plugin.so plugin/main.go
```Currently, there does not seem to be much difference in performance.
| Benchmark | Operations | Operation Time |
| ---------------------------- |------------| ---------------|
| BenchmarkRandInt-12 | 87147016 | 13.5 ns/op |
| BenchmarkPluginRandInt-12 | 79713106 | 14.9 ns/op |
| BenchmarkRandString-12 | 132092 | 8427 ns/op |
| BenchmarkPluginRandString-12 | 129799 | 8296 ns/op |To run the benchmark on your own system run:
```bash
go test -bench=.
```If you would like to run the tests to ensure that the setup works as expected then run the following:
```bash
go test
```