400Ping commented on PR #877:
URL: https://github.com/apache/mahout/pull/877#issuecomment-3773241275
Before:
```
======================================================================
NUMPY I/O + ENCODING BENCHMARK
======================================================================
Qubits: 10
Sample size: 1024 elements
Number of samples: 10000
Total data: 78.12 MB
Frameworks: mahout, pennylane
Generating test data...
Saving to /tmp/tmp0rf7j7p6.npy...
File size: 78.13 MB
[Mahout + NumPy] Loading and encoding...
Total Time (I/O + Encode): 0.0581 s
Throughput: 172165.2 samples/sec
Average per sample: 0.01 ms
[PennyLane + NumPy] Loading and encoding...
Total Time (I/O + Encode): 2.8481 s
Throughput: 3511.2 samples/sec
Average per sample: 0.28 ms
======================================================================
SUMMARY
======================================================================
Framework Time (s) Throughput Avg/Sample
----------------------------------------------------------------------
Mahout 0.0581 172165.2 0.01
PennyLane 2.8481 3511.2 0.28
----------------------------------------------------------------------
SPEEDUP COMPARISON
----------------------------------------------------------------------
Mahout vs PennyLane: 49.03x
Time reduction: 49.03x faster
Cleaned up temporary file: /tmp/tmp0rf7j7p6.npy
======================================================================
BENCHMARK COMPLETE
======================================================================
```
After:
```
======================================================================
NUMPY I/O + ENCODING BENCHMARK
======================================================================
Qubits: 10
Sample size: 1024 elements
Number of samples: 10000
Total data: 78.12 MB
Frameworks: mahout, pennylane
Generating test data...
Saving to /tmp/tmpq898jgel.npy...
File size: 78.13 MB
[Mahout + NumPy] Loading and encoding...
Total Time (I/O + Encode): 0.0574 s
Throughput: 174195.3 samples/sec
Average per sample: 0.01 ms
[PennyLane + NumPy] Loading and encoding...
Total Time (I/O + Encode): 2.8587 s
Throughput: 3498.1 samples/sec
Average per sample: 0.29 ms
======================================================================
SUMMARY
======================================================================
Framework Time (s) Throughput Avg/Sample
----------------------------------------------------------------------
Mahout 0.0574 174195.3 0.01
PennyLane 2.8587 3498.1 0.29
----------------------------------------------------------------------
SPEEDUP COMPARISON
----------------------------------------------------------------------
Mahout vs PennyLane: 49.80x
Time reduction: 49.80x faster
Cleaned up temporary file: /tmp/tmpq898jgel.npy
======================================================================
BENCHMARK COMPLETE
======================================================================
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]