Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yrs WebAssembly benchmarks #44

Merged
merged 5 commits into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
draft of y-wasm benchmarks
  • Loading branch information
Horusiath committed Nov 10, 2021
commit 32175aee170d8ab6890cfda8efacef1dfb119a7c
388 changes: 388 additions & 0 deletions benchmarks-wasm/benchmarks/results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,388 @@
{
"6000": {
"Version": {
"yjs": "13.5.12"
},
"Bundle size": {
"yjs": "53 bytes"
},
"Bundle size (gzipped)": {
"yjs": "83 bytes"
},
"[B1.1] Append N characters (time)": {
"yjs": "243 ms"
},
"[B1.1] Append N characters (avgUpdateSize)": {
"yjs": "27 bytes"
},
"[B1.1] Append N characters (encodeTime)": {
"yjs": "1 ms"
},
"[B1.1] Append N characters (docSize)": {
"yjs": "6031 bytes"
},
"[B1.1] Append N characters (memUsed)": {
"yjs": "0 B"
},
"[B1.1] Append N characters (parseTime)": {
"yjs": "2 ms"
},
"[B1.2] Insert string of length N (time)": {
"yjs": "1 ms"
},
"[B1.2] Insert string of length N (avgUpdateSize)": {
"yjs": "6031 bytes"
},
"[B1.2] Insert string of length N (encodeTime)": {
"yjs": "0 ms"
},
"[B1.2] Insert string of length N (docSize)": {
"yjs": "6031 bytes"
},
"[B1.2] Insert string of length N (memUsed)": {
"yjs": "0 B"
},
"[B1.2] Insert string of length N (parseTime)": {
"yjs": "1 ms"
},
"[B1.3] Prepend N characters (time)": {
"yjs": "184 ms"
},
"[B1.3] Prepend N characters (avgUpdateSize)": {
"yjs": "27 bytes"
},
"[B1.3] Prepend N characters (encodeTime)": {
"yjs": "4 ms"
},
"[B1.3] Prepend N characters (docSize)": {
"yjs": "6041 bytes"
},
"[B1.3] Prepend N characters (memUsed)": {
"yjs": "898.8 kB"
},
"[B1.3] Prepend N characters (parseTime)": {
"yjs": "14 ms"
},
"[B1.4] Insert N characters at random positions (time)": {
"yjs": "159 ms"
},
"[B1.4] Insert N characters at random positions (avgUpdateSize)": {
"yjs": "29 bytes"
},
"[B1.4] Insert N characters at random positions (encodeTime)": {
"yjs": "5 ms"
},
"[B1.4] Insert N characters at random positions (docSize)": {
"yjs": "29554 bytes"
},
"[B1.4] Insert N characters at random positions (memUsed)": {
"yjs": "648.7 kB"
},
"[B1.4] Insert N characters at random positions (parseTime)": {
"yjs": "4 ms"
},
"[B1.5] Insert N words at random positions (time)": {
"yjs": "157 ms"
},
"[B1.5] Insert N words at random positions (avgUpdateSize)": {
"yjs": "36 bytes"
},
"[B1.5] Insert N words at random positions (encodeTime)": {
"yjs": "3 ms"
},
"[B1.5] Insert N words at random positions (docSize)": {
"yjs": "87924 bytes"
},
"[B1.5] Insert N words at random positions (memUsed)": {
"yjs": "1.9 MB"
},
"[B1.5] Insert N words at random positions (parseTime)": {
"yjs": "9 ms"
},
"[B1.6] Insert string, then delete it (time)": {
"yjs": "1 ms"
},
"[B1.6] Insert string, then delete it (avgUpdateSize)": {
"yjs": "6051 bytes"
},
"[B1.6] Insert string, then delete it (encodeTime)": {
"yjs": "0 ms"
},
"[B1.6] Insert string, then delete it (docSize)": {
"yjs": "36 bytes"
},
"[B1.6] Insert string, then delete it (memUsed)": {
"yjs": "0 B"
},
"[B1.6] Insert string, then delete it (parseTime)": {
"yjs": "1 ms"
},
"[B1.7] Insert/Delete strings at random positions (time)": {
"yjs": "268 ms"
},
"[B1.7] Insert/Delete strings at random positions (avgUpdateSize)": {
"yjs": "31 bytes"
},
"[B1.7] Insert/Delete strings at random positions (encodeTime)": {
"yjs": "10 ms"
},
"[B1.7] Insert/Delete strings at random positions (docSize)": {
"yjs": "28377 bytes"
},
"[B1.7] Insert/Delete strings at random positions (memUsed)": {
"yjs": "871.8 kB"
},
"[B1.7] Insert/Delete strings at random positions (parseTime)": {
"yjs": "19 ms"
},
"[B1.8] Append N numbers (time)": {
"yjs": "217 ms"
},
"[B1.8] Append N numbers (avgUpdateSize)": {
"yjs": "32 bytes"
},
"[B1.8] Append N numbers (encodeTime)": {
"yjs": "0 ms"
},
"[B1.8] Append N numbers (docSize)": {
"yjs": "35634 bytes"
},
"[B1.8] Append N numbers (memUsed)": {
"yjs": "0 B"
},
"[B1.8] Append N numbers (parseTime)": {
"yjs": "1 ms"
},
"[B1.9] Insert Array of N numbers (time)": {
"yjs": "2 ms"
},
"[B1.9] Insert Array of N numbers (avgUpdateSize)": {
"yjs": "35657 bytes"
},
"[B1.9] Insert Array of N numbers (encodeTime)": {
"yjs": "0 ms"
},
"[B1.9] Insert Array of N numbers (docSize)": {
"yjs": "35657 bytes"
},
"[B1.9] Insert Array of N numbers (memUsed)": {
"yjs": "50.7 kB"
},
"[B1.9] Insert Array of N numbers (parseTime)": {
"yjs": "1 ms"
},
"[B1.10] Prepend N numbers (time)": {
"yjs": "128 ms"
},
"[B1.10] Prepend N numbers (avgUpdateSize)": {
"yjs": "32 bytes"
},
"[B1.10] Prepend N numbers (encodeTime)": {
"yjs": "1 ms"
},
"[B1.10] Prepend N numbers (docSize)": {
"yjs": "35665 bytes"
},
"[B1.10] Prepend N numbers (memUsed)": {
"yjs": "1.7 MB"
},
"[B1.10] Prepend N numbers (parseTime)": {
"yjs": "3 ms"
},
"[B1.11] Insert N numbers at random positions (time)": {
"yjs": "137 ms"
},
"[B1.11] Insert N numbers at random positions (avgUpdateSize)": {
"yjs": "34 bytes"
},
"[B1.11] Insert N numbers at random positions (encodeTime)": {
"yjs": "2 ms"
},
"[B1.11] Insert N numbers at random positions (docSize)": {
"yjs": "59137 bytes"
},
"[B1.11] Insert N numbers at random positions (memUsed)": {
"yjs": "1.9 MB"
},
"[B1.11] Insert N numbers at random positions (parseTime)": {
"yjs": "5 ms"
},
"[B2.1] Concurrently insert string of length N at index 0 (time)": {
"yjs": "1 ms"
},
"[B2.1] Concurrently insert string of length N at index 0 (updateSize)": {
"yjs": "6094 bytes"
},
"[B2.1] Concurrently insert string of length N at index 0 (encodeTime)": {
"yjs": "0 ms"
},
"[B2.1] Concurrently insert string of length N at index 0 (docSize)": {
"yjs": "12149 bytes"
},
"[B2.1] Concurrently insert string of length N at index 0 (memUsed)": {
"yjs": "0 B"
},
"[B2.1] Concurrently insert string of length N at index 0 (parseTime)": {
"yjs": "1 ms"
},
"[B2.2] Concurrently insert N characters at random positions (time)": {
"yjs": "80 ms"
},
"[B2.2] Concurrently insert N characters at random positions (updateSize)": {
"yjs": "33190 bytes"
},
"[B2.2] Concurrently insert N characters at random positions (encodeTime)": {
"yjs": "2 ms"
},
"[B2.2] Concurrently insert N characters at random positions (docSize)": {
"yjs": "66351 bytes"
},
"[B2.2] Concurrently insert N characters at random positions (memUsed)": {
"yjs": "2.4 MB"
},
"[B2.2] Concurrently insert N characters at random positions (parseTime)": {
"yjs": "27 ms"
},
"[B2.3] Concurrently insert N words at random positions (time)": {
"yjs": "97 ms"
},
"[B2.3] Concurrently insert N words at random positions (updateSize)": {
"yjs": "88759 bytes"
},
"[B2.3] Concurrently insert N words at random positions (encodeTime)": {
"yjs": "8 ms"
},
"[B2.3] Concurrently insert N words at random positions (docSize)": {
"yjs": "177530 bytes"
},
"[B2.3] Concurrently insert N words at random positions (memUsed)": {
"yjs": "5.3 MB"
},
"[B2.3] Concurrently insert N words at random positions (parseTime)": {
"yjs": "27 ms"
},
"[B2.4] Concurrently insert & delete (time)": {
"yjs": "186 ms"
},
"[B2.4] Concurrently insert & delete (updateSize)": {
"yjs": "139355 bytes"
},
"[B2.4] Concurrently insert & delete (encodeTime)": {
"yjs": "12 ms"
},
"[B2.4] Concurrently insert & delete (docSize)": {
"yjs": "278719 bytes"
},
"[B2.4] Concurrently insert & delete (memUsed)": {
"yjs": "8.9 MB"
},
"[B2.4] Concurrently insert & delete (parseTime)": {
"yjs": "74 ms"
},
"[B3.1] 20√N clients concurrently set number in Map (time)": {
"yjs": "102 ms"
},
"[B3.1] 20√N clients concurrently set number in Map (updateSize)": {
"yjs": "49176 bytes"
},
"[B3.1] 20√N clients concurrently set number in Map (encodeTime)": {
"yjs": "3 ms"
},
"[B3.1] 20√N clients concurrently set number in Map (docSize)": {
"yjs": "32232 bytes"
},
"[B3.1] 20√N clients concurrently set number in Map (memUsed)": {
"yjs": "495.8 kB"
},
"[B3.1] 20√N clients concurrently set number in Map (parseTime)": {
"yjs": "21 ms"
},
"[B3.2] 20√N clients concurrently set Object in Map (time)": {
"yjs": "94 ms"
},
"[B3.2] 20√N clients concurrently set Object in Map (updateSize)": {
"yjs": "85081 bytes"
},
"[B3.2] 20√N clients concurrently set Object in Map (encodeTime)": {
"yjs": "3 ms"
},
"[B3.2] 20√N clients concurrently set Object in Map (docSize)": {
"yjs": "32238 bytes"
},
"[B3.2] 20√N clients concurrently set Object in Map (memUsed)": {
"yjs": "0 B"
},
"[B3.2] 20√N clients concurrently set Object in Map (parseTime)": {
"yjs": "17 ms"
},
"[B3.3] 20√N clients concurrently set String in Map (time)": {
"yjs": "206 ms"
},
"[B3.3] 20√N clients concurrently set String in Map (updateSize)": {
"yjs": "7826229 bytes"
},
"[B3.3] 20√N clients concurrently set String in Map (encodeTime)": {
"yjs": "2 ms"
},
"[B3.3] 20√N clients concurrently set String in Map (docSize)": {
"yjs": "36821 bytes"
},
"[B3.3] 20√N clients concurrently set String in Map (memUsed)": {
"yjs": "279.9 kB"
},
"[B3.3] 20√N clients concurrently set String in Map (parseTime)": {
"yjs": "16 ms"
},
"[B3.4] 20√N clients concurrently insert text in Array (time)": {
"yjs": "80 ms"
},
"[B3.4] 20√N clients concurrently insert text in Array (updateSize)": {
"yjs": "52746 bytes"
},
"[B3.4] 20√N clients concurrently insert text in Array (encodeTime)": {
"yjs": "2 ms"
},
"[B3.4] 20√N clients concurrently insert text in Array (docSize)": {
"yjs": "26591 bytes"
},
"[B3.4] 20√N clients concurrently insert text in Array (memUsed)": {
"yjs": "623.4 kB"
},
"[B3.4] 20√N clients concurrently insert text in Array (parseTime)": {
"yjs": "3 ms"
},
"[B4] Apply real-world editing dataset (time)": {
"yjs": "1595 ms"
},
"[B4] Apply real-world editing dataset (avgUpdateSize)": {
"yjs": "29 bytes"
},
"[B4] Apply real-world editing dataset (encodeTime)": {
"yjs": "28 ms"
},
"[B4] Apply real-world editing dataset (docSize)": {
"yjs": "159929 bytes"
},
"[B4] Apply real-world editing dataset (memUsed)": {
"yjs": "4.4 MB"
},
"[B4] Apply real-world editing dataset (parseTime)": {
"yjs": "81 ms"
},
"[B4x100] Apply real-world editing dataset 100 times (time)": {
"yjs": "175898 ms"
},
"[B4x100] Apply real-world editing dataset 100 times (encodeTime)": {
"yjs": "1373 ms"
},
"[B4x100] Apply real-world editing dataset 100 times (docSize)": {
"yjs": "15989245 bytes"
},
"[B4x100] Apply real-world editing dataset 100 times (parseTime)": {
"yjs": "2911 ms"
},
"[B4x100] Apply real-world editing dataset 100 times (memUsed)": {
"yjs": "655.2 MB"
}
}
}
9 changes: 9 additions & 0 deletions benchmarks-wasm/benchmarks/ywasm/benchmark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Testing Yjs</title>
</head>
<body>
<script type="module" src="./dist/benchmark-browser.js"></script>
</body>
</html>
Loading