Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 23, 2024
1 parent a87ccbf commit d535680
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/cmd/benchmark/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ const chinese_lorem_ipsum = `
const misc_unicode = `
‘’“”‹›«»‚„ 😀😛😇😈😉😍😎😮👍👎 —–§¶†‡©®™ →⇒•·°±−×÷¼½½¾
…µ¢£€¿¡¨´¸ˆ˜ ÀÁÂÃÄÅÆÇÈÉÊË ÌÍÎÏÐÑÒÓÔÕÖØ ŒŠÙÚÛÜÝŸÞßàá âãäåæçèéêëìí
îïðñòóôõöøœš ùúûüýÿþªºαΩ∞
îïðñòóôõöøœš ùúûüýÿþªºαΩ∞ ū̀n̂o᷵H̨a̠b̡͓̐c̡͓̐X̡͓̐
`
const combining_chars = "ū̀n̂o᷵H̨a\u0300b\u0321\u0310\u0353c\u0321\u0310\u0353"

var opts Options

Expand Down Expand Up @@ -142,7 +141,7 @@ func simple_ascii() (r result, err error) {

func unicode() (r result, err error) {
const desc = "Unicode chars"
data := strings.Repeat(chinese_lorem_ipsum+misc_unicode+combining_chars, 1024)
data := strings.Repeat(chinese_lorem_ipsum+misc_unicode, 1024)
duration, data_sz, reps, err := benchmark_data(desc, data, opts)
if err != nil {
return result{}, err
Expand Down

0 comments on commit d535680

Please sign in to comment.