Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-46205][CORE][TESTS][FOLLOWUP] Simplify PersistenceEngineBenchmark #44118

Closed
wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

What changes were proposed in this pull request?

This is a follow-up of #44113 to address a comment about simplifying the benchmark.

Why are the changes needed?

To simplify.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manually.

$ build/sbt "core/Test/runMain org.apache.spark.deploy.master.PersistenceEngineBenchmark"
...
[info] OpenJDK 64-Bit Server VM 17.0.9+9-LTS on Mac OS X 14.2
[info] Apple M1 Max
[info] 1000 Workers:                                    Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
[info] -------------------------------------------------------------------------------------------------------------------------------
[info] ZooKeeperPersistenceEngine with JavaSerializer           12602          12847         253          0.0    12601717.5       1.0X
[info] ZooKeeperPersistenceEngine with KryoSerializer           12116          12130          13          0.0    12116373.8       1.0X
[info] FileSystemPersistenceEngine with JavaSerializer            429            435           6          0.0      429374.9      29.3X
[info] FileSystemPersistenceEngine with KryoSerializer            179            180           2          0.0      178795.7      70.5X
[info] BlackHolePersistenceEngine                                   0              0           0         46.6          21.5  587273.6X
[success] Total time: 126 s (02:06), completed Dec 1, 2023, 7:59:25 PM

Was this patch authored or co-authored using generative AI tooling?

@dongjoon-hyun
Copy link
Member Author

Hi, @beliefer . This is the follow-up PR for your comment.

@dongjoon-hyun
Copy link
Member Author

Could you review this PR, @LuciferYang ?

@dongjoon-hyun
Copy link
Member Author

Thank you, @LuciferYang . Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-46205-2 branch December 2, 2023 19:28
asl3 pushed a commit to asl3/spark that referenced this pull request Dec 5, 2023
### What changes were proposed in this pull request?

This is a follow-up of apache#44113 to address a comment about simplifying the benchmark.

### Why are the changes needed?

To simplify.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manually.
```
$ build/sbt "core/Test/runMain org.apache.spark.deploy.master.PersistenceEngineBenchmark"
...
[info] OpenJDK 64-Bit Server VM 17.0.9+9-LTS on Mac OS X 14.2
[info] Apple M1 Max
[info] 1000 Workers:                                    Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
[info] -------------------------------------------------------------------------------------------------------------------------------
[info] ZooKeeperPersistenceEngine with JavaSerializer           12602          12847         253          0.0    12601717.5       1.0X
[info] ZooKeeperPersistenceEngine with KryoSerializer           12116          12130          13          0.0    12116373.8       1.0X
[info] FileSystemPersistenceEngine with JavaSerializer            429            435           6          0.0      429374.9      29.3X
[info] FileSystemPersistenceEngine with KryoSerializer            179            180           2          0.0      178795.7      70.5X
[info] BlackHolePersistenceEngine                                   0              0           0         46.6          21.5  587273.6X
[success] Total time: 126 s (02:06), completed Dec 1, 2023, 7:59:25 PM
```

### Was this patch authored or co-authored using generative AI tooling?

Closes apache#44118 from dongjoon-hyun/SPARK-46205-2.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dbatomic pushed a commit to dbatomic/spark that referenced this pull request Dec 11, 2023
### What changes were proposed in this pull request?

This is a follow-up of apache#44113 to address a comment about simplifying the benchmark.

### Why are the changes needed?

To simplify.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manually.
```
$ build/sbt "core/Test/runMain org.apache.spark.deploy.master.PersistenceEngineBenchmark"
...
[info] OpenJDK 64-Bit Server VM 17.0.9+9-LTS on Mac OS X 14.2
[info] Apple M1 Max
[info] 1000 Workers:                                    Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
[info] -------------------------------------------------------------------------------------------------------------------------------
[info] ZooKeeperPersistenceEngine with JavaSerializer           12602          12847         253          0.0    12601717.5       1.0X
[info] ZooKeeperPersistenceEngine with KryoSerializer           12116          12130          13          0.0    12116373.8       1.0X
[info] FileSystemPersistenceEngine with JavaSerializer            429            435           6          0.0      429374.9      29.3X
[info] FileSystemPersistenceEngine with KryoSerializer            179            180           2          0.0      178795.7      70.5X
[info] BlackHolePersistenceEngine                                   0              0           0         46.6          21.5  587273.6X
[success] Total time: 126 s (02:06), completed Dec 1, 2023, 7:59:25 PM
```

### Was this patch authored or co-authored using generative AI tooling?

Closes apache#44118 from dongjoon-hyun/SPARK-46205-2.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Feb 7, 2024
### What changes were proposed in this pull request?

This is a follow-up of apache#44113 to address a comment about simplifying the benchmark.

### Why are the changes needed?

To simplify.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manually.
```
$ build/sbt "core/Test/runMain org.apache.spark.deploy.master.PersistenceEngineBenchmark"
...
[info] OpenJDK 64-Bit Server VM 17.0.9+9-LTS on Mac OS X 14.2
[info] Apple M1 Max
[info] 1000 Workers:                                    Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
[info] -------------------------------------------------------------------------------------------------------------------------------
[info] ZooKeeperPersistenceEngine with JavaSerializer           12602          12847         253          0.0    12601717.5       1.0X
[info] ZooKeeperPersistenceEngine with KryoSerializer           12116          12130          13          0.0    12116373.8       1.0X
[info] FileSystemPersistenceEngine with JavaSerializer            429            435           6          0.0      429374.9      29.3X
[info] FileSystemPersistenceEngine with KryoSerializer            179            180           2          0.0      178795.7      70.5X
[info] BlackHolePersistenceEngine                                   0              0           0         46.6          21.5  587273.6X
[success] Total time: 126 s (02:06), completed Dec 1, 2023, 7:59:25 PM
```

### Was this patch authored or co-authored using generative AI tooling?

Closes apache#44118 from dongjoon-hyun/SPARK-46205-2.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dongjoon-hyun added a commit that referenced this pull request Apr 16, 2024
### What changes were proposed in this pull request?

This is a logical revert of SPARK-46205
- #44113
- #44118

### Why are the changes needed?

The initial implementation didn't handle the class initialization logic properly.
Until we have a fix, I'd like to revert this from `master` branch.

### Does this PR introduce _any_ user-facing change?

No, this is not released yet.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #46087 from dongjoon-hyun/SPARK-47875.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants