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
5f150247
Verified
Commit
5f150247
authored
Jan 24, 2021
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add binary size benchmark script for method-4
parent
cdf663bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
bench-size4.zsh
scripts/bench-size4.zsh
+45
-0
No files found.
scripts/bench-size4.zsh
0 → 100755
View file @
5f150247
#!/usr/bin/env zsh
method4
()
{
local
proj
=
"
$1
"
local
wasm
=
"
$2
"
local
size_bits
=
"
$3
"
local
size
=
"
$((
$size_bits
/
8
))
"
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
"
)
"
kyuk
-w
"
$watermark
"
-o
"
$out
"
"
$wasm
"
}
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
10
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
20
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
50
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
100
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
200
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
500
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
1000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
2000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
5000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
10000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
20000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
50000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
100000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
200000
method4
"jq-web"
"./node_modules/jq-web/jq.wasm.wasm"
500000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
10
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
20
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
50
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
100
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
200
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
500
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
1000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
2000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
5000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
10000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
20000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
50000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
100000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
200000
method4
"vim-wasm"
"./node_modules/vim-wasm/vim.wasm"
500000
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