Package Exports
- fast-printf
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fast-printf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fast-printf
Fast and spec-compliant printf
implementation for Node.js and browser.
Usage
import {
printf,
} from 'fast-printf';
console.log(printf('foo %s', 'bar'));
Benchmark
implementation | without_placeholders | with_string_placeholder | with_many_string_placeholders |
---|---|---|---|
sprintf |
31,772,029 | 4,154,748 | 637,229 |
printf |
651,970 | 373,615 | 160,795 |
fast-printf |
78,068,540 | 11,820,632 | 2,552,386 |
Results show operations per second (greater is better).
To run the benchmark yourself please see ./benchmark
.