Skip to content

Instantly share code, notes, and snippets.

@lppedd
Created June 2, 2025 14:47
Show Gist options
  • Save lppedd/57d99f5f73acd7f37b96c13f08251361 to your computer and use it in GitHub Desktop.
Save lppedd/57d99f5f73acd7f37b96c13f08251361 to your computer and use it in GitHub Desktop.
fromArray.size = 50
Benchmark (newSize) Mode Cnt Score Error Units
TypedArrayBenchmark.fillFrom 10 thrpt 4 19720.314 ± 1061.689 ops/ms
TypedArrayBenchmark.fillFrom 30 thrpt 4 13720.991 ± 469.513 ops/ms
TypedArrayBenchmark.fillFrom 45 thrpt 4 10231.173 ± 263.520 ops/ms
TypedArrayBenchmark.fillFrom 60 thrpt 4 9780.742 ± 154.579 ops/ms
TypedArrayBenchmark.fillFrom 80 thrpt 4 2063.709 ± 12.744 ops/ms
TypedArrayBenchmark.typedArraySet 10 thrpt 4 17124.189 ± 223.028 ops/ms // slice
TypedArrayBenchmark.typedArraySet 30 thrpt 4 16386.410 ± 1269.211 ops/ms // slice
TypedArrayBenchmark.typedArraySet 45 thrpt 4 14140.854 ± 718.146 ops/ms // slice
TypedArrayBenchmark.typedArraySet 60 thrpt 4 15005.864 ± 822.708 ops/ms // set
TypedArrayBenchmark.typedArraySet 80 thrpt 4 2139.295 ± 9.945 ops/ms // set
fromArray.size = 30
Benchmark (newSize) Mode Cnt Score Error Units
TypedArrayBenchmark.fillFrom 10 thrpt 4 19907.218 ± 705.697 ops/ms
TypedArrayBenchmark.fillFrom 20 thrpt 4 16622.665 ± 635.382 ops/ms
TypedArrayBenchmark.fillFrom 25 thrpt 4 15144.305 ± 464.457 ops/ms
TypedArrayBenchmark.fillFrom 40 thrpt 4 13151.283 ± 370.985 ops/ms
TypedArrayBenchmark.typedArraySet 10 thrpt 4 16161.872 ± 450.412 ops/ms // slice
TypedArrayBenchmark.typedArraySet 20 thrpt 4 17393.704 ± 545.010 ops/ms // slice
TypedArrayBenchmark.typedArraySet 25 thrpt 4 16044.888 ± 752.617 ops/ms // slice
TypedArrayBenchmark.typedArraySet 40 thrpt 4 18007.169 ± 259.251 ops/ms // set
fromArray.size = 25
js summary:
Benchmark (newSize) Mode Cnt Score Error Units
TypedArrayBenchmark.fillFrom 10 thrpt 4 19702.439 ± 616.018 ops/ms
TypedArrayBenchmark.fillFrom 20 thrpt 4 16022.840 ± 665.929 ops/ms
TypedArrayBenchmark.fillFrom 30 thrpt 4 14630.137 ± 227.306 ops/ms
TypedArrayBenchmark.fillFrom 40 thrpt 4 14709.397 ± 397.963 ops/ms
TypedArrayBenchmark.typedArraySet 10 thrpt 4 16283.677 ± 1255.420 ops/ms // slice
TypedArrayBenchmark.typedArraySet 20 thrpt 4 16777.626 ± 1166.021 ops/ms // slice
TypedArrayBenchmark.typedArraySet 30 thrpt 4 18554.930 ± 673.592 ops/ms // set
TypedArrayBenchmark.typedArraySet 40 thrpt 4 16799.962 ± 357.287 ops/ms // set
fromArray.size = 18
Benchmark (newSize) Mode Cnt Score Error Units
TypedArrayBenchmark.fillFrom 5 thrpt 4 21281.173 ± 2285.428 ops/ms
TypedArrayBenchmark.fillFrom 10 thrpt 4 19790.372 ± 630.748 ops/ms
TypedArrayBenchmark.fillFrom 15 thrpt 4 17023.874 ± 1102.025 ops/ms
TypedArrayBenchmark.fillFrom 20 thrpt 4 16941.074 ± 124.612 ops/ms
TypedArrayBenchmark.fillFrom 25 thrpt 4 16680.547 ± 793.904 ops/ms
TypedArrayBenchmark.typedArraySet 5 thrpt 4 16353.442 ± 1401.145 ops/ms // slice
TypedArrayBenchmark.typedArraySet 10 thrpt 4 16773.381 ± 1280.532 ops/ms // slice
TypedArrayBenchmark.typedArraySet 15 thrpt 4 16877.405 ± 483.891 ops/ms // slice
TypedArrayBenchmark.typedArraySet 20 thrpt 4 17638.819 ± 616.862 ops/ms // set
TypedArrayBenchmark.typedArraySet 25 thrpt 4 18861.485 ± 305.300 ops/ms // set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment