Sunday 27 November 2011

Quik test

Quik test

Hey people,

I'm doing my own OS, and I'm trying to figure out what the quickest memcpy is.

I've written a small test project you can run to help me finding out.

The instructions are quite simple.

1) get the test from here: https://github.com/bemk/memcpytest
2) run make and post a reply with the exact output
3) (if you are running 64-bits), run make CFLAGS=-m32 and post a reply with the exact output.

The output you should see is like the bit below. It's basically the time it takes to run the newly compiled binary, which itself is a test for one of the memcpy functions.

No. 5 is from the native library. Don't be surprised if that's the fastest one.
Code:


time -p ./1
real 0.24
user 0.24
sys 0.00
time -p ./2
real 0.96
user 0.95
sys 0.00
time -p ./3
real 0.21
user 0.20
sys 0.00
time -p ./4
real 0.13
user 0.12
sys 0.00
time -p ./5
real 0.05
user 0.04
sys 0.00

No comments:

Post a Comment