git.iko.soy
/
text
readme
files
commits
refs
on
master
help
sign in
Add a tiny encoding benchmark
7b070bd
Bryan O'Sullivan
16 years ago
tests/benchmarks/EncodeUtf8.hs
new file
+9
compare with master
unified
split
@@ -0,0 +1,9 @@
1
+
{-#
LANGUAGE
OverloadedStrings #-}
2
+
import
Data.Text
as
T
3
+
import
Data.ByteString
as
B
4
+
import
Data.Text.Encoding
as
T
5
+
6
+
main =
do
7
+
let
k =
50000000
8
+
t =
T
.replicate k
"a"
9
+
B
.putStr (
T
.encodeUtf8 t)
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list