Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
wasm-watermarker
Commits
44ee7bfc
Verified
Commit
44ee7bfc
authored
Jan 24, 2021
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bench-speed4.zsh to use urandom instead of /dev/random
parent
47e1218f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bench-speed4.zsh
scripts/bench-speed4.zsh
+5
-5
No files found.
scripts/bench-speed4.zsh
View file @
44ee7bfc
...
...
@@ -10,22 +10,22 @@ method4() {
local
out
=
"./out/size-bench/dyn/
$proj
/
$size_bits
/
$(
basename
"
$wasm
"
)
"
mkdir
-p
"
$(
dirname
"
$out
"
)
"
local
watermark
=
"
$(
head
-c
"
$size
"
/dev/random |
base64
|
head
-c
"
$size
"
)
"
local
watermark
=
"
$(
head
-c
"
$size
"
/dev/
u
random |
base64
|
head
-c
"
$size
"
)
"
# warm up
echo
-n
"
$proj
\t
$size_bits
\t
"
kyuk
-w
"
$watermark
"
-o
"
$out
"
"
$wasm
"
kyuk
-w
"
$watermark
"
-o
"
$out
"
"
$wasm
"
kyuk
-w
"
$watermark
"
-o
"
$out
"
"
$wasm
"
local times
=
100
local
start
=
"
$EPOCHREALTIME
"
for
i
in
{
1..
$times
}
;
do
for
i
in
{
1..
100
}
;
do
kyuk
-w
"
$watermark
"
-o
"
$out
"
"
$wasm
"
done
local
end
=
"
$EPOCHREALTIME
"
local
duration_ms
=
"
$((
(
$end
-
$start
)
*
1000
/
$times
))
"
local
duration_ms
=
"
$((
(
$end
-
$start
)
*
1000
/
100
))
"
echo
"
$
proj
\t
$size_bits
\t
$
duration_ms
"
echo
"
$duration_ms
"
}
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
10
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment