Hacker News new | ask | show | jobs
by tuxone 4264 days ago
Really silly test

10$/mo droplet

  $ sysbench --test=cpu --cpu-max-prime=2000 run
  sysbench 0.4.12:  multi-threaded system evaluation benchmark

  Running the test with following options:
  Number of threads: 1

  Doing CPU performance benchmark

  Threads started!
  Done.

  Maximum prime number checked in CPU test: 2000


  Test execution summary:
      total time:                          1.5297s
      total number of events:              10000
      total time taken by event execution: 1.5219
      per-request statistics:
           min:                                  0.14ms
           avg:                                  0.15ms
           max:                                  4.68ms
           approx.  95 percentile:               0.16ms

  Threads fairness:
      events (avg/stddev):           10000.0000/0.00
      execution time (avg/stddev):   1.5219/0.00
C1

  $ sysbench --test=cpu --cpu-max-prime=2000 run
  sysbench 0.4.12:  multi-threaded system evaluation benchmark

  Running the test with following options:
  Number of threads: 1

  Doing CPU performance benchmark

  Threads started!
  Done.

  Maximum prime number checked in CPU test: 2000


  Test execution summary:
      total time:                          27.0053s
      total number of events:              10000
      total time taken by event execution: 26.9926
      per-request statistics:
           min:                                  2.69ms
           avg:                                  2.70ms
           max:                                  2.84ms
           approx.  95 percentile:               2.72ms

  Threads fairness:
      events (avg/stddev):           10000.0000/0.00
      execution time (avg/stddev):   26.9926/0.00
2 comments

For comparison, Cortex-A15-based (32-bit Tegra K1) Acer Chromebook 13:

    sysbench 0.4.12:  multi-threaded system evaluation benchmark
    
    Running the test with following options:
    Number of threads: 1
    
    Doing CPU performance benchmark
    
    Threads started!
    Done.
    
    Maximum prime number checked in CPU test: 2000
    
    
    Test execution summary:
        total time:                          8.8170s
        total number of events:              10000
        total time taken by event execution: 8.8083
        per-request statistics:
             min:                                  0.83ms
             avg:                                  0.88ms
             max:                                 21.43ms
             approx.  95 percentile:               0.95ms
    
    Threads fairness:
        events (avg/stddev):           10000.0000/0.00
        execution time (avg/stddev):   8.8083/0.00
Total time is 2.4926s with --num-threads=4.
Not that it'd cover for the difference but note that you're only using one of the 4 threads of the C1.

If I'm not mistaken you only have 1 CPU for a droplet at this price.

  ubuntu@c1-10-1-18-157:~$ sysbench --test=cpu --cpu-max-prime=2000 --num-threads=4 run                                                                           
  sysbench 0.4.12:  multi-threaded system evaluation benchmark                    
                                                                                
  Running the test with following options:                                        
  Number of threads: 4                                                            
                                                                                
  Doing CPU performance benchmark                                                 
                                                                                
  Threads started!                                                                
  Done.                                                                           
                                                                                
  Maximum prime number checked in CPU test: 2000                                  
                                                                                
                                                                                
  Test execution summary:                                                         
      total time:                          6.7674s                                
      total number of events:              10000                                  
      total time taken by event execution: 27.0485                                
      per-request statistics:                                                     
           min:                                  2.69ms                           
           avg:                                  2.70ms                           
           max:                                  7.00ms                           
           approx.  95 percentile:               2.70ms                           
                                                                                
  Threads fairness:                                                               
      events (avg/stddev):           2500.0000/17.36                              
      execution time (avg/stddev):   6.7621/0.00
The Arm cores are also dedicated while the one on digital ocean is shared.