https://date-fns.org/
https://momentjs.com/
- ES6 Strings (and Unicode, ♥) in Depth
- JavaScript has a Unicode problem
The string iteratoriterates over code points not prapheme clusters
- jsPerf — JavaScript performance playground
- benchmark.js - A benchmarking library that supports high-resolution timers & returns statistically significant results.
var Benchmark = require('benchmark');
var suite = new Benchmark.Suite;
// add tests
suite.add('RegExp#test', function() {
...
})
.add('String#indexOf', function() {
...
})
// add listeners
.on('cycle', function(event) {
console.log(String(event.target));
})
.on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').map('name'));
})
// run async
.run({ 'async': true });
- Vyacheslav Egorov's presentation on performance and benchmarking ("microbenchmarks" (small tests that target a specific feature or operation, rather than more complex tests based on real-world code patterns) can be useful but are prone to inaccuracy due to how modern JavaScript runtimes operate.