Advertisement
teknoraver

i386 vs amd64 (32 bit vs 64 bit)

Jul 20th, 2015
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. matteo@matteo-notebook:~/src/benchs$ make CFLAGS='-O3 -m32'
  2. cc -O3 -m32 -DUNIX flops.c -o flops -Wall
  3. cc -O3 -m32 -c dry.c -o dry1.o -Wall
  4. cc -O3 -m32 -DPASS2 dry.c dry1.o -o dry -Wall
  5. matteo@matteo-notebook:~/src/benchs$ ./flops
  6.  
  7. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  8.  
  9. Module Error RunTime MFLOPS
  10. (usec)
  11. 1 2.8434e-13 0.0109 1279.4281
  12. 2 1.4704e-15 0.0086 810.0493
  13. 3 -3.8213e-15 0.0072 2360.3415
  14. 4 6.1151e-14 0.0078 1921.7940
  15. 5 -4.4419e-14 0.0128 2260.3219
  16. 6 7.7002e-15 0.0123 2355.5949
  17. 7 -6.4690e-13 0.0329 364.3069
  18. 8 2.2789e-14 0.0133 2259.5619
  19.  
  20. Iterations = 512000000
  21. NullTime (usec) = 0.0000
  22. MFLOPS(1) = 1031.5497
  23. MFLOPS(2) = 831.2910
  24. MFLOPS(3) = 1500.4019
  25. MFLOPS(4) = 2241.6233
  26.  
  27. matteo@matteo-notebook:~/src/benchs$ ./dry 2>/dev/null
  28.  
  29. Dhrystone Benchmark, Version C, Version 2.2
  30. Program compiled without 'register' attribute
  31. Using times(), HZ=100
  32.  
  33. Trying 50000 runs through Dhrystone:
  34. Measured time too small to obtain meaningful results
  35.  
  36. Trying 500000 runs through Dhrystone:
  37. Measured time too small to obtain meaningful results
  38.  
  39. Trying 5000000 runs through Dhrystone:
  40. Measured time too small to obtain meaningful results
  41.  
  42. Trying 50000000 runs through Dhrystone:
  43. Microseconds for one run through Dhrystone: 0.1
  44. Dhrystones per Second: 16025641
  45.  
  46. matteo@matteo-notebook:~/src/benchs$ make clean
  47. rm -f flops dry *.o
  48. matteo@matteo-notebook:~/src/benchs$ make CFLAGS='-O3'
  49. cc -O3 -DUNIX flops.c -o flops -Wall
  50. cc -O3 -c dry.c -o dry1.o -Wall
  51. cc -O3 -DPASS2 dry.c dry1.o -o dry -Wall
  52. matteo@matteo-notebook:~/src/benchs$ ./flops
  53.  
  54. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  55.  
  56. Module Error RunTime MFLOPS
  57. (usec)
  58. 1 4.0146e-13 0.0100 1397.5308
  59. 2 -1.4166e-13 0.0082 850.2625
  60. 3 4.7184e-14 0.0065 2618.2720
  61. 4 -1.2557e-13 0.0059 2524.3387
  62. 5 -1.3800e-13 0.0124 2338.2305
  63. 6 3.2380e-13 0.0118 2466.4038
  64. 7 -8.4583e-11 0.0301 398.2497
  65. 8 3.4867e-13 0.0125 2394.2788
  66.  
  67. Iterations = 512000000
  68. NullTime (usec) = 0.0000
  69. MFLOPS(1) = 1091.1397
  70. MFLOPS(2) = 909.4140
  71. MFLOPS(3) = 1635.3977
  72. MFLOPS(4) = 2478.0204
  73.  
  74. matteo@matteo-notebook:~/src/benchs$ ./dry 2>/dev/null
  75.  
  76. Dhrystone Benchmark, Version C, Version 2.2
  77. Program compiled without 'register' attribute
  78. Using times(), HZ=100
  79.  
  80. Trying 50000 runs through Dhrystone:
  81. Measured time too small to obtain meaningful results
  82.  
  83. Trying 500000 runs through Dhrystone:
  84. Measured time too small to obtain meaningful results
  85.  
  86. Trying 5000000 runs through Dhrystone:
  87. Measured time too small to obtain meaningful results
  88.  
  89. Trying 50000000 runs through Dhrystone:
  90. Microseconds for one run through Dhrystone: 0.0
  91. Dhrystones per Second: 21097046
  92.  
  93. matteo@matteo-notebook:~/src/xz-5.2.1$ time sudo schedtool -F -p 99 -n -19 -e ./xz32 -v -9fk linux-4.1.2.tar
  94. linux-4.1.2.tar (1/1)
  95. 100 % 78,9 MiB / 568,3 MiB = 0,139 1,2 MiB/s 7:52
  96.  
  97. real 7m52.261s
  98. user 7m51.049s
  99. sys 0m0.678s
  100. matteo@matteo-notebook:~/src/xz-5.2.1$ time sudo schedtool -F -p 99 -n -19 -e ./xz64 -v -9fk linux-4.1.2.tar
  101. linux-4.1.2.tar (1/1)
  102. 100 % 78,9 MiB / 568,3 MiB = 0,139 1,3 MiB/s 7:02
  103.  
  104. real 7m2.905s
  105. user 7m1.774s
  106. sys 0m0.653s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement