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
master: | |
[1] ┌─────────┬──────┬──────┬────────┬────────┬──────────┬──────────┬───────────┐ | |
[1] │ Stat │ 2.5% │ 50% │ 97.5% │ 99% │ Avg │ Stdev │ Max │ | |
[1] ├─────────┼──────┼──────┼────────┼────────┼──────────┼──────────┼───────────┤ | |
[1] │ Latency │ 0 ms │ 0 ms │ 131 ms │ 156 ms │ 12.63 ms │ 46.27 ms │ 917.62 ms │ | |
[1] └─────────┴──────┴──────┴────────┴────────┴──────────┴──────────┴───────────┘ | |
[1] ┌───────────┬────────┬────────┬─────────┬────────┬─────────┬─────────┬────────┐ | |
[1] │ Stat │ 1% │ 2.5% │ 50% │ 97.5% │ Avg │ Stdev │ Min │ | |
[1] ├───────────┼────────┼────────┼─────────┼────────┼─────────┼─────────┼────────┤ | |
[1] │ Req/Sec │ 1800 │ 1800 │ 8991 │ 9751 │ 7515.6 │ 2950.12 │ 1800 │ |
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
>$ npm run bench | |
> [email protected] bench /Users/shwei/Work/workspace/fastify | |
> branchcmp -r 2 -g -s "npm run benchmark" | |
Current Branch is pass-ip-to-request-constructor 88f4c8a | |
? What's your branches to compare? master, pass-ip-to-request-constructor | |
? Please enter the command you want to execute in all branches! npm run benchmark | |
Checking out "master" | |
Execute "npm run benchmark" |
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
'use strict'; | |
const functions = require('firebase-functions'); | |
const fastify = require('./fastify'); | |
exports.greetFromFastify = functions.https.onRequest(fastify); |
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
#!/bin/bash | |
# Copyright 2017 Théo Chamley | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or |