I read the article about  [V8's snapshot](https://v8.dev/blog/custom-startup-snapshots). AFAIK the snapshot in v8 means initialized context with prepared heap snapshot which was created at the very beginning, that will speed up the bootstrap process.

And in Jerry's doc and test file(test-snapshot.c), what I got is the snapshot is more like a "faster code" which is actually bytecode.(question1: Am I right about the understanding of the snapshot?)

So I write a simple Fibonacci test to check it out:
Here is js: 
```js
function fibonacci(num) {
    if (num <= 1) return 1;
  
    return fibonacci(num - 1) + fibonacci(num - 2);
}

print(fibonacci(40))
```

And then I generate the snapshot with the cmd tool: `/jerryscript/build/bin/jerry-snapshot' generate '/Users/lihaochen/Desktop/Project/os/js-engine-all/test.js' -o js1.snapshot`.

And the next step I try to compare the execution time between with snapshot and without snapshot. 
Here is the result:
![image](https://user-images.githubusercontent.com/14314849/108703875-2f7fd780-7546-11eb-8d56-aea63c98a44d.png)
Finally, the execution time is almost the same...(question2: where am I wrong?)

I have already added  `JERRY_SNAPSHOT_EXEC` and `JERRY_SNAPSHOT_SAVE` config
I appreciate your answer...
Questions: How does snapshot speed up the process?
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Questions: How does snapshot speed up the process?
Issue date:

--- start body ---
I read the article about  [V8's snapshot](https://v8.dev/blog/custom-startup-snapshots). AFAIK the snapshot in v8 means initialized context with prepared heap snapshot which was created at the very beginning, that will speed up the bootstrap process.

And in Jerry's doc and test file(test-snapshot.c), what I got is the snapshot is more like a "faster code" which is actually bytecode.(question1: Am I right about the understanding of the snapshot?)

So I write a simple Fibonacci test to check it out:
Here is js: 
```js
function fibonacci(num) {
    if (num <= 1) return 1;
  
    return fibonacci(num - 1) + fibonacci(num - 2);
}

print(fibonacci(40))
```

And then I generate the snapshot with the cmd tool: `/jerryscript/build/bin/jerry-snapshot' generate '/Users/lihaochen/Desktop/Project/os/js-engine-all/test.js' -o js1.snapshot`.

And the next step I try to compare the execution time between with snapshot and without snapshot. 
Here is the result:
![image](https://user-images.githubusercontent.com/14314849/108703875-2f7fd780-7546-11eb-8d56-aea63c98a44d.png)
Finally, the execution time is almost the same...(question2: where am I wrong?)

I have already added  `JERRY_SNAPSHOT_EXEC` and `JERRY_SNAPSHOT_SAVE` config
I appreciate your answer...
--- end body ---

None