Skip to content

Commit

Permalink
feat: Basic CPU benchmark using fbench
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik committed Jan 8, 2022
1 parent 4d4b853 commit f5885ee
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Cloud-Z gathers information and perform benchmarks on cloud instances in multipl
- [x] Cloud type, instance id, and type
- [x] CPU information including type, number of available cores, and cache sizes
- [x] RAM information
- [ ] Benchmark CPU
- [x] Benchmark CPU
- [ ] Optionally contribute data to central DB
- [ ] Storage devices information
- [ ] Benchmark storage
- [ ] Network devices information
Expand Down Expand Up @@ -33,7 +34,7 @@ Cloud-Z gathers information and perform benchmarks on cloud instances in multipl
Cloud-Z is provided as a single binary that can be downloaded from the [releases page](https://github.com/CloudSnorkel/cloud-z/releases).

```
$ ./cloud-z
$ sudo ./cloud-z
+---------------+-----------------------+
| Cloud | AWS |
| AMI | ami-0712c70d31ba14f8a |
Expand Down Expand Up @@ -74,4 +75,8 @@ $ ./cloud-z
| Stick #1: total width | 64-bit |
| Stick #1: speed | 0 MHz |
+-----------------------+----------+
+--------+--------------------------------+
| fbench | 1.6572109 seconds (lower is |
| | better) |
+--------+--------------------------------+
```
10 changes: 10 additions & 0 deletions benchmarks/all.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package benchmarks

import "fmt"

func AllBenchmarks() [][]string {
return [][]string{
// TODO single and multi thread
{"fbench", fmt.Sprintf("%v seconds (lower is better)", fbench())},
}
}
Loading

0 comments on commit f5885ee

Please sign in to comment.