Skip to content

Commit

Permalink
chore(bench): fix jscan name
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jan 11, 2022
1 parent 7b56daf commit d76a769
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const (
EasyJSON = "easyjson"
// FFJSON for pquerna/ffjson.
FFJSON = "ffjson"
// JSCan for romshark/jscan.
JSCan = "jscan"
// JScan for romshark/jscan.
JScan = "jscan"
// Baseline directly writes string to buffer, no encoding.
Baseline = "Baseline"
)
2 changes: 1 addition & 1 deletion _bench/hello_world_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func BenchmarkHelloWorld(b *testing.B) {
}
}
})
b.Run(JSCan, func(b *testing.B) {
b.Run(JScan, func(b *testing.B) {
setupHelloWorld(b)
for i := 0; i < b.N; i++ {
r := jscan.Scan(
Expand Down
2 changes: 1 addition & 1 deletion _bench/small_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func BenchmarkSmall(b *testing.B) {
}
}
})
b.Run(JSCan, func(b *testing.B) {
b.Run(JScan, func(b *testing.B) {
data := string(setupSmall(b))
for i := 0; i < b.N; i++ {
r := jscan.Scan(
Expand Down

0 comments on commit d76a769

Please sign in to comment.