-
The benchmarks used by Marko, with one benchmark containing only a single component with ~50 lines of code, and the other 3 components with one of them fully static markup, are typical micro-benchmarks created to the advantage of certain implementation details. They are too isolated and too trivial to justify across-the-board performance claims.
-
For client-side performance I recommend using the 3rd party js-framework-benchmark as a more neutral reference; the benchmark tests a much bigger workload and covering a much more comprehensive performance scenarios. According to the data from the latest round Vue actually outperforms Marko. That said, even this benchmark doesn't reflect real world performance where much more overhead comes from big component trees.
-
Vue has significantly improved SSR performance for
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <util/delay.h> | |
| void SevenSegment(unit8_t count) { | |
| switch (count) { | |
| case 0: PORT_7_SEGMENT=0b10001000; break; | |
| case 1: PORT_7_SEGMENT=0b10111110; break; | |
| case 2: PORT_7_SEGMENT=0b00011001; break; | |
| case 3: PORT_7_SEGMENT=0b00011100; break; | |
| case 4: PORT_7_SEGMENT=0b00101110; break; | |
| case 5: PORT_7_SEGMENT=0b01001100; break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import idMixin from '../../mixins/id' | |
| import formMixin from '../../mixins/form' | |
| import formSizeMixin from '../../mixins/form-size' | |
| import formStateMixin from '../../mixins/form-state' | |
| import { arrayIncludes } from '../../utils/array' | |
| // Import styles | |
| import './form-input.css' | |
| // Valid supported input types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying my Blockstack ID is secured with the address 1BCMkyjVYDgmUXFGBmFQm683LNiGqaD6jU https://explorer.blockstack.org/address/1BCMkyjVYDgmUXFGBmFQm683LNiGqaD6jU |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * getProp - Simple lodash.get implementation | |
| * @author @harish2704, @muffypl, @pi0 | |
| * @param {Object} object | |
| * @param {String|Array} path | |
| * @param {*} defaultVal | |
| */ | |
| function getProp (object, path, defaultVal) { | |
| const _path = Array.isArray(path) | |
| ? path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Editor | |
| "editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace", | |
| "diffEditor.renderSideBySide": true, | |
| "editor.find.autoFindInSelection": true, | |
| "editor.fontLigatures": true, | |
| "editor.formatOnSave": false, | |
| "editor.formatOnType": true, | |
| "editor.formatOnPaste": true, | |
| "editor.smoothScrolling": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x all.zip | |
| mkdir extracted && cd extracted | |
| x ../all/* | |
| for f in * ; do mv -v $f `echo $f | grep -oE "\d{6,}"` ; done | |
| rm -rf `find . | grep -iE "jquery|owl|bootstrap|node_modules|bower|vendor|slick"` | |
| moss -l javascript **/*.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -nv -t3 -c -nH -r -l0 -k -p -np -e robots=off --reject-regex "\/\?(.*)" [url] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry | |
| function get_locales() { | |
| let all = document.getElementsByTagName('pre')[0].innerText | |
| let regex = /Subtag: (.*)/ | |
| let match | |
| let matches = [] | |
| while(match = regex.exec(all)) { | |
| matches.push(match[1]) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules |