---
# System prepended metadata

title: CSIE 4004 HW1 report

---

# CSIE 4004 HW1 report

## Result Summary
(screenshots are  at the end of the report)
| VM Type  | apachebench (avg req per sec) | hackbench |
| --   | -- | -- |
| Host | `32314`  | `0.232` |
| Guest |   `680`  | `12.5` |
| Container |  `25115`   | `0.245`     |


## What might the reason that there's performance difference ?
To my mind, **system loading** is the main reason that makes the result difference , it might change anytime and hard to control since there are always many processes running behind the scene.

## Why virtual machine could provide better security than containers ?
I suppose that **system isolation**  is the main reason that VM better than container when it comes to security. In VM, there's full isolation between guest OS and host OS, so attacks on guest OS won't affect host system usually. On the other hand, container share the resources on host OS by docker daemon, it is possible that attack to VM may affect host OS.

## Hackbench

| VM Type | Screen Shot | 
| -------- | -------- | 
| Host     |  ![](https://i.imgur.com/rB9I5L0.png)| 
| Guest    |  ![](https://i.imgur.com/6gp49qj.png)  | 
| Container   |  ![](https://i.imgur.com/uyLwBwt.png)| 




## Apache bench

| VM Type | Screen Shot | 
| -------- | -------- | 
| Host    |   ![](https://i.imgur.com/aL4M5vd.png)
| 
| Guest    | ![](https://i.imgur.com/OMWqKks.png)| 
| Container   |     ![](https://i.imgur.com/qg5d9J3.png)| 
