kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/jmh-benchmarks/jmh.sh

Path
kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/jmh-benchmarks/jmh.sh
Status
scanned
Type
file
Name
jmh.sh
Extension
.sh
Programming language
Bash
Mime type
text/x-shellscript
File type
Bourne-Again shell script, ASCII text executable
Tag

      
    
Rootfs path

      
    
Size
1462 (1.4 KB)
MD5
89e0335cf3d09aab71cac879f5f483ba
SHA1
2e410044df3c91dca3896d88e0e56b41543d390a
SHA256
02997ad731cfff6c29f8f2f32aebd00af5c4d73f52abc09c154736d15e8cbc43
SHA512

      
    
SHA1_git
6b8aa4f6aed6c901e0c9f639352767ca8b85abaf
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
jmh.sh | 1.4 KB |

#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. base_dir=$(dirname $0) jmh_project_name="jmh-benchmarks" if [ ${base_dir} == "." ]; then gradlew_dir=".." elif [ ${base_dir##./} == "${jmh_project_name}" ]; then gradlew_dir="." else echo "JMH Benchmarks need to be run from the root of the kafka repository or the 'jmh-benchmarks' directory" exit fi gradleCmd="${gradlew_dir}/gradlew" libDir="${base_dir}/build/libs" echo "running gradlew :jmh-benchmarks:clean :jmh-benchmarks:shadowJar" $gradleCmd :jmh-benchmarks:clean :jmh-benchmarks:shadowJar echo "gradle build done" echo "running JMH with args: $@" java -jar ${libDir}/kafka-jmh-benchmarks-*.jar "$@" echo "JMH benchmarks done"
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
56.94
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9