Skip to content

Instantly share code, notes, and snippets.

@RReverser
Created December 29, 2022 20:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RReverser/2dc92bdd7c67ec734dc68b462f976182 to your computer and use it in GitHub Desktop.
Save RReverser/2dc92bdd7c67ec734dc68b462f976182 to your computer and use it in GitHub Desktop.
JS <-> Rust Wasm conversion benchmarks
=====
parse
=====
canada x serde_json x 14.41 ops/sec ±3.31% (40 runs sampled)
canada x serde_wasm_bindgen x 90.55 ops/sec ±0.53% (77 runs sampled)
canada x msgpack x 101 ops/sec ±1.90% (72 runs sampled)
citm_catalog x serde_json x 131 ops/sec ±0.64% (83 runs sampled)
citm_catalog x serde_wasm_bindgen x 192 ops/sec ±1.02% (85 runs sampled)
citm_catalog x msgpack x 161 ops/sec ±1.09% (82 runs sampled)
twitter x serde_json x 203 ops/sec ±0.89% (85 runs sampled)
twitter x serde_wasm_bindgen x 204 ops/sec ±1.19% (86 runs sampled)
twitter x msgpack x 172 ops/sec ±1.52% (79 runs sampled)
=========
serialize
=========
canada x serde_json x 46.04 ops/sec ±2.40% (59 runs sampled)
canada x serde_wasm_bindgen x 136 ops/sec ±3.63% (77 runs sampled)
canada x msgpack x 76.72 ops/sec ±2.64% (67 runs sampled)
citm_catalog x serde_json x 166 ops/sec ±1.03% (84 runs sampled)
citm_catalog x serde_wasm_bindgen x 319 ops/sec ±1.00% (89 runs sampled)
citm_catalog x msgpack x 335 ops/sec ±0.99% (89 runs sampled)
twitter x serde_json x 216 ops/sec ±1.09% (84 runs sampled)
twitter x serde_wasm_bindgen x 268 ops/sec ±0.53% (88 runs sampled)
twitter x msgpack x 416 ops/sec ±0.96% (91 runs sampled)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment