Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fx_s1516
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
battle_C_3
fx_s1516
Commits
090c6001
Commit
090c6001
authored
4 years ago
by
joon2974
Browse files
Options
Downloads
Patches
Plain Diff
modify README
parent
d12fa629
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+4
-2
4 additions, 2 deletions
README.md
with
4 additions
and
2 deletions
README.md
+
4
−
2
View file @
090c6001
...
...
@@ -263,11 +263,13 @@ fx_s1516_longlong_div2: 142857
## Functions Speed Comparison
각 함수의 속도를 검증하기 위해
```gcc -pg```
을 사용해 컴파일하여 실행 파일을 만들고 실행한 뒤
```gprof```
명령어를 통해 함수의 속도를 확인해 보았다. 테스트는 Raspberry Pi 32 bit 환경에서 진행하였다.
### 1. Multiplication

-
time이 작을수록 빠른 함수이므로 mul2 > mul1 > mul3 > mul0 > mul4 순서로 속도가 빠른 것을 알 수 있다.
-
time이 작을수록 빠른 함수이므로 mul2 > mul1 > mul3 > mul0 >
double mul >
mul4 순서로 속도가 빠른 것을 알 수 있다.
-
shift 연산 3번, 곱셈 연산 1번을 실행하는 mul4가 가장 느렸고, fixed64로 캐스팅하는 작업이 있는 mul0도 비교적 느린 것을 확인할 수 있었다.
-
나머지 mul2, mul1, mul3 세 연산은 속도가 같거나 거의 차이가 없는 것을 확인할 수 있다.
-
위 결과로 미루어 보아 캐스팅, shift 연산의 횟수 등이 실행 속도에 영향을 주는 것으로 예상해볼 수 있다.
...
...
@@ -276,7 +278,7 @@ fx_s1516_longlong_div2: 142857

-
div 연산은 div2 > div1 > div0 순서로 속도가 빠른 것을 확인할 수 있다.
-
div 연산은 div2 > div1 > div0
> double div
순서로 속도가 빠른 것을 확인할 수 있다.
-
mul에서 확인한 것과 같이 캐스팅 연산이 있는 div0이 상대적으로 느렸으며 shift 횟수가 1회 더 많은 div1이 div2보다 느린 것을 확인할 수 있다.
-
div의 결과로도 캐스팅, shift 연산의 횟수가 실행 속도에 영향을 주는 것으로 예상이 가능하다.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment