Skip to content

Commit

Permalink
Add benchmark
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Feb 11, 2025
1 parent 22dbeb7 commit 928e070
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
45 changes: 45 additions & 0 deletions benchmark-sets/go-small/atomic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"functions":
- "name": "run"
"params":
- "name": "args"
"type": "[]string"
"return_type": "error"
"signature": "run([]string) error"
- "name": "BenchmarkStress"
"params":
- "name": "b"
"type": "B"
- "name": "b"
"type": "B"
- "name": "b"
"type": "B"
- "name": "b"
"type": "B"
- "name": "pb"
"type": "PB"
"return_type": "void"
"signature": "BenchmarkStress(*testing.B,*testing.B,*testing.B,*testing.B,*testing.PB)"
- "name": "*stringList.Set"
"params":
- "name": "s"
"type": "string"
"return_type": "error"
"signature": "(*stringList) *stringList.Set(string) error"
- "name": "*Bool.Toggle"
"params":
- "name": "old"
"type": "bool"
"return_type": "(old bool)"
"signature": "(*Bool) *Bool.Toggle(bool) (old bool)"
- "name": "*String.CompareAndSwap"
"params":
- "name": "swapped"
"type": "bool"
- "name": "old"
"type": "string"
"return_type": "(swapped bool)"
"signature": "(*String) *String.CompareAndSwap(bool,string) (swapped bool)"
"language": "go"
"project": "atomic"
"target_name": "fuzz_test"
"target_path": "/src/atomic/fuzz_test.go"
49 changes: 49 additions & 0 deletions benchmark-sets/go-small/clock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
"functions":
- "name": "*clock.WithDeadline"
"params":
- "name": "parent"
"type": "Context"
- "name": "d"
"type": "Time"
- "name": "context.Context"
"type": "Context"
- "name": "context.CancelFunc"
"type": "CancelFunc"
"return_type": "(context.Context, context.CancelFunc)"
"signature": "(*clock) *clock.WithDeadline(context.Context,time.Time,context.Context,context.CancelFunc) (context.Context, context.CancelFunc)"
- "name": "*clock.WithTimeout"
"params":
- "name": "context.Context"
"type": "Context"
- "name": "context.CancelFunc"
"type": "CancelFunc"
- "name": "parent"
"type": "Context"
- "name": "t"
"type": "Duration"
"return_type": "(context.Context, context.CancelFunc)"
"signature": "(*clock) *clock.WithTimeout(context.Context,context.CancelFunc,context.Context,time.Duration) (context.Context, context.CancelFunc)"
- "name": "warnf"
"params":
- "name": "msg"
"type": "string"
- "name": "v"
"type": "interface{}"
"return_type": "void"
"signature": "warnf(string,interface{})"
- "name": "*clock.Until"
"params":
- "name": "t"
"type": "Time"
"return_type": "time.Duration"
"signature": "(*clock) *clock.Until(time.Time) time.Duration"
- "name": "*clock.Since"
"params":
- "name": "t"
"type": "Time"
"return_type": "time.Duration"
"signature": "(*clock) *clock.Since(time.Time) time.Duration"
"language": "go"
"project": "clock"
"target_name": "fuzz_test"
"target_path": "/src/clock/fuzz_test.go"

0 comments on commit 928e070

Please sign in to comment.