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
| Calculating ------------------------------------- | |
| Ruby #to_s 314 i/100ms | |
| TTY #to_s 18 i/100ms | |
| TTY ASCII #to_s 10 i/100ms | |
| TTY Unicode #to_s 10 i/100ms | |
| TTY Color #to_s 6 i/100ms | |
| ------------------------------------------------- | |
| Ruby #to_s 3184.8 (±2.6%) i/s - 16014 in 5.031549s | |
| TTY #to_s 180.9 (±0.6%) i/s - 918 in 5.074281s | |
| TTY ASCII #to_s 103.3 (±1.9%) i/s - 520 in 5.039067s |
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
| This will declare some 'foo' function in the global namespace, whatever it happens to be | |
| root = exports ? this | |
| root.foo = -> 'Hello World' | |
| Example of creating namespaced variables | |
| class Storage | |
| constructor: (root) -> | |
| if typeof(exports) !== 'undefined' | |
| Storage = exports |