Skip to content

Commit

Permalink
Remove support for google cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
acchou committed May 15, 2023
1 parent abf22c5 commit 3e5f0da
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 222 deletions.
32 changes: 14 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@

These examples demonstrate how to use [faast.js](https://github.com/faastjs/faast.js) in different ways.

| example | description | language |
| ------------------------------- | ----------------------------------------------------- | ---------- |
| [aws-command][] | run a command on AWS | TypeScript |
| [aws-cost-analyzer-js][] | cost analyzer example | JavaScript |
| [aws-cost-analyzer-ts][] | cost analyzer example | TypeScript |
| [aws-js][] | aws example showing common feaures | JavaScript |
| [aws-lodash-ts][] | example using lodash as a bundled dependency | TypeScript |
| [aws-puppeteer-ts][] | example using puppeteer as a native dependency | TypeScript |
| [aws-sharp-ts][] | example using sharp as a native dependency | TypeScript |
| [aws-ts][] | aws example showing common features | TypeScript |
| [babel][] | babel example | JavaScript |
| [cost-analyzer-comparison-ts][] | compare AWS Lambda and Google Cloud Functions pricing | TypeScript |
| [gcp-ts][] | google cloud example showing common features | TypeScript |
| [gcp-js][] | google cloud example showing common features | JavaScript |
| [hello-world-js][] | hello world | JavaScript |
| [hello-world-ts][] | hello world | TypeScript |
| example | description | language |
| ------------------------------- | ---------------------------------------------- | ---------- |
| [aws-command][] | run a command on AWS | TypeScript |
| [aws-cost-analyzer-js][] | cost analyzer example | JavaScript |
| [aws-cost-analyzer-ts][] | cost analyzer example | TypeScript |
| [aws-js][] | aws example showing common feaures | JavaScript |
| [aws-lodash-ts][] | example using lodash as a bundled dependency | TypeScript |
| [aws-puppeteer-ts][] | example using puppeteer as a native dependency | TypeScript |
| [aws-sharp-ts][] | example using sharp as a native dependency | TypeScript |
| [aws-ts][] | aws example showing common features | TypeScript |
| [babel][] | babel example | JavaScript |
| [cost-analyzer-comparison-ts][] | compare AWS Lambda pricing | TypeScript |
| [hello-world-js][] | hello world | JavaScript |
| [hello-world-ts][] | hello world | TypeScript |

[aws-command]: ./aws-command
[aws-cost-analyzer-js]: ./aws-cost-analyzer-js
Expand All @@ -29,8 +27,6 @@ These examples demonstrate how to use [faast.js](https://github.com/faastjs/faas
[aws-ts]: ./aws-ts
[babel]: ./babel
[cost-analyzer-comparison-ts]: ./cost-analyzer-comparison-ts
[gcp-ts]: ./gcp-ts
[gcp-js]: ./gcp-js
[hello-world-js]: ./hello-world-js
[hello-world-ts]: ./hello-world-ts

Expand Down
6 changes: 2 additions & 4 deletions cost-analyzer-comparison-ts/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# faast.js Cost Analyzer example comparing AWS Lambda and Google Cloud Functions costs
# faast.js Cost Analyzer example comparing AWS Lambda costs

The cost analyzer summarizes the cost of running a particular workload against multiple configurations. In this example, we generate 100,000 random numbers in each workload. For each memory size, the workload is executed 10 times. Then the workload is executed on both AWS Lambda and Google Cloud Functions, with memory sizes that include 128MB, 256MB, 512MB, 1024MB, 2048MB. In addition, AWS is tested with 1728MB. The results are printed in real time to the console and also output in CSV format to the file "cost.csv".
The cost analyzer summarizes the cost of running a particular workload against multiple configurations. In this example, we generate 100,000 random numbers in each workload. For each memory size, the workload is executed 10 times. Then the workload is executed on AWS Lambda with memory sizes that include 128MB, 256MB, 512MB, 1024MB, 2048MB. In addition, AWS is tested with 1728MB. The results are printed in real time to the console and also output in CSV format to the file "cost.csv".

## Prerequisites

- Node 8+.

- AWS account and IAM user. See faast.js documentation for account setup instructions.

- Google Cloud account. See faast.js documentation for account setup instructions.

## Installing dependencies

```shell
Expand Down
3 changes: 0 additions & 3 deletions cost-analyzer-comparison-ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ const configurations = [
...CostAnalyzer.awsConfigurations.filter(c =>
memorySizes.find(m => m === c.options.memorySize!)
)
// ...CostAnalyzer.googleConfigurations.filter(c =>
// memorySizes.find(m => m === c.options.memorySize!)
// )
];

async function compareCloudCosts() {
Expand Down
44 changes: 0 additions & 44 deletions gcp-js/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions gcp-js/functions.js

This file was deleted.

26 changes: 0 additions & 26 deletions gcp-js/index.js

This file was deleted.

11 changes: 0 additions & 11 deletions gcp-js/package.json

This file was deleted.

50 changes: 0 additions & 50 deletions gcp-ts/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions gcp-ts/functions.ts

This file was deleted.

26 changes: 0 additions & 26 deletions gcp-ts/index.ts

This file was deleted.

18 changes: 0 additions & 18 deletions gcp-ts/package.json

This file was deleted.

16 changes: 0 additions & 16 deletions gcp-ts/tsconfig.json

This file was deleted.

0 comments on commit 3e5f0da

Please sign in to comment.