-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(benchmark): enhance the codes for measuring performance between…
… each version [ci skip]
- Loading branch information
1 parent
868609a
commit 4b05c43
Showing
4 changed files
with
46 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SAMPLES = { | ||
ascii: [ | ||
%w[al al], %w[martha marhta], %w[jones johnson], %w[abcvwxyz cabvwxyz], | ||
%w[dwayne duane], %w[dixon dicksonx], %w[fvie ten] | ||
].freeze, | ||
utf8: [ | ||
%w[馬英九 馬英丸], %w[蔡英文 蔡中文], %w[簡煒航 簡偉航], %w[焦玟綾 焦紋綾], | ||
%w[眼球中央電視台 眼球中英電視台], %w[床前明月光 床前日月光], | ||
%w[海水退了就知道誰沒穿褲子 海水退了就知道誰沒穿襪子], | ||
%w[阿里山的姑娘美如水 阿里山的姑娘沒乳水] | ||
].freeze | ||
}.freeze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
echo version,label,utime,stime,cutime,cstime,real | ||
gem search -ear jaro_winkler \ | ||
| grep -o '\((.*)\)$' \ | ||
| tr -d '() ' \ | ||
| tr ',' "\n" \ | ||
| grep -o '\d\.\d\.\d' \ | ||
| sort \ | ||
| xargs -I{} ruby "`dirname $0`"/../benchmark/measure.rb '{}' |